RFR: 8297963: Partially fix string expansion issues in UTIL_DEFUN_NAMED and related macros [v3]
Magnus Ihse Bursie
ihse at openjdk.org
Mon Dec 5 12:17:35 UTC 2022
On Sat, 3 Dec 2022 11:32:36 GMT, Julian Waters <jwaters at openjdk.org> wrote:
> Out of curiosity, was the quoting of ARG_PREFIX and other ARG_ macros when passing them as arguments to other macros implemented with UTIL_DEFUN_NAMED an unwanted workaround to stop them from expanding before this change?
Most likely. I imagine I tested around a bit until I got it to work. :)
As you have noted, keeping track of what the proper level of m4 quoting should be is quite mind-killing, so we have basically not done that, but just tried adding or removing quoting until stuff starts working, if it breaks. Most places m4 is quite tolerant against both too much or too little quoting.
-------------
PR: https://git.openjdk.org/jdk/pull/11458
More information about the build-dev
mailing list