Move some global variables to the correct files.

Submitted by:	Max Okumoto <okumoto@ucsd.edu> (7.232)
This commit is contained in:
harti 2005-05-12 11:58:39 +00:00
parent d25fe44200
commit ad17767376
4 changed files with 12 additions and 10 deletions

View File

@ -93,10 +93,6 @@ extern Boolean usePipes;
* targets are out-of-date */
extern Boolean queryFlag;
/* TRUE if environment should be searched for all variables before
* the global context */
extern Boolean checkEnvFirst;
/* List of specific variables for which the environment should be
* searched before the global context */
extern Lst envFirstVars;

View File

@ -121,7 +121,6 @@ static Boolean expandVars; /* fully expand printed variables */
/* list of variables to print */
static Lst variables = Lst_Initializer(variables);
int maxJobs; /* -j argument */
static Boolean forceJobs; /* -j argument given */
Boolean compatMake; /* -B argument */
Boolean debug; /* -d flag */
@ -133,8 +132,6 @@ Boolean usePipes; /* !-P flag */
Boolean ignoreErrors; /* -i flag */
Boolean beSilent; /* -s flag */
Boolean beVerbose; /* -v flag */
Boolean oldVars; /* variable substitution style */
Boolean checkEnvFirst; /* -e flag */
/* (-E) vars to override from env */
Lst envFirstVars = Lst_Initializer(envFirstVars);

View File

@ -180,9 +180,12 @@ static char varNoError[] = "";
* The four contexts are searched in the reverse order from which they are
* listed.
*/
GNode *VAR_ENV; /* variables from the environment */
GNode *VAR_GLOBAL; /* variables from the makefile */
GNode *VAR_CMD; /* variables defined on the command-line */
static GNode *VAR_ENV; /* variables from the environment */
GNode *VAR_GLOBAL; /* variables from the makefile */
GNode *VAR_CMD; /* variables defined on the command-line */
Boolean oldVars; /* variable substitution style */
Boolean checkEnvFirst; /* -e flag */
#define OPEN_PAREN '('
#define CLOSE_PAREN ')'

View File

@ -57,6 +57,12 @@ extern struct GNode *VAR_CMD;
*/
extern char var_Error[];
/*
* TRUE if environment should be searched for all variables before
* the global context
*/
extern Boolean checkEnvFirst;
/* Do old-style variable substitution */
extern Boolean oldVars;