usr.bin/make/parse.c
/*-
 *---------------------------------------------------------------------
 * Parse_Init --
 *	initialize the parsing module
 *
 * Results:
 *	none
 *
 * Side Effects:
 *	the parseIncPath list is initialized...
 *---------------------------------------------------------------------
 */
Parse_Init
initialize the parsing module

none

Side Effects:
the parseIncPath list is initialized
Parse_Init initialize the parsing module none Side Effects : the parseIncPath list is initialized
void
Parse_Init ()
{
	char *cp = NULL, *start;
	static char syspath[] = _PATH_DEFSYSPATH;
    mainNode = NILGNODE;
    parseIncPath = Lst_Init (FALSE);
    sysIncPath = Lst_Init (FALSE);
    includes = Lst_Init (FALSE);
    targCmds = Lst_Init (FALSE);
    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 Parse_Init ( ) { char * cp = NULL , * start ; static char syspath [ ] = _PATH_DEFSYSPATH ; mainNode = NILGNODE ; parseIncPath = Lst_Init ( FALSE ) ; sysIncPath = Lst_Init ( FALSE ) ; includes = Lst_Init ( FALSE ) ; targCmds = Lst_Init ( FALSE ) ; 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 ) ; } } }
Parse_Init
      initialize the parsing module
Parse_Init initialize the parsing module
/* avoid faults on read-only strings */ /*
     * Add the directories from the DEFSYSPATH (more than one may be given
     * as dir1:...:dirn) to the system include path.
     */