Lines Matching defs:symbol

60  * Define a hash symbol-table entry.
61 * See symbol.h for the definition of the Symbol container type.
65 Symbol symbol; /* The symbol stored in the hash-entry */
194 * hcase HashCase Specify how symbol case is considered when
205 * provided SYM_DEL_FN() symbol destructors along
206 * with the symbol data.
321 * hash HashTable * The hash table to insert the symbol into.
331 * symbol is deleted this function will be called
365 if(node->symbol.data && node->symbol.del_fn) {
366 node->symbol.data = node->symbol.del_fn(hash->app_data, node->symbol.code,
367 node->symbol.data);
383 return &node->symbol;
390 * hash HashTable * The hash table to find the symbol in.
427 * Look up a symbol in the hash table.
431 * name const char * The name of the symbol to look up.
433 * return Symbol * The located hash-table symbol, or NULL if not
439 HashNode *node; /* The hash-table node of the requested symbol */
460 return &node->symbol;
465 * The caller is responsible for checking that the specified symbol
494 node->symbol.name = NULL;
495 node->symbol.code = code;
496 node->symbol.fn = fn;
497 node->symbol.data = data;
498 node->symbol.del_fn = del_fn;
504 node->symbol.name = _new_StringMemString(hash->mem->string_memory, len);
505 if(!node->symbol.name)
512 strlcpy(node->symbol.name, name, len);
515 char *dst = node->symbol.name;
538 node->symbol.name = _del_StringMemString(hash->mem->string_memory,
539 node->symbol.name);
543 if(node->symbol.data && node->symbol.del_fn)
544 node->symbol.data = node->symbol.del_fn(hash->app_data,
545 node->symbol.code,
546 node->symbol.data);
566 * name const char * The name of the symbol to look up.
609 node && hash->keycmp(node->symbol.name, name)!=0;
740 if(scan_fn(&node->symbol, context))