version 1.31, 1999/12/16 17:27:18 |
version 1.32, 1999/12/18 02:11:27 |
|
|
waiting = 0; |
waiting = 0; |
paths = (Lst)NULL; |
paths = (Lst)NULL; |
|
|
curTargs = Lst_Init(FALSE); |
curTargs = Lst_Init(); |
curSrcs = Lst_Init(FALSE); |
curSrcs = Lst_Init(); |
|
|
do { |
do { |
for (cp = line; |
for (cp = line; |
|
|
switch (specType) { |
switch (specType) { |
case ExPath: |
case ExPath: |
if (paths == NULL) { |
if (paths == NULL) { |
paths = Lst_Init(FALSE); |
paths = Lst_Init(); |
} |
} |
(void)Lst_AtEnd(paths, (ClientData)dirSearchPath); |
(void)Lst_AtEnd(paths, (ClientData)dirSearchPath); |
break; |
break; |
|
|
return; |
return; |
} else { |
} else { |
if (paths == (Lst)NULL) { |
if (paths == (Lst)NULL) { |
paths = Lst_Init(FALSE); |
paths = Lst_Init(); |
} |
} |
(void)Lst_AtEnd(paths, (ClientData)path); |
(void)Lst_AtEnd(paths, (ClientData)path); |
} |
} |
|
|
* use Dir_Destroy in the destruction of the path as the |
* use Dir_Destroy in the destruction of the path as the |
* Dir module could have added a directory to the path... |
* Dir module could have added a directory to the path... |
*/ |
*/ |
Lst emptyPath = Lst_Init(FALSE); |
Lst emptyPath = Lst_Init(); |
|
|
Dir_Expand(line, emptyPath, curTargs); |
Dir_Expand(line, emptyPath, curTargs); |
|
|
|
|
if (*cp == '(') { |
if (*cp == '(') { |
GNode *gn; |
GNode *gn; |
|
|
sources = Lst_Init (FALSE); |
sources = Lst_Init(); |
if (Arch_ParseArchive (&line, sources, VAR_CMD) != SUCCESS) { |
if (Arch_ParseArchive (&line, sources, VAR_CMD) != SUCCESS) { |
Parse_Error (PARSE_FATAL, |
Parse_Error (PARSE_FATAL, |
"Error in source archive spec \"%s\"", line); |
"Error in source archive spec \"%s\"", line); |
|
|
if (targets) |
if (targets) |
Lst_Destroy(targets, NOFREE); |
Lst_Destroy(targets, NOFREE); |
|
|
targets = Lst_Init (FALSE); |
targets = Lst_Init(); |
inLine = TRUE; |
inLine = TRUE; |
|
|
ParseDoDependency (line); |
ParseDoDependency (line); |
|
|
Parse_Init () |
Parse_Init () |
{ |
{ |
mainNode = NILGNODE; |
mainNode = NILGNODE; |
parseIncPath = Lst_Init (FALSE); |
parseIncPath = Lst_Init(); |
sysIncPath = Lst_Init (FALSE); |
sysIncPath = Lst_Init(); |
includes = Lst_Init (FALSE); |
includes = Lst_Init(); |
#ifdef CLEANUP |
#ifdef CLEANUP |
targCmds = Lst_Init (FALSE); |
targCmds = Lst_Init(); |
#endif |
#endif |
} |
} |
|
|
|
|
{ |
{ |
Lst listmain; /* result list */ |
Lst listmain; /* result list */ |
|
|
listmain = Lst_Init (FALSE); |
listmain = Lst_Init(); |
|
|
if (mainNode == NILGNODE) { |
if (mainNode == NILGNODE) { |
Punt ("no target to make."); |
Punt ("no target to make."); |