Consistently use Var_SetGlobal().

This commit is contained in:
David E. O'Brien 2008-12-29 08:05:49 +00:00
parent 3a6d1fcf9c
commit cfd6aac638
3 changed files with 4 additions and 4 deletions

View File

@ -254,7 +254,7 @@ For_Run(int lineno)
LST_FOREACH(ln, &values) {
val = Lst_Datum(ln);
Var_Set(var, val, VAR_GLOBAL);
Var_SetGlobal(var, val);
DEBUGF(FOR, ("--- %s = %s\n", var, val));
str = Buf_Peel(Var_SubstOnly(var, Buf_Data(buf), FALSE));

View File

@ -1076,7 +1076,7 @@ ParseDoDependency(char *line)
break;
case Posix:
is_posix = TRUE;
Var_Set("%POSIX", "1003.2", VAR_GLOBAL);
Var_SetGlobal("%POSIX", "1003.2");
break;
default:
break;

View File

@ -785,11 +785,11 @@ Suff_DoPaths(void)
}
ptr = Path_MakeFlags("-I", &inIncludes);
Var_Set(".INCLUDES", ptr, VAR_GLOBAL);
Var_SetGlobal(".INCLUDES", ptr);
free(ptr);
ptr = Path_MakeFlags("-L", &inLibs);
Var_Set(".LIBS", ptr, VAR_GLOBAL);
Var_SetGlobal(".LIBS", ptr);
free(ptr);
Path_Clear(&inIncludes);