Module Name: src Committed By: rillig Date: Thu Feb 4 21:33:14 UTC 2021
Modified Files: src/usr.bin/make: cond.c dir.c for.c job.c main.c make.h meta.c parse.c targ.c trace.c var.c src/usr.bin/make/unit-tests: varname-make_print_var_on_error-jobs.mk varname-make_print_var_on_error.mk Log Message: make: rename some VAR constants to SCOPE The word "context" does not fit perfectly to the variables that are associate with a GNode, as the context is usually something from the outside and the variables are more like properties inherent to the GNode. The term "global context" fits even less. Since the thing where variables are looked up is commonly named a scope, use that term instead. This commit only renames the global variables VAR_GLOBAL, VAR_INTERNAL and VAR_CMDLINE, plus a few very closely related comments. These are: GNode.vars (because of line breaks) GNode_Free (dito) varname-make_print_var_on_error.mk varname-make_print_var_on_error-jobs.mk The debug message in Var_Stats is left as-is since there is no unit test for it yet. The other renamings (variable names "context", "ctxt", as well as further comments) will be done in a follow-up commit. To generate a diff of this commit: cvs rdiff -u -r1.254 -r1.255 src/usr.bin/make/cond.c cvs rdiff -u -r1.267 -r1.268 src/usr.bin/make/dir.c cvs rdiff -u -r1.140 -r1.141 src/usr.bin/make/for.c cvs rdiff -u -r1.415 -r1.416 src/usr.bin/make/job.c cvs rdiff -u -r1.529 -r1.530 src/usr.bin/make/main.c cvs rdiff -u -r1.251 -r1.252 src/usr.bin/make/make.h cvs rdiff -u -r1.174 -r1.175 src/usr.bin/make/meta.c cvs rdiff -u -r1.544 -r1.545 src/usr.bin/make/parse.c cvs rdiff -u -r1.163 -r1.164 src/usr.bin/make/targ.c cvs rdiff -u -r1.26 -r1.27 src/usr.bin/make/trace.c cvs rdiff -u -r1.800 -r1.801 src/usr.bin/make/var.c cvs rdiff -u -r1.2 -r1.3 \ src/usr.bin/make/unit-tests/varname-make_print_var_on_error-jobs.mk cvs rdiff -u -r1.5 -r1.6 \ src/usr.bin/make/unit-tests/varname-make_print_var_on_error.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.