semantic of used_define cpp callback?
Basile STARYNKEVITCH
basile@starynkevitch.net
Sun Nov 15 17:35:00 GMT 2009
Arnaud Charlet wrote:
>> I suppose the idea is to emit each used macro a single time only, the
>> code seems to confirm this.
>
> Makes sense indeed (and at least matches what the code does).
>
>> Arnaud> so would the addition of a new callback (e.g.
>> Arnaud> void (*used) (cpp_reader *, unsigned int, cpp_hashnode *);
>> Arnaud> ) be acceptable in principle? If so, I'll post a formal patch on
>> Arnaud> gcc-patches@
>>
>> Yes, this would be fine.
>
> Thanks, I'll prepare such patch then.
>
May I respectfully suggest to make that a plugin callback?
Regards.
--
Basile STARYNKEVITCH http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***
More information about the Gcc
mailing list