mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-09-08 06:07:32 +02:00
Add a fcn wl_delete to free the wordlist, but not its wl_word contents.
This commit is contained in:
@@ -39,6 +39,18 @@ wl_free(wordlist *wl)
|
||||
}
|
||||
}
|
||||
|
||||
/* Free the storage used by the word list only,
|
||||
but not the wl->wl_word. */
|
||||
void
|
||||
wl_delete(wordlist* wl)
|
||||
{
|
||||
while (wl) {
|
||||
wordlist* next = wl->wl_next;
|
||||
tfree(wl);
|
||||
wl = next;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* Copy a wordlist and the words. */
|
||||
wordlist *
|
||||
|
||||
Reference in New Issue
Block a user