|
From: | Paul Eggert |
Subject: | Re: Avoid gnulib redefinitions - MDA, free-posix |
Date: | Sat, 29 Oct 2022 09:58:25 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 |
On 2022-10-29 06:36, Gavin Smith wrote:
Here is one idea. When using a module like 'free-posix', if it is loaded as a dependency only, use the redefinition in Gnulib code only, but do not override symbols in user code. It would be as if there were two modules, say gl-free-posix and free-posix, where gl-free-posix made the redefinition of rpl_gl_free and free-posix (requested by the user) redirected rpl_free to rpl_gl_free.
If it's just 'free', I might prefer the latter solution, to underline the special case and to avoid even more complexity in gnulib-tool. Is that something you could write?
If this problem occurs with lots of other symbols perhaps we'd need something more like the former, though. This would need more hacking, I expect.
[Prev in Thread] | Current Thread | [Next in Thread] |