in the probably vain hope of playing more nicely with autoconf.
git-svn-id: svn://svn.tartarus.org/sgt/agedu@8260
cda61777-01e9-0310-a592-
d414129be87e
-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))
AGEDU_OBJS := $(patsubst %,%.o,$(AGEDU_MODULES))
ALLMODULES := $(sort $(AGEDU_MODULES))
#include "du.h"
#include "trie.h"
#include "index.h"
#include "du.h"
#include "trie.h"
#include "index.h"
#include "html.h"
#include "httpd.h"
#include "fgetline.h"
#include "html.h"
#include "httpd.h"
#include "fgetline.h"
- * malloc.c: implementation of malloc.h
+ * alloc.c: implementation of alloc.h
#include <stdio.h>
#include "agedu.h"
#include <stdio.h>
#include "agedu.h"
extern void fatal(const char *, ...);
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
( (void)sizeof((array)-(type *)0), \
(type *) srealloc ((array), (number) * sizeof (type)) )
( (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 <unistd.h>
#include "du.h"
#include <stdio.h>
#include <string.h>
#include <stdio.h>
#include <string.h>
#include "fgetline.h"
char *fgetline(FILE *fp)
#include "fgetline.h"
char *fgetline(FILE *fp)
#include "agedu.h"
#include "html.h"
#include "agedu.h"
#include "html.h"
#include "trie.h"
#include "index.h"
#include "trie.h"
#include "index.h"
#include <syslog.h>
#include "agedu.h"
#include <syslog.h>
#include "agedu.h"
#include "html.h"
#include "httpd.h"
#include "html.h"
#include "httpd.h"
#include "trie.h"
#include "index.h"
#include "trie.h"
#include "index.h"
#define alignof(typ) ( offsetof(struct { char c; typ t; }, t) )
#define alignof(typ) ( offsetof(struct { char c; typ t; }, t) )
#include <unistd.h>
#include "agedu.h"
#include <unistd.h>
#include "agedu.h"
#include "trie.h"
#define alignof(typ) ( offsetof(struct { char c; typ t; }, t) )
#include "trie.h"
#define alignof(typ) ( offsetof(struct { char c; typ t; }, t) )