Re: Macro arguments

2022-08-13 Thread Dmitry Goncharov
On Tue, Aug 9, 2022 at 11:56 PM Paul Smith wrote: > ...modifying the way all function arguments > are parsed is something that needs to be carefully considered, if > nothing else from a backward-compatibility standpoint. agree. i added an example to the manual of how to use variable to hide

Re: Macro arguments

2022-08-09 Thread Paul Smith
On Tue, 2022-08-09 at 16:45 +0200, Gisle Vanem wrote: > So does a "foo (arg1, arg2, arg3)" becomes one > argument due to the parenthesis or something? I agree it's strange. I'm not sure I agree with the change proposed in the patch in the Savannah bug: modifying the way all function arguments

Re: Macro arguments

2022-08-09 Thread Dmitry Goncharov
On Tue, Aug 9, 2022 at 10:48 AM Gisle Vanem wrote: Thanks for your report. See here https://savannah.gnu.org/bugs/index.php?62881 regards, Dmitry

Macro arguments

2022-08-09 Thread Gisle Vanem
Hello folks. I have a question regarding parenthesis in GNU-make macros. Like in: msg = @echo "$(1)" ptest_1: $(call msg, foo (arg1, arg2, arg3)) ptest_2: $(call msg, foo, arg1, arg2, arg3) A 'make ptest_1' shows: foo (arg1, arg2, arg3) and