Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Dec 2008 08:05:49 +0000 (UTC)
From:      "David E. O'Brien" <obrien@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r186558 - head/usr.bin/make
Message-ID:  <200812290805.mBT85nDx048952@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: obrien
Date: Mon Dec 29 08:05:49 2008
New Revision: 186558
URL: http://svn.freebsd.org/changeset/base/186558

Log:
  Consistently use Var_SetGlobal().

Modified:
  head/usr.bin/make/for.c
  head/usr.bin/make/parse.c
  head/usr.bin/make/suff.c

Modified: head/usr.bin/make/for.c
==============================================================================
--- head/usr.bin/make/for.c	Mon Dec 29 06:31:03 2008	(r186557)
+++ head/usr.bin/make/for.c	Mon Dec 29 08:05:49 2008	(r186558)
@@ -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));

Modified: head/usr.bin/make/parse.c
==============================================================================
--- head/usr.bin/make/parse.c	Mon Dec 29 06:31:03 2008	(r186557)
+++ head/usr.bin/make/parse.c	Mon Dec 29 08:05:49 2008	(r186558)
@@ -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;

Modified: head/usr.bin/make/suff.c
==============================================================================
--- head/usr.bin/make/suff.c	Mon Dec 29 06:31:03 2008	(r186557)
+++ head/usr.bin/make/suff.c	Mon Dec 29 08:05:49 2008	(r186558)
@@ -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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812290805.mBT85nDx048952>