From 9e87372371794bc3e7d46698141966c00acaad0e Mon Sep 17 00:00:00 2001 From: Tom Harley Date: Sat, 11 Jan 2020 19:46:15 +0000 Subject: Tidying up - Removed unused example files - Removed redundant common.c - Added extra files to make sure the current version compiles the nqueens solution correctly - Added extensionless files to .gitignore - Added a way to install sinter --- examples/list_null.c | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 examples/list_null.c (limited to 'examples/list_null.c') diff --git a/examples/list_null.c b/examples/list_null.c deleted file mode 100644 index 85a3d2c..0000000 --- a/examples/list_null.c +++ /dev/null @@ -1,27 +0,0 @@ -typedef struct list_t { - void *content; - struct list_t *next; -} list_t; - -void *list(void *head, void *tail) { - list_t *ret = gc_alloc(sizeof (*ret)); - ret->content = head; - ret->next = (list_t *) tail; - return ret; -} - -void *nil() { - return (void *) 0; -} - -void *head(void *list) { - return list->head; -} - -void *tail(void *list) { - return list->tail; -} - -void *has_tail(void *list) { - return list->tail; -} -- cgit v1.2.1