Changeset 2596 for vendor/gnumake/current/variable.h
- Timestamp:
- Jun 20, 2012, 12:44:52 AM (13 years ago)
- Location:
- vendor/gnumake/current
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/gnumake/current
- Property svn:ignore deleted
-
vendor/gnumake/current/variable.h
r1989 r2596 1 1 /* Definitions for using variables in GNU Make. 2 2 Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 3 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software4 Foundation, Inc.3 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 4 2010 Free Software Foundation, Inc. 5 5 This file is part of GNU Make. 6 6 … … 60 60 unsigned int conditional:1; /* Nonzero if set with a ?=. */ 61 61 unsigned int per_target:1; /* Nonzero if a target-specific variable. */ 62 unsigned int special:1; /* Nonzero if this is a special variable. */62 unsigned int special:1; /* Nonzero if this is a special variable. */ 63 63 unsigned int exportable:1; /* Nonzero if the variable _could_ be 64 64 exported. */ 65 65 unsigned int expanding:1; /* Nonzero if currently being expanded. */ 66 unsigned int private_var:1; /* Nonzero avoids inheritance of this 67 target-specific variable. */ 66 68 unsigned int exp_count:EXP_COUNT_BITS; 67 69 /* If >1, allow this many self-referential … … 93 95 struct variable_set_list *next; /* Link in the chain. */ 94 96 struct variable_set *set; /* Variable set. */ 97 int next_is_parent; /* True if next is a parent target. */ 95 98 }; 96 99 … … 108 111 extern char *variable_buffer; 109 112 extern struct variable_set_list *current_variable_set_list; 113 extern struct variable *default_goal_var; 110 114 111 115 /* expand.c */ … … 152 156 enum variable_flavor flavor, 153 157 int target_var); 154 struct variable *parse_variable_definition (struct variable *v, char *line); 158 char *parse_variable_definition (const char *line, 159 enum variable_flavor *flavor); 160 struct variable *assign_variable_definition (struct variable *v, char *line); 155 161 struct variable *try_variable_definition (const struct floc *flocp, char *line, 156 162 enum variable_origin origin, … … 175 181 current_variable_set_list->set,NILF) 176 182 183 /* Define a variable with a constant name in the current variable set. */ 184 185 #define define_variable_cname(n,v,o,r) \ 186 define_variable_in_set((n),(sizeof (n) - 1),(v),(o),(r),\ 187 current_variable_set_list->set,NILF) 188 177 189 /* Define a variable with a location in the current variable set. */ 178 190 … … 190 202 #define define_variable_for_file(n,l,v,o,r,f) \ 191 203 define_variable_in_set((n),(l),(v),(o),(r),(f)->variables->set,NILF) 204 205 void undefine_variable_in_set (const char *name, unsigned int length, 206 enum variable_origin origin, 207 struct variable_set *set); 208 209 /* Remove variable from the current variable set. */ 210 211 #define undefine_variable_global(n,l,o) \ 212 undefine_variable_in_set((n),(l),(o),NULL) 192 213 193 214 /* Warn that NAME is an undefined variable. */
Note:
See TracChangeset
for help on using the changeset viewer.