diff options
author | Boris Kolpackov <boris@kolpackov.net> | 2005-02-27 21:40:23 +0000 |
---|---|---|
committer | Boris Kolpackov <boris@kolpackov.net> | 2005-02-27 21:40:23 +0000 |
commit | 659fc6b55e28740c74d66dbe3bda765d1004a12e (patch) | |
tree | a3b99015012abca13c0f7729274dff1bba322f1f /misc.c | |
parent | 9d153cc1b1e467cd6245755c32f78efbd62142c2 (diff) | |
download | gunmake-659fc6b55e28740c74d66dbe3bda765d1004a12e.tar.gz |
Implementation of the second expansion in explicit
rules, static pattern rules and implicit rules.
Diffstat (limited to 'misc.c')
-rw-r--r-- | misc.c | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -525,6 +525,27 @@ copy_dep_chain (struct dep *d) return firstnew; } +/* Free a chain of `struct dep'. Each dep->name is freed + as well. */ + +void +free_dep_chain (struct dep *d) +{ + register struct dep *tmp; + + while (d != 0) + { + if (d->name != 0) + free (d->name); + + tmp = d; + + d = d->next; + + free (tmp); + } + +} #ifdef iAPX286 /* The losing compiler on this machine can't handle this macro. */ |