Re: More cpp changes
Anders Magnusson <ragge <at> ludd.ltu.se>
2011-01-11 10:01:00 GMT
Nicolas Joly wrote:
> On Mon, Jan 10, 2011 at 09:52:49AM +0000, Iain Hibbert wrote:
>> On Mon, 10 Jan 2011, Iain Hibbert wrote:
>>> On Sun, 9 Jan 2011, Anders Magnusson wrote:
>>>> I have rewritten how a macro is rescanned for more macros to expand by
>>>> using iteration instead of recursion. All test cases and all code I
>>>> have tested works.
>>> I saw a build failure on GCC due to discarded qualifiers, patch below..
>> Also, _Pragma expansion seems to be broken.. I get "bad pragma operator"
>> for a file containing just _Pragma("string") for example..
>> I'm not sure, here, that pragoper() function looks right, seems it would
>> produce an error "pragoper expmac" during normal operation?
> njoly <at> petaure [~]> cat main.c
> #define __BEGIN _Pragma("GCC visibility push(default)")
> #define __END _Pragma("GCC visibility pop")
> extern int foo;