-const char list_rcs[] = "$Id: list.c,v 1.8 2001/08/07 14:00:20 oes Exp $";
+const char list_rcs[] = "$Id: list.c,v 1.9 2001/09/16 13:20:29 jongfoster Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/list.c,v $
*
* Revisions :
* $Log: list.c,v $
+ * Revision 1.9 2001/09/16 13:20:29 jongfoster
+ * Rewrite of list library. Now has seperate header and list_entry
+ * structures. Also added a large sprinking of assert()s to the list
+ * code.
+ *
* Revision 1.8 2001/08/07 14:00:20 oes
* Fixed comment
*
#include "config.h"
+#ifndef _WIN32
+/* FIXME: The following headers are not needed for Win32. Are they
+ * needed on other platforms?
+ */
#include <stdio.h>
#include <sys/types.h>
#include <stdlib.h>
#include <ctype.h>
+#endif
#include <string.h>
#ifndef _WIN32
#include <assert.h>
#include "project.h"
-#include "jcc.h"
#include "list.h"
#include "miscutil.h"
const char list_h_rcs[] = LIST_H_VERSION;
+static int list_is_valid (const struct list *the_list);
+
+
/*********************************************************************
*
* Function : list_init
#ifndef LIST_H_INCLUDED
#define LIST_H_INCLUDED
-#define LIST_H_VERSION "$Id: list.h,v 1.6 2001/08/05 16:06:20 jongfoster Exp $"
+#define LIST_H_VERSION "$Id: list.h,v 1.7 2001/09/16 13:20:29 jongfoster Exp $"
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/list.h,v $
*
* Revisions :
* $Log: list.h,v $
+ * Revision 1.7 2001/09/16 13:20:29 jongfoster
+ * Rewrite of list library. Now has seperate header and list_entry
+ * structures. Also added a large sprinking of assert()s to the list
+ * code.
+ *
* Revision 1.6 2001/08/05 16:06:20 jongfoster
* Modifiying "struct map" so that there are now separate header and
* "map_entry" structures. This means that functions which modify a
extern void init_list (struct list *the_list);
extern void destroy_list (struct list *the_list);
-extern int list_is_valid(const struct list *the_list);
-
extern int enlist (struct list *the_list, const char *str);
extern int enlist_unique (struct list *the_list, const char *str, int num_significant_chars);
extern int enlist_unique_header (struct list *the_list, const char *name, const char *value);