diff options
author | harti <harti@FreeBSD.org> | 2004-12-07 10:14:16 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2004-12-07 10:14:16 +0000 |
commit | e65ea2146d73aa6aedf8ef3fb0fd535039da6887 (patch) | |
tree | dc544ee893c2b95a0e4d64009cb9fe98b5598e7c /usr.bin/make/targ.c | |
parent | 4a639d6164f667049cce0046d22e760ca1aad3f2 (diff) | |
download | FreeBSD-src-e65ea2146d73aa6aedf8ef3fb0fd535039da6887.zip FreeBSD-src-e65ea2146d73aa6aedf8ef3fb0fd535039da6887.tar.gz |
Make needs no circular lists so remove them from the list code.
Diffstat (limited to 'usr.bin/make/targ.c')
-rw-r--r-- | usr.bin/make/targ.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/usr.bin/make/targ.c b/usr.bin/make/targ.c index 725bf44..3336e55 100644 --- a/usr.bin/make/targ.c +++ b/usr.bin/make/targ.c @@ -115,7 +115,7 @@ void Targ_Init(void) { - allTargets = Lst_Init(FALSE); + allTargets = Lst_Init(); Hash_InitTable(&targets, HTSIZE); } @@ -173,18 +173,18 @@ Targ_NewGN(char *name) gn->childMade = FALSE; gn->order = 0; gn->mtime = gn->cmtime = 0; - gn->iParents = Lst_Init(FALSE); - gn->cohorts = Lst_Init(FALSE); - gn->parents = Lst_Init(FALSE); - gn->children = Lst_Init(FALSE); - gn->successors = Lst_Init(FALSE); - gn->preds = Lst_Init(FALSE); - gn->context = Lst_Init(FALSE); - gn->commands = Lst_Init(FALSE); + gn->iParents = Lst_Init(); + gn->cohorts = Lst_Init(); + gn->parents = Lst_Init(); + gn->children = Lst_Init(); + gn->successors = Lst_Init(); + gn->preds = Lst_Init(); + gn->context = Lst_Init(); + gn->commands = Lst_Init(); gn->suffix = NULL; if (allGNs == NULL) - allGNs = Lst_Init(FALSE); + allGNs = Lst_Init(); Lst_AtEnd(allGNs, (void *)gn); return (gn); @@ -284,7 +284,7 @@ Targ_FindList(Lst names, int flags) GNode *gn; /* node in tLn */ char *name; - nodes = Lst_Init(FALSE); + nodes = Lst_Init(); if (Lst_Open(names) == FAILURE) { return (nodes); |