Macaulay2 Engine
Loading...
Searching...
No Matches

◆ Table_free()

void Table_free ( T ** table)

Definition at line 170 of file table.c.

171{
172 assert(table && *table);
173 if ((*table)->length > 0)
174 {
175 int i;
176 struct binding *p, *q;
177 for (i = 0; i < (*table)->size; i++)
178 for (p = (*table)->buckets[i]; p; p = q)
179 {
180 q = p->link;
181 FREE(p);
182 }
183 }
184 FREE(*table);
185}
int p
#define FREE(ptr)
Definition table.c:11

References FREE, p, and T.

Referenced by exponent_table_free().