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:
2
alias.c
2
alias.c
@@ -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);
|
||||
|
Reference in New Issue
Block a user