version 1.15, 2003/06/30 22:13:32 |
version 1.16, 2003/11/17 17:12:10 |
|
|
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; |
|
|
size_t s; |
size_t s; |
void *u UNUSED; |
void *u UNUSED; |
{ |
{ |
return xalloc(s); |
return xalloc(s, "element alloc"); |
} |
} |
|
|
void |
void |
|
|
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); |
|
|
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); |
|
|
|
|
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; |