[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.33 and 1.34

version 1.33, 1999/12/18 21:53:32 version 1.34, 1999/12/18 21:56:07
Line 1009 
Line 1009 
          * the end of the targets list           * the end of the targets list
          */           */
         if ((specType == Not) && (*line != '\0')) {          if ((specType == Not) && (*line != '\0')) {
               char *targName;
   
             if (Dir_HasWildcards(line)) {              if (Dir_HasWildcards(line)) {
                 /*                  /*
                  * Targets are to be sought only in the current directory,                   * Targets are to be sought only in the current directory,
Line 1029 
Line 1031 
                 (void)Lst_AtEnd(curTargs, (ClientData)line);                  (void)Lst_AtEnd(curTargs, (ClientData)line);
             }              }
   
             while(!Lst_IsEmpty(curTargs)) {              while((targName = (char *)Lst_DeQueue(curTargs)) != NULL) {
                 char    *targName = (char *)Lst_DeQueue(curTargs);  
   
                 if (!Suff_IsTransform (targName)) {                  if (!Suff_IsTransform (targName)) {
                     gn = Targ_FindNode (targName, TARG_CREATE);                      gn = Targ_FindNode (targName, TARG_CREATE);
                 } else {                  } else {
Line 1273 
Line 1273 
                     return;                      return;
                 }                  }
   
                 while (!Lst_IsEmpty (sources)) {                  while ((gn = (GNode *)Lst_DeQueue(sources)) != NULL)
                     gn = (GNode *) Lst_DeQueue (sources);                      ParseDoSrc(tOp, gn->name, curSrcs);
                     ParseDoSrc (tOp, gn->name, curSrcs);  
                 }  
                 Lst_Destroy (sources, NOFREE);                  Lst_Destroy (sources, NOFREE);
                 cp = line;                  cp = line;
             } else {              } else {
Line 2028 
Line 2026 
 {  {
     IFile     *ifile;   /* the state on the top of the includes stack */      IFile     *ifile;   /* the state on the top of the includes stack */
   
     if (Lst_IsEmpty (includes)) {      if ((ifile = (IFile *)Lst_DeQueue(includes)) == NULL)
         return (DONE);          return DONE;
     }  
   
     ifile = (IFile *) Lst_DeQueue (includes);  
     free ((Address) fname);      free ((Address) fname);
     fname = ifile->fname;      fname = ifile->fname;
     lineno = ifile->lineno;      lineno = ifile->lineno;

Legend:
Removed from v.1.33  
changed lines
  Added in v.1.34