]> git.ipfire.org Git - thirdparty/make.git/commit
Replace target_var boolean with enum variable_scope
authorDmitry Goncharov <dgoncharov@users.sf.net>
Sun, 28 Jan 2024 19:46:55 +0000 (14:46 -0500)
committerPaul Smith <psmith@gnu.org>
Sun, 4 Feb 2024 16:32:50 +0000 (11:32 -0500)
commitec348f51d0240ebc64d11c77c461e89c4a8dfed7
tree14fca725077dda855ca87314bc3d45e566b30beb
parent51e56a028e64ed15326ccb986f7f7588268b0002
Replace target_var boolean with enum variable_scope

Replace the target_var boolean with an enum to distinguish between
global, target-specific, and pattern-specific variables when defining.

* src/variable.h (enum variable_scope): Introduce enum variable_scope.
Replace parameter target_var of type int with enum variable_scope.
* src/load.c (load_file): Ditto.
* src/main.c (handle_non_switch_argument): Ditto.
* src/read.c (eval_makefile): Ditto.
(eval): Ditto.
(do_define): Ditto.
(record_target_var): Ditto.
(construct_include_path): Ditto.
* src/variable.c (initialize_file_variables): Ditto.
(shell_result): Ditto.
(try_variable_definition): Ditto.
(do_variable_definition): Ditto.
src/load.c
src/main.c
src/read.c
src/variable.c
src/variable.h