var.c (146060) | var.c (146134) |
---|---|
1/*- 2 * Copyright (c) 2002 Juli Mallett. 3 * Copyright (c) 1988, 1989, 1990, 1993 4 * The Regents of the University of California. All rights reserved. 5 * Copyright (c) 1989 by Berkeley Softworks 6 * All rights reserved. 7 * 8 * This code is derived from software contributed to Berkeley by --- 26 unchanged lines hidden (view full) --- 35 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 37 * SUCH DAMAGE. 38 * 39 * @(#)var.c 8.3 (Berkeley) 3/19/94 40 */ 41 42#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2002 Juli Mallett. 3 * Copyright (c) 1988, 1989, 1990, 1993 4 * The Regents of the University of California. All rights reserved. 5 * Copyright (c) 1989 by Berkeley Softworks 6 * All rights reserved. 7 * 8 * This code is derived from software contributed to Berkeley by --- 26 unchanged lines hidden (view full) --- 35 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 37 * SUCH DAMAGE. 38 * 39 * @(#)var.c 8.3 (Berkeley) 3/19/94 40 */ 41 42#include <sys/cdefs.h> |
43__FBSDID("$FreeBSD: head/usr.bin/make/var.c 146060 2005-05-10 14:10:44Z harti $"); | 43__FBSDID("$FreeBSD: head/usr.bin/make/var.c 146134 2005-05-12 11:58:39Z harti $"); |
44 45/** 46 * var.c -- 47 * Variable-handling functions 48 * 49 * Interface: 50 * Var_Set Set the value of a variable in the given 51 * context. The variable is created if it doesn't --- 123 unchanged lines hidden (view full) --- 175 * 3) the command-line context. All variables set on the command line 176 * are placed in this context. They are UNALTERABLE once placed here. 177 * 4) the local context. Each target has associated with it a context 178 * list. On this list are located the structures describing such 179 * local variables as $(@) and $(*) 180 * The four contexts are searched in the reverse order from which they are 181 * listed. 182 */ | 44 45/** 46 * var.c -- 47 * Variable-handling functions 48 * 49 * Interface: 50 * Var_Set Set the value of a variable in the given 51 * context. The variable is created if it doesn't --- 123 unchanged lines hidden (view full) --- 175 * 3) the command-line context. All variables set on the command line 176 * are placed in this context. They are UNALTERABLE once placed here. 177 * 4) the local context. Each target has associated with it a context 178 * list. On this list are located the structures describing such 179 * local variables as $(@) and $(*) 180 * The four contexts are searched in the reverse order from which they are 181 * listed. 182 */ |
183GNode *VAR_ENV; /* variables from the environment */ 184GNode *VAR_GLOBAL; /* variables from the makefile */ 185GNode *VAR_CMD; /* variables defined on the command-line */ | 183static GNode *VAR_ENV; /* variables from the environment */ 184GNode *VAR_GLOBAL; /* variables from the makefile */ 185GNode *VAR_CMD; /* variables defined on the command-line */ |
186 | 186 |
187Boolean oldVars; /* variable substitution style */ 188Boolean checkEnvFirst; /* -e flag */ 189 |
|
187#define OPEN_PAREN '(' 188#define CLOSE_PAREN ')' 189#define OPEN_BRACE '{' 190#define CLOSE_BRACE '}' 191 192/** 193 * Create a Var object. 194 * --- 2335 unchanged lines hidden --- | 190#define OPEN_PAREN '(' 191#define CLOSE_PAREN ')' 192#define OPEN_BRACE '{' 193#define CLOSE_BRACE '}' 194 195/** 196 * Create a Var object. 197 * --- 2335 unchanged lines hidden --- |