]> git.ipfire.org Git - thirdparty/make.git/commit
* src/expand.c (swap_variable_buffer): Swap two variable buffers
authorPaul Smith <psmith@gnu.org>
Sat, 25 Mar 2023 20:25:32 +0000 (16:25 -0400)
committerPaul Smith <psmith@gnu.org>
Sun, 26 Mar 2023 13:24:49 +0000 (09:24 -0400)
commitf99d0834184c97f162e965a603e88a3e10e22993
tree4fa69a8915732e3334e1b996c695f3f55db5ad74
parenta367c0640fcbf9872cde1f8c79f4f11658807ad1
* src/expand.c (swap_variable_buffer): Swap two variable buffers

Return the current buffer instead of freeing it.
(variable_append): Use install/swap to handle variable buffers.
(allocated_variable_expand_for_file): Ditto.
* src/variable.c (shell_result): Ditto.
* src/variable.h: Declare the new function.
src/expand.c
src/makeint.h
src/variable.c
src/variable.h