summaryrefslogtreecommitdiff
path: root/README.git
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2021-09-18 18:53:38 -0400
committerPaul Smith <psmith@gnu.org>2021-09-20 00:29:31 -0400
commit6c06c547dcc990a9db0648d66b6a6519c3d1e5d4 (patch)
tree2be8c5d30bd026291f4d9b75a03aa03faf06bdf4 /README.git
parentc5d4b7b2f260c85ba48db4e844c4a2e4e3004238 (diff)
downloadmake-git-6c06c547dcc990a9db0648d66b6a6519c3d1e5d4.tar.gz
Add support for the POSIX :::= assignment operator.
POSIX Issue 8 will require a new assignment operator, :::=. This operator behaves similarly to the BSD make := operator: the right-hand side is expanded immediately, but then the value is re-escaped (all '$' are converted to '$$') and the resulting variable is considered a recursive variable: the value is re-expanded on use. * src/variable.h (enum variable_flavor): Add f_expand flavor. * src/variable.c (do_variable_definition): When defining f_expand, post-process the result to re-escape '$' characters. Remove default: to the compiler warns about un-handled enum values. Set recursive values for both f_recursive and f_expand. (parse_variable_definition): Rewrite this method. The previous version was annoying to extend to ':::='. (print_variable): Remove default: so the compiler warns us about un-handled enum values. * src/function.c (func_origin): Remove default: so the compiler warns us about un-handled enum values. * doc/make.texi: Add documentation for :::=. * tests/scripts/variables/define: Add a test for define :::=. * tests/scripts/variables/flavors: Add tests for :::=. * tests/scripts/variables/negative: Add tests for :::=.
Diffstat (limited to 'README.git')
0 files changed, 0 insertions, 0 deletions