Move list manipulation macros to list.h and create C versions of

the more complex ones in list.c.  The names have been down-cased
so they appear more like normal functions.
This commit is contained in:
Todd C. Miller
2007-08-31 23:13:26 +00:00
parent 07ebde4098
commit d72778832c
11 changed files with 345 additions and 237 deletions

View File

@@ -114,7 +114,7 @@ alias_add(name, type, members)
a = emalloc(sizeof(*a));
a->name = name;
a->type = type;
LIST2HEAD(a->members, members);
list2head(&a->members, members);
if (rbinsert(aliases, a)) {
efree(a);
snprintf(errbuf, sizeof(errbuf), "Alias `%s' already defined", name);