]> git.ipfire.org Git - thirdparty/make.git/commit
* src/main.c (define_makefiles): Simplify by using variable_buffer
authorPaul Smith <psmith@gnu.org>
Sun, 26 Feb 2023 22:15:56 +0000 (17:15 -0500)
committerPaul Smith <psmith@gnu.org>
Sun, 26 Feb 2023 22:15:56 +0000 (17:15 -0500)
commit5d1fe2b16db49f15fb8611e70221687cecb411bc
tree648d8e063cee1252979739ee3736220d3f022930
parent8285852e553429021526d1a686fff290a5d469ef
* src/main.c (define_makefiles): Simplify by using variable_buffer

Toss the previous implementation which first computed a locally
allocated list of options, then used alloca() to create a buffer
of the right size and populate it.  Instead, use variable_buffer
to append to the string directly.  First add all single-letter
options without arguments, then add options with arguments.
src/main.c