Lines Matching refs:new_sym
178 struct symbol *new_sym; in _mesa_symbol_table_add_symbol() local
184 new_sym = calloc(1, sizeof(*sym)); in _mesa_symbol_table_add_symbol()
185 if (new_sym == NULL) { in _mesa_symbol_table_add_symbol()
192 new_sym->next_with_same_name = sym; in _mesa_symbol_table_add_symbol()
193 new_sym->name = sym->name; in _mesa_symbol_table_add_symbol()
195 new_sym->name = strdup(name); in _mesa_symbol_table_add_symbol()
196 if (new_sym->name == NULL) { in _mesa_symbol_table_add_symbol()
197 free(new_sym); in _mesa_symbol_table_add_symbol()
203 new_sym->next_with_same_scope = table->current_scope->symbols; in _mesa_symbol_table_add_symbol()
204 new_sym->data = declaration; in _mesa_symbol_table_add_symbol()
205 new_sym->depth = table->depth; in _mesa_symbol_table_add_symbol()
207 table->current_scope->symbols = new_sym; in _mesa_symbol_table_add_symbol()
209 _mesa_hash_table_insert(table->ht, new_sym->name, new_sym); in _mesa_symbol_table_add_symbol()