diff lib/lib.h @ 238:630b2e12db16

Move dlist_add() to lib/llist.c
author Rob Landley <rob@landley.net>
date Sun, 20 Jan 2008 17:34:53 -0600
parents 5697a3f7c8cf
children 70f36d9c5387
line wrap: on
line diff
--- a/lib/lib.h	Sun Jan 20 17:25:44 2008 -0600
+++ b/lib/lib.h	Sun Jan 20 17:34:53 2008 -0600
@@ -8,8 +8,6 @@
 ssize_t getline(char **lineptr, size_t *n, FILE *stream);
 
 // llist.c
-void llist_free(void *list, void (*freeit)(void *data));
-void *llist_pop(void *list);  // actually void **list, but the compiler's dumb
 
 struct string_list {
 	struct string_list *next;
@@ -27,6 +25,10 @@
 	char *data;
 };
 
+void llist_free(void *list, void (*freeit)(void *data));
+void *llist_pop(void *list);  // actually void **list, but the compiler's dumb
+void dlist_add(struct double_list **list, char *data);
+
 // args.c
 void get_optflags(void);