| 281 | } |
| 282 | |
| 283 | Dictionary::Entry *Dictionary::lookup(StringTableEntry name) |
| 284 | { |
| 285 | Entry *walk = hashTable->data[HashPointer(name) % hashTable->size]; |
| 286 | while (walk) |
| 287 | { |
| 288 | if (walk->name == name) |
| 289 | return walk; |
| 290 | else |
| 291 | walk = walk->nextEntry; |
| 292 | } |
| 293 | |
| 294 | return NULL; |
| 295 | } |
| 296 | |
| 297 | Dictionary::Entry *Dictionary::add(StringTableEntry name) |
| 298 | { |
nothing calls this directly
no test coverage detected