| 235 | } |
| 236 | |
| 237 | Symbol* find_variable(agent* thisAgent, const char* name) |
| 238 | { |
| 239 | uint32_t hash_value; |
| 240 | varSymbol* sym; |
| 241 | |
| 242 | hash_value = hash_variable_raw_info(name, thisAgent->variable_hash_table->log2size); |
| 243 | sym = reinterpret_cast<varSymbol*>(*(thisAgent->variable_hash_table->buckets + hash_value)); |
| 244 | for (; sym != NIL; sym = varSym(sym->next_in_hash_table)) |
| 245 | { |
| 246 | if (!strcmp(sym->name, name)) |
| 247 | { |
| 248 | return sym; |
| 249 | } |
| 250 | } |
| 251 | return NIL; |
| 252 | } |
| 253 | |
| 254 | Symbol* find_identifier(agent* thisAgent, char name_letter, uint64_t name_number) |
| 255 | { |
no test coverage detected