Move some global variables to the correct files.
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.232)
This commit is contained in:
parent
d25fe44200
commit
ad17767376
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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 ')'
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user