[BACK]Return to parse.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / make

Diff for /src/usr.bin/make/parse.c between version 1.31 and 1.32

version 1.31, 1999/12/16 17:27:18 version 1.32, 1999/12/18 02:11:27
Line 808 
Line 808 
     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;
Line 942 
Line 942 
                 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;
Line 997 
Line 997 
                     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);
                 }                  }
Line 1016 
Line 1016 
                  * 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);
   
Line 1266 
Line 1266 
             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);
Line 2596 
Line 2596 
                     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);
Line 2641 
Line 2641 
 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
 }  }
   
Line 2682 
Line 2682 
 {  {
     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.");

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.32