Loading src/list.c +7 −1 Original line number Diff line number Diff line #include<stdlib.h> struct cell_t { void* val; unsigned long int id; Loading @@ -7,12 +8,16 @@ struct cell_t { typedef struct cell_t* list_t; list_t list_empty(){ return NULL; } int list_is_empty(list_t l){ return l==NULL; } list_t list_push(list_t l, void* x){ /*list_t list_push(list_t l, void* x){ } list_t list_tail(list_t l){ Loading @@ -34,3 +39,4 @@ void* list_in(list_t l, void* x, int (*eq)(void*, void*)){ unsigned long int list_len(list_t l){ } */ Loading
src/list.c +7 −1 Original line number Diff line number Diff line #include<stdlib.h> struct cell_t { void* val; unsigned long int id; Loading @@ -7,12 +8,16 @@ struct cell_t { typedef struct cell_t* list_t; list_t list_empty(){ return NULL; } int list_is_empty(list_t l){ return l==NULL; } list_t list_push(list_t l, void* x){ /*list_t list_push(list_t l, void* x){ } list_t list_tail(list_t l){ Loading @@ -34,3 +39,4 @@ void* list_in(list_t l, void* x, int (*eq)(void*, void*)){ unsigned long int list_len(list_t l){ } */