-include Makefile.local
-AGEDU_MODULES := agedu du malloc trie index html httpd fgetline licence
+AGEDU_MODULES := agedu du alloc trie index html httpd fgetline licence
AGEDU_OBJS := $(patsubst %,%.o,$(AGEDU_MODULES))
ALLMODULES := $(sort $(AGEDU_MODULES))
#include "du.h"
#include "trie.h"
#include "index.h"
-#include "malloc.h"
+#include "alloc.h"
#include "html.h"
#include "httpd.h"
#include "fgetline.h"
/*
- * malloc.c: implementation of malloc.h
+ * alloc.c: implementation of alloc.h
*/
#include <stdlib.h>
#include <stdio.h>
#include "agedu.h"
-#include "malloc.h"
+#include "alloc.h"
extern void fatal(const char *, ...);
/*
- * malloc.h: safe wrappers around malloc, realloc, free, strdup
+ * alloc.h: safe wrappers around malloc, realloc, free, strdup
*/
-#ifndef AGEDU_MALLOC_H
-#define AGEDU_MALLOC_H
+#ifndef AGEDU_ALLOC_H
+#define AGEDU_ALLOC_H
#include <stddef.h>
( (void)sizeof((array)-(type *)0), \
(type *) srealloc ((array), (number) * sizeof (type)) )
-#endif /* AGEDU_MALLOC_H */
+#endif /* AGEDU_ALLOC_H */
#include <unistd.h>
#include "du.h"
-#include "malloc.h"
+#include "alloc.h"
#ifdef __linux__
#include <stdio.h>
#include <string.h>
-#include "malloc.h"
+#include "alloc.h"
#include "fgetline.h"
char *fgetline(FILE *fp)
#include "agedu.h"
#include "html.h"
-#include "malloc.h"
+#include "alloc.h"
#include "trie.h"
#include "index.h"
#include <syslog.h>
#include "agedu.h"
-#include "malloc.h"
+#include "alloc.h"
#include "html.h"
#include "httpd.h"
#include "trie.h"
#include "index.h"
-#include "malloc.h"
+#include "alloc.h"
#define alignof(typ) ( offsetof(struct { char c; typ t; }, t) )
#include <unistd.h>
#include "agedu.h"
-#include "malloc.h"
+#include "alloc.h"
#include "trie.h"
#define alignof(typ) ( offsetof(struct { char c; typ t; }, t) )