[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.4 and 1.5

version 1.4, 1996/02/22 22:24:51 version 1.5, 1996/02/23 18:32:58
Line 2644 
Line 2644 
 void  void
 Parse_Init ()  Parse_Init ()
 {  {
         char *cp = NULL, *start;  
                                         /* avoid faults on read-only strings */  
         static char syspath[] = _PATH_DEFSYSPATH;  
   
     mainNode = NILGNODE;      mainNode = NILGNODE;
     parseIncPath = Lst_Init (FALSE);      parseIncPath = Lst_Init (FALSE);
     sysIncPath = Lst_Init (FALSE);      sysIncPath = Lst_Init (FALSE);
     includes = Lst_Init (FALSE);      includes = Lst_Init (FALSE);
     targCmds = Lst_Init (FALSE);      targCmds = Lst_Init (FALSE);
   
     /*  
      * Add the directories from the DEFSYSPATH (more than one may be given  
      * as dir1:...:dirn) to the system include path.  
      */  
     for (start = syspath; *start != '\0'; start = cp) {  
         for (cp = start; *cp != '\0' && *cp != ':'; cp++)  
             continue;  
         if (*cp == '\0') {  
             Dir_AddDir(sysIncPath, start);  
         } else {  
             *cp++ = '\0';  
             Dir_AddDir(sysIncPath, start);  
         }  
     }  
 }  }
   
 void  void

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5