]> git.ipfire.org Git - thirdparty/make.git/commit
Clean up expand.c
authorPaul Smith <psmith@gnu.org>
Sat, 25 Mar 2023 21:53:19 +0000 (17:53 -0400)
committerPaul Smith <psmith@gnu.org>
Sun, 26 Mar 2023 20:48:48 +0000 (16:48 -0400)
commitcaf1d4c28fd96f1b3efec10f3978c45e5cf57aa4
tree52bd4e454609d31627afaa7ed098754e95c3a52e
parentf99d0834184c97f162e965a603e88a3e10e22993
Clean up expand.c

Clarify the naming and documentation on functions in src/expand.c:
- variable_expand -> expand_string
- variable_expand_string -> expand_string_buf
- variable_expand_for_file -> expand_string_for_file
- allocated_variable_expand -> allocated_expand_string
- allocated_variable_expand_for_file ->
  allocated_expand_string_for_file
Change all callers to use the new names.

* src/variable.h: Rename the functions and macros.
* src/expand.c: Ditto.
* src/file.c: Use the new function names.
* src/function.c: Ditto.
* src/implicit.c: Ditto.
* src/job.c: Ditto.
* src/loadapi.c: Ditto.
* src/main.c: Ditto.
* src/read.c: Ditto.
* src/remake.c: Ditto.
* src/variable.c: Ditto.
* src/vpath.c: Ditto.
* src/w32/subproc/sub_proc.c: Ditto.
14 files changed:
src/expand.c
src/file.c
src/function.c
src/implicit.c
src/job.c
src/loadapi.c
src/main.c
src/makeint.h
src/read.c
src/remake.c
src/variable.c
src/variable.h
src/vpath.c
src/w32/subproc/sub_proc.c