]> git.ipfire.org Git - thirdparty/make.git/commit
Create a common method for skipping variable references
authorPaul Smith <psmith@gnu.org>
Wed, 10 Jan 2024 05:01:33 +0000 (00:01 -0500)
committerPaul Smith <psmith@gnu.org>
Sat, 27 Jan 2024 21:40:36 +0000 (16:40 -0500)
commit828906b6dcc85e2c7fa663435571ac73a97b52cc
treee5630240d8d22459d3142c52bea06055ea9c716d
parentb9369709565bf4ba31e5f272b48bd199024c44e6
Create a common method for skipping variable references

* README.git: Add some notes about using ASAN.
* src/makeint.h: Declare skip_references().
* src/misc.c (skip_reference): A new function that will skip over a
variable reference, counting matching open paren/brace characters.
* src/implicit.c (get_next_word): Replace code with skip_reference().
* src/read.c (conditional_line): Ditto.
(find_map_unquote): Ditto.
(get_next_mword): Ditto.
(parse_variable_definition): Ditto.
* src/function.c (handle_function): Make clear that the passed in
pointers are not modified if the function returns false.
* src/expand.c (expand_string_buf): Don't create local variables to
call handle_function() since it doesn't modify its arguments.
* src/job.c (new_job): Small simplifications.
README.git
src/expand.c
src/function.c
src/implicit.c
src/job.c
src/makeint.h
src/misc.c
src/read.c
src/variable.c