chiark / gitweb /
Include @<ctype.h>@.
[mLib] / arena.c
diff --git a/arena.c b/arena.c
index 3e13bf2909b4e850fdcc2fb89b54125c95e7d25d..30df2ee2d625dc7a641f49e38f0606378b94bf6c 100644 (file)
--- a/arena.c
+++ b/arena.c
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: arena.c,v 1.2 2000/07/16 12:29:16 mdw Exp $
+ * $Id: arena.c,v 1.4 2001/06/22 19:32:59 mdw Exp $
  *
  * Abstraction for memory allocation arenas
  *
 /*----- Revision history --------------------------------------------------* 
  *
  * $Log: arena.c,v $
+ * Revision 1.4  2001/06/22 19:32:59  mdw
+ * Remove a space.
+ *
+ * Revision 1.3  2000/08/06 11:00:18  mdw
+ * Daft bug fix.  Include <string.h>.
+ *
  * Revision 1.2  2000/07/16 12:29:16  mdw
  * Change to arena `realloc' interface, to fix a design bug.
  *
@@ -41,6 +47,7 @@
 /*----- Header files ------------------------------------------------------*/
 
 #include <stdlib.h>
+#include <string.h>
 
 #include "arena.h"
 
@@ -49,7 +56,7 @@
 static void *_alloc(arena *a, size_t sz) { return malloc(sz); }
 static void *_realloc(arena *a, void *p, size_t sz, size_t osz) 
   { return realloc(p, sz); }
-static void _free(arena *a, void *p) { free (p); }
+static void _free(arena *a, void *p) { free(p); }
 
 static arena_ops stdlib_ops = { _alloc, _realloc, _free, 0 };
 arena arena_stdlib = { &stdlib_ops };