Lines Matching defs:symbol
30 struct symbol {
35 * Link to the next symbol in the table with the same name
40 struct symbol *next_with_same_name;
43 * Link to the next symbol in the table with the same scope
48 struct symbol *next_with_same_scope;
50 /** Scope depth where this symbol was defined. */
68 struct symbol *symbols;
76 /** Hash table containing all symbols in the symbol table. */
90 struct symbol *sym = scope->symbols;
98 struct symbol *const next = sym->next_with_same_scope;
102 /* If there is a symbol with this name in an outer scope update
133 static struct symbol *
137 return entry ? (struct symbol *) entry->data : NULL;
142 * Determine the scope "distance" of a symbol from the current scope
146 * and the scope where a symbol was defined. A value of zero means the current
147 * scope. A negative number if the symbol does not exist.
153 struct symbol *const sym = find_symbol(table, name);
168 struct symbol *const sym = find_symbol(table, name);
180 struct symbol *new_sym;
181 struct symbol *sym = find_symbol(table, name);
193 /* Store link to symbol in outer scope with the same name */
221 struct symbol *sym = find_symbol(table, name);
223 /* If the symbol doesn't exist, it cannot be replaced. */
236 struct symbol *inner_sym = NULL;
237 struct symbol *sym = find_symbol(table, name);
245 /* Get symbol from the outer scope with the same name */
263 * symbol in global.