Skip to content

Commit

Permalink
Add missing definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
srdja committed Feb 8, 2024
1 parent a59e567 commit 09df0b9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/cc_treetable.c
Original file line number Diff line number Diff line change
Expand Up @@ -937,6 +937,11 @@ enum cc_stat cc_treetable_iter_remove(CC_TreeTableIter *iter, void **out)
}


size_t cc_treetable_struct_size()
{
return sizeof(CC_TreeTable);
}

#ifdef DEBUG
static int cc_treetable_test(CC_TreeTable *table, RBNode *node, int *nb)
{
Expand Down
1 change: 1 addition & 0 deletions src/include/cc_list.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ enum cc_stat cc_list_new (CC_List **list);
enum cc_stat cc_list_new_conf (CC_ListConf const * const conf, CC_List **list);
void cc_list_destroy (CC_List *list);
void cc_list_destroy_cb (CC_List *list, void (*cb) (void*));
size_t cc_list_struct_size ();

enum cc_stat cc_list_splice (CC_List *list1, CC_List *list2);
enum cc_stat cc_list_splice_at (CC_List *list, CC_List *list2, size_t index);
Expand Down
1 change: 1 addition & 0 deletions src/include/cc_stack.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ enum cc_stat cc_stack_new (CC_Stack **out);
enum cc_stat cc_stack_new_conf (CC_StackConf const * const conf, CC_Stack **out);
void cc_stack_destroy (CC_Stack *stack);
void cc_stack_destroy_cb (CC_Stack *stack, void (*cb) (void*));
size_t cc_stack_struct_size ();

enum cc_stat cc_stack_push (CC_Stack *stack, void *element);
enum cc_stat cc_stack_peek (CC_Stack *stack, void **out);
Expand Down

0 comments on commit 09df0b9

Please sign in to comment.