VirtualBox

Changeset 900 in kBuild for vendor/gnumake/current/variable.h


Ignore:
Timestamp:
May 23, 2007 3:13:11 AM (18 years ago)
Author:
bird
Message:

Load /home/bird/src/Gnu/make/2007-05-23 into vendor/gnumake/current.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/gnumake/current/variable.h

    r501 r900  
    100100  {
    101101    struct pattern_var *next;
    102     char *target;
     102    const char *suffix;
     103    const char *target;
    103104    unsigned int len;
    104     char *suffix;
    105105    struct variable variable;
    106106  };
     
    110110
    111111/* 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));
     112char *variable_buffer_output (char *ptr, const char *string, unsigned int length);
     113char *variable_expand (const char *line);
     114char *variable_expand_for_file (const char *line, struct file *file);
     115char *allocated_variable_expand_for_file (const char *line, struct file *file);
    116116#define allocated_variable_expand(line) \
    117117  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));
     118char *expand_argument (const char *str, const char *end);
     119char *variable_expand_string (char *line, const char *string, long length);
     120void install_variable_buffer (char **bufp, unsigned int *lenp);
     121void restore_variable_buffer (char *buf, unsigned int len);
    123122
    124123/* 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));
     124int handle_function (char **op, const char **stringp);
     125int pattern_matches (const char *pattern, const char *percent, const char *str);
     126char *subst_expand (char *o, const char *text, const char *subst,
     127                    const char *replace, unsigned int slen, unsigned int rlen,
     128                    int by_word);
     129char *patsubst_expand_pat (char *o, const char *text, const char *pattern,
     130                           const char *replace, const char *pattern_percent,
     131                           const char *replace_percent);
     132char *patsubst_expand (char *o, const char *text, char *pattern, char *replace);
    131133
    132134/* expand.c */
    133 extern char *recursively_expand_for_file PARAMS ((struct variable *v,
    134                                                   struct file *file));
     135char *recursively_expand_for_file (struct variable *v, struct file *file);
    135136#define recursively_expand(v)   recursively_expand_for_file (v, NULL)
    136137
    137138/* 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));
     139struct variable_set_list *create_new_variable_set (void);
     140void free_variable_set (struct variable_set_list *);
     141struct variable_set_list *push_new_variable_scope (void);
     142void pop_variable_scope (void);
     143void define_automatic_variables (void);
     144void initialize_file_variables (struct file *file, int reading);
     145void print_file_variables (const struct file *file);
     146void print_variable_set (struct variable_set *set, char *prefix);
     147void merge_variable_set_lists (struct variable_set_list **to_list,
     148                               struct variable_set_list *from_list);
     149struct 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);
     154struct variable *parse_variable_definition (struct variable *v, char *line);
     155struct variable *try_variable_definition (const struct floc *flocp, char *line,
     156                                          enum variable_origin origin,
     157                                          int target_var);
     158void init_hash_global_variable_set (void);
     159void hash_init_function_table (void);
     160struct variable *lookup_variable (const char *name, unsigned int length);
     161struct variable *lookup_variable_in_set (const char *name, unsigned int length,
     162                                         const struct variable_set *set);
     163
     164struct 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);
    161170
    162171/* Define a variable in the current variable set.  */
     
    191200                              }while(0)
    192201
    193 extern char **target_environment PARAMS ((struct file *file));
    194 
    195 extern struct pattern_var *create_pattern_var PARAMS ((char *target, char *suffix));
     202char **target_environment (struct file *file);
     203
     204struct pattern_var *create_pattern_var (const char *target,
     205                                        const char *suffix);
    196206
    197207extern int export_all_variables;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette