diff options
author | Paul Smith <psmith@gnu.org> | 2023-03-26 17:29:50 -0400 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2023-04-01 11:13:12 -0400 |
commit | 23f70b0cb86208d3b9b47b0efa9707a1dac5360b (patch) | |
tree | e301306edec0e916b6c0595317c9d436655e75ed /src/variable.h | |
parent | 78c8c44326f644da612088fa05c8a77c5ca17a5e (diff) | |
download | make-git-23f70b0cb86208d3b9b47b0efa9707a1dac5360b.tar.gz |
Create helper functions for pushing file contexts
* src/variable.h (install_file_context, restore_file_context): Add
declarations for new functions.
* src/variable.c (install_file_context, restore_file_context): Define
the new functions.
(lookup_variable_for_file): Call them.
* src/expand.c (recursively_expand_for_file): Ditto.
(allocated_expand_variable_for_file): Ditto.
(expand_string_for_file): Ditto.
Diffstat (limited to 'src/variable.h')
-rw-r--r-- | src/variable.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/variable.h b/src/variable.h index bfba63f5..bbda212f 100644 --- a/src/variable.h +++ b/src/variable.h @@ -160,6 +160,8 @@ struct variable_set_list *create_new_variable_set (void); void free_variable_set (struct variable_set_list *); struct variable_set_list *push_new_variable_scope (void); void pop_variable_scope (void); +void install_file_context (struct file *file, struct variable_set_list **oldlist, const floc **oldfloc); +void restore_file_context (struct variable_set_list *oldlist, const floc *oldfloc); void define_automatic_variables (void); void initialize_file_variables (struct file *file, int reading); void print_file_variables (const struct file *file); |