]> git.ipfire.org Git - thirdparty/make.git/commit
Remove unnecessary parsing during makefile read
authorPaul Smith <psmith@gnu.org>
Thu, 11 Jan 2024 04:53:05 +0000 (23:53 -0500)
committerPaul Smith <psmith@gnu.org>
Sat, 27 Jan 2024 21:40:36 +0000 (16:40 -0500)
commit82708b3a3a7114c6cd11a11e525a8d33118dbf61
treea128cc5031c1f25828ab55b03e6c5aa3632afc1c
parent828906b6dcc85e2c7fa663435571ac73a97b52cc
Remove unnecessary parsing during makefile read

* src/read.c (make_word_type): Remove w_varassign from the enum.
(get_next_mword): This function is never called on a string in a place
where we might find a variable assignment.  Any variable assignments
have already been handled via try_variable_definition(), so we don't
need to check for them here.
* tests/scripts/variables/flavors: Check triple-colon assignment in
target-specific variables.
src/read.c
tests/scripts/variables/flavors