Changed prototype for chr_map_input - added const.
[idzebra-moved-to-github.git] / index / symtab.c
index d656621..1e8238d 100644 (file)
@@ -4,7 +4,14 @@
  * Sebastian Hammer, Adam Dickmeiss
  *
  * $Log: symtab.c,v $
- * Revision 1.1  1995-09-06 16:11:18  adam
+ * Revision 1.3  1996-10-29 14:06:54  adam
+ * Include zebrautl.h instead of alexutil.h.
+ *
+ * Revision 1.2  1995/09/28 09:19:44  adam
+ * xfree/xmalloc used everywhere.
+ * Extract/retrieve method seems to work for text records.
+ *
+ * Revision 1.1  1995/09/06  16:11:18  adam
  * Option: only one word key per file.
  *
  */
@@ -12,7 +19,6 @@
 #include <stdlib.h>
 #include <assert.h>
 
-#include <alexutil.h>
 #include "index.h"
 
 struct strentry {
@@ -72,8 +78,8 @@ void strtab_del (struct strtab *t,
         {
             e1 = e->next;
             (*func)(e->name, e->info, data);
-            free (e->name);
-            free (e);
+            xfree (e->name);
+            xfree (e);
         }
-    free (t);
+    xfree (t);
 }