[BACK]Return to look.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / m4

Diff for /src/usr.bin/m4/look.c between version 1.15 and 1.16

version 1.15, 2003/06/30 22:13:32 version 1.16, 2003/11/17 17:12:10
Line 70 
Line 70 
         size_t s;          size_t s;
         void *u         UNUSED;          void *u         UNUSED;
 {  {
         void *storage = xalloc(s);          void *storage = xalloc(s, "hash alloc");
         if (storage)          if (storage)
                 memset(storage, 0, s);                  memset(storage, 0, s);
         return storage;          return storage;
Line 90 
Line 90 
         size_t s;          size_t s;
         void *u         UNUSED;          void *u         UNUSED;
 {  {
         return xalloc(s);          return xalloc(s, "element alloc");
 }  }
   
 void  void
Line 167 
Line 167 
                 if (n->d->defn != null)                  if (n->d->defn != null)
                         free(n->d->defn);                          free(n->d->defn);
         } else {          } else {
                 n->d = xalloc(sizeof(struct macro_definition));                  n->d = xalloc(sizeof(struct macro_definition), NULL);
                 n->d->next = NULL;                  n->d->next = NULL;
         }          }
         setup_definition(n->d, defn, name);          setup_definition(n->d, defn, name);
Line 180 
Line 180 
         struct macro_definition *d;          struct macro_definition *d;
   
         n = create_entry(name);          n = create_entry(name);
         d = xalloc(sizeof(struct macro_definition));          d = xalloc(sizeof(struct macro_definition), NULL);
         d->next = n->d;          d->next = n->d;
         n->d = d;          n->d = d;
         setup_definition(n->d, defn, name);          setup_definition(n->d, defn, name);
Line 237 
Line 237 
   
         n = create_entry(name);          n = create_entry(name);
         n->builtin_type = type;          n->builtin_type = type;
         n->d = xalloc(sizeof(struct macro_definition));          n->d = xalloc(sizeof(struct macro_definition), NULL);
         n->d->defn = xstrdup(name);          n->d->defn = xstrdup(name);
         n->d->type = type;          n->d->type = type;
         n->d->next = NULL;          n->d->next = NULL;

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16