Changeset 900 in kBuild for vendor/gnumake/current/variable.h
- Timestamp:
- May 23, 2007 3:13:11 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/gnumake/current/variable.h
r501 r900 100 100 { 101 101 struct pattern_var *next; 102 char *target; 102 const char *suffix; 103 const char *target; 103 104 unsigned int len; 104 char *suffix;105 105 struct variable variable; 106 106 }; … … 110 110 111 111 /* expand.c */ 112 extern char *variable_buffer_output PARAMS ((char *ptr, char *string, unsigned int length));113 extern char *variable_expand PARAMS ((char *line));114 extern char *variable_expand_for_file PARAMS ((char *line, struct file *file));115 extern char *allocated_variable_expand_for_file PARAMS ((char *line, struct file *file));112 char *variable_buffer_output (char *ptr, const char *string, unsigned int length); 113 char *variable_expand (const char *line); 114 char *variable_expand_for_file (const char *line, struct file *file); 115 char *allocated_variable_expand_for_file (const char *line, struct file *file); 116 116 #define allocated_variable_expand(line) \ 117 117 allocated_variable_expand_for_file (line, (struct file *) 0) 118 extern char *expand_argument PARAMS ((const char *str, const char *end)); 119 extern char *variable_expand_string PARAMS ((char *line, char *string, 120 long length)); 121 extern void install_variable_buffer PARAMS ((char **bufp, unsigned int *lenp)); 122 extern void restore_variable_buffer PARAMS ((char *buf, unsigned int len)); 118 char *expand_argument (const char *str, const char *end); 119 char *variable_expand_string (char *line, const char *string, long length); 120 void install_variable_buffer (char **bufp, unsigned int *lenp); 121 void restore_variable_buffer (char *buf, unsigned int len); 123 122 124 123 /* function.c */ 125 extern int handle_function PARAMS ((char **op, char **stringp)); 126 extern int pattern_matches PARAMS ((char *pattern, char *percent, char *str)); 127 extern char *subst_expand PARAMS ((char *o, char *text, char *subst, char *replace, 128 unsigned int slen, unsigned int rlen, int by_word)); 129 extern char *patsubst_expand PARAMS ((char *o, char *text, char *pattern, char *replace, 130 char *pattern_percent, char *replace_percent)); 124 int handle_function (char **op, const char **stringp); 125 int pattern_matches (const char *pattern, const char *percent, const char *str); 126 char *subst_expand (char *o, const char *text, const char *subst, 127 const char *replace, unsigned int slen, unsigned int rlen, 128 int by_word); 129 char *patsubst_expand_pat (char *o, const char *text, const char *pattern, 130 const char *replace, const char *pattern_percent, 131 const char *replace_percent); 132 char *patsubst_expand (char *o, const char *text, char *pattern, char *replace); 131 133 132 134 /* expand.c */ 133 extern char *recursively_expand_for_file PARAMS ((struct variable *v, 134 struct file *file)); 135 char *recursively_expand_for_file (struct variable *v, struct file *file); 135 136 #define recursively_expand(v) recursively_expand_for_file (v, NULL) 136 137 137 138 /* variable.c */ 138 extern struct variable_set_list *create_new_variable_set PARAMS ((void)); 139 extern void free_variable_set PARAMS ((struct variable_set_list *)); 140 extern struct variable_set_list *push_new_variable_scope PARAMS ((void)); 141 extern void pop_variable_scope PARAMS ((void)); 142 extern void define_automatic_variables PARAMS ((void)); 143 extern void initialize_file_variables PARAMS ((struct file *file, int read)); 144 extern void print_file_variables PARAMS ((struct file *file)); 145 extern void print_variable_set PARAMS ((struct variable_set *set, char *prefix)); 146 extern void merge_variable_set_lists PARAMS ((struct variable_set_list **to_list, struct variable_set_list *from_list)); 147 extern struct variable *do_variable_definition PARAMS ((const struct floc *flocp, const char *name, char *value, enum variable_origin origin, enum variable_flavor flavor, int target_var)); 148 extern struct variable *parse_variable_definition PARAMS ((struct variable *v, char *line)); 149 extern struct variable *try_variable_definition PARAMS ((const struct floc *flocp, char *line, enum variable_origin origin, int target_var)); 150 extern void init_hash_global_variable_set PARAMS ((void)); 151 extern void hash_init_function_table PARAMS ((void)); 152 extern struct variable *lookup_variable PARAMS ((const char *name, unsigned int length)); 153 extern struct variable *lookup_variable_in_set PARAMS ((const char *name, 154 unsigned int length, 155 const struct variable_set *set)); 156 157 extern struct variable *define_variable_in_set 158 PARAMS ((const char *name, unsigned int length, char *value, 159 enum variable_origin origin, int recursive, 160 struct variable_set *set, const struct floc *flocp)); 139 struct variable_set_list *create_new_variable_set (void); 140 void free_variable_set (struct variable_set_list *); 141 struct variable_set_list *push_new_variable_scope (void); 142 void pop_variable_scope (void); 143 void define_automatic_variables (void); 144 void initialize_file_variables (struct file *file, int reading); 145 void print_file_variables (const struct file *file); 146 void print_variable_set (struct variable_set *set, char *prefix); 147 void merge_variable_set_lists (struct variable_set_list **to_list, 148 struct variable_set_list *from_list); 149 struct variable *do_variable_definition (const struct floc *flocp, 150 const char *name, const char *value, 151 enum variable_origin origin, 152 enum variable_flavor flavor, 153 int target_var); 154 struct variable *parse_variable_definition (struct variable *v, char *line); 155 struct variable *try_variable_definition (const struct floc *flocp, char *line, 156 enum variable_origin origin, 157 int target_var); 158 void init_hash_global_variable_set (void); 159 void hash_init_function_table (void); 160 struct variable *lookup_variable (const char *name, unsigned int length); 161 struct variable *lookup_variable_in_set (const char *name, unsigned int length, 162 const struct variable_set *set); 163 164 struct variable *define_variable_in_set (const char *name, unsigned int length, 165 const char *value, 166 enum variable_origin origin, 167 int recursive, 168 struct variable_set *set, 169 const struct floc *flocp); 161 170 162 171 /* Define a variable in the current variable set. */ … … 191 200 }while(0) 192 201 193 extern char **target_environment PARAMS ((struct file *file)); 194 195 extern struct pattern_var *create_pattern_var PARAMS ((char *target, char *suffix)); 202 char **target_environment (struct file *file); 203 204 struct pattern_var *create_pattern_var (const char *target, 205 const char *suffix); 196 206 197 207 extern int export_all_variables;
Note:
See TracChangeset
for help on using the changeset viewer.