summaryrefslogtreecommitdiff
path: root/table.c
diff options
context:
space:
mode:
Diffstat (limited to 'table.c')
-rw-r--r--table.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/table.c b/table.c
index 5dbc290..a06e034 100644
--- a/table.c
+++ b/table.c
@@ -145,6 +145,12 @@ void * get_table_index(struct table tbl, struct string name) {
return tbl.array[index].ptr;
}
+uint8_t has_table_index(struct table tbl, struct string name) {
+ uint8_t exists;
+ search(tbl, name, &exists);
+ return exists;
+}
+
void * remove_table_index(struct table *tbl, struct string name) {
uint8_t exists;
uint64_t index = search(*tbl, name, &exists);