Lines Matching defs:table
115 if (tbl->n_nent) { /* do linear search if table is not empty */
120 return (1); /* if table is empty return true */
127 add_element(table_t *table, long element)
129 if (table->t_size == table->t_nent) {
130 if ((table->t_size *= 2) == 0)
131 table->t_size = 4;
132 table->t_list = Realloc(table->t_list,
133 table->t_size * sizeof (long));
135 table->t_list[table->t_nent++] = element;
139 has_element(table_t *table, long element)
143 if (table->t_nent) { /* do linear search if table is not empty */
144 for (i = 0; i < table->t_nent; i++)
145 if (table->t_list[i] == element)
147 } else { /* if table is empty then */
155 foreach_element(table_t *table, void *buf, void (*walker)(long, void *))
159 if (table->t_nent) {
160 for (i = 0; i < table->t_nent; i++)
161 walker(table->t_list[i], buf);
178 * in the table; otherwise, just store the id.
213 if (tbl->z_nent) { /* do linear search if table is not empty */
220 return (1); /* if table is empty return true */