#include "cpplib.h"
#include "cpphash.h"
-extern char *xmalloc PARAMS ((unsigned));
+//extern char *xmalloc PARAMS ((unsigned));
+
+#include "newalloc.h"
+
+#include <string.h>
+#include <stdlib.h>
/* Define a generic NULL if one hasn't already been defined. */
#define volatile
#endif
+static HASHNODE *hashtab[HASHSIZE];
+
/*
* return hash function on name. must be compatible with the one
* computed a step at a time, elsewhere
hash = hashf (name, len, HASHSIZE);
i = sizeof (HASHNODE) + len + 1;
- hp = (HASHNODE *) xmalloc (i);
+ hp = (HASHNODE *) Safe_malloc (i);
bucket = hash;
hp->bucket_hdr = &hashtab[bucket];
hp->next = hashtab[bucket];