Lines Matching refs:new_symbol
68 symbol_t *new_symbol;
70 new_symbol = (symbol_t *)malloc(sizeof(symbol_t));
71 if (new_symbol == NULL) {
75 memset(new_symbol, 0, sizeof(*new_symbol));
76 new_symbol->name = strdup(name);
77 if (new_symbol->name == NULL)
79 new_symbol->type = UNINITIALIZED;
80 new_symbol->count = 1;
81 return (new_symbol);
184 symbol_t *new_symbol;
186 new_symbol = symbol_create(name);
187 data.data = &new_symbol;
188 data.size = sizeof(new_symbol);
194 return (new_symbol);