From 20b6fe1c584e105f529d0fc92c02d62c214a29d3 Mon Sep 17 00:00:00 2001
From: jongfoster <jongfoster@users.sourceforge.net>
Date: Sun, 16 Sep 2001 17:30:24 +0000
Subject: [PATCH] Fixing a compiler warning.

---
 list.c | 16 ++++++++++++++--
 list.h |  9 ++++++---
 2 files changed, 20 insertions(+), 5 deletions(-)

diff --git a/list.c b/list.c
index 030f0b80..0625e660 100644
--- a/list.c
+++ b/list.c
@@ -1,4 +1,4 @@
-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 $
@@ -34,6 +34,11 @@ const char list_rcs[] = "$Id: list.c,v 1.8 2001/08/07 14:00:20 oes Exp $";
  *
  * 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
  *
@@ -86,10 +91,15 @@ const char list_rcs[] = "$Id: list.c,v 1.8 2001/08/07 14:00:20 oes Exp $";
 
 #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
@@ -99,13 +109,15 @@ const char list_rcs[] = "$Id: list.c,v 1.8 2001/08/07 14:00:20 oes Exp $";
 #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
diff --git a/list.h b/list.h
index 1c66c4af..edb4ded4 100644
--- a/list.h
+++ b/list.h
@@ -1,6 +1,6 @@
 #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 $
@@ -36,6 +36,11 @@
  *
  * 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
@@ -94,8 +99,6 @@ extern "C" {
 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);
-- 
2.49.0