add scc and update other code
[ccc.git] / util.h
diff --git a/util.h b/util.h
index 47677a8..ac47fa6 100644 (file)
--- a/util.h
+++ b/util.h
@@ -5,11 +5,7 @@
 #include <stdbool.h>
 #include <stdio.h>
 
-struct list { void *el; struct list *tail; };
-struct list *list_cons(void *el, struct list *tail);
-void list_free(struct list *head, void (*freefun)(void *));
-void **list_to_array(struct list *list, int *num, bool reverse);
-int list_length(struct list *head);
+#define min(x, y) ((x)<(y)?(x):(y))
 
 void die(const char *msg, ...);
 void pdie(const char *msg);