frontend/define.c, rewrite `struct udfunc' insertion
This commit is contained in:
parent
a5f933b3ec
commit
a4c7dff570
|
|
@ -133,13 +133,8 @@ com_define(wordlist *wlist)
|
|||
|
||||
if (udf == NULL) {
|
||||
udf = alloc(struct udfunc);
|
||||
if (udfuncs == NULL) {
|
||||
udfuncs = udf;
|
||||
udf->ud_next = NULL;
|
||||
} else {
|
||||
udf->ud_next = udfuncs;
|
||||
udfuncs = udf;
|
||||
}
|
||||
udf->ud_next = udfuncs;
|
||||
udfuncs = udf;
|
||||
}
|
||||
|
||||
udf->ud_text = names;
|
||||
|
|
|
|||
Loading…
Reference in New Issue