Loading src/list.c +10 −2 Original line number Diff line number Diff line Loading @@ -7,15 +7,24 @@ struct cell_t { typedef struct cell_t* list_t; list_t list_empty(){ return NULL; } int list_is_empty(list_t l){ if(l == NULL){ return l == NULL; }else{ return l != NULL; } } list_t list_push(list_t l, void* x){ l->val = x; return l; } list_t list_tail(list_t l){ } void* list_pop(list_t* l){ Loading @@ -33,4 +42,3 @@ void* list_in(list_t l, void* x, int (*eq)(void*, void*)){ unsigned long int list_len(list_t l){ } Loading
src/list.c +10 −2 Original line number Diff line number Diff line Loading @@ -7,15 +7,24 @@ struct cell_t { typedef struct cell_t* list_t; list_t list_empty(){ return NULL; } int list_is_empty(list_t l){ if(l == NULL){ return l == NULL; }else{ return l != NULL; } } list_t list_push(list_t l, void* x){ l->val = x; return l; } list_t list_tail(list_t l){ } void* list_pop(list_t* l){ Loading @@ -33,4 +42,3 @@ void* list_in(list_t l, void* x, int (*eq)(void*, void*)){ unsigned long int list_len(list_t l){ }