void destroy_symbol_list (symbol *sym) { symbol *current; symbol *next; current = sym; while (current) { next = current->next; destroy_symbol (current); current = next; } }
static void sym_del(void **sym) { destroy_symbol((t_symbol**)sym); }