Re: Test case for GCC macro expansion (fwd)

2001-01-03 Thread Bernhard Rosenkraenzer
Suggested fix from one of our gcc people... -- Forwarded message -- Date: 03 Jan 2001 09:45:47 -0200 From: Alexandre Oliva [EMAIL PROTECTED] To: Bernhard Rosenkraenzer [EMAIL PROTECTED] Subject: Re: Test case for GCC macro expansion (fwd) On Jan 3, 2001, Bernhard Rosenkraenzer

Re: Test case for GCC macro expansion

2001-01-03 Thread Francois Gouget
On 2 Jan 2001, Alexandre Julliard wrote: Francois Gouget [EMAIL PROTECTED] writes: Here's the testcase I wrote: #define GetObject You cannot use GetObject in this context #define ICOM_FN(xfn)fn ## xfn #define DECLARE1(xfn)void ICOM_FN(xfn) (void); #define

Re: Test case for GCC macro expansion

2001-01-03 Thread Francois Gouget
On Tue, 2 Jan 2001, James Abbatiello wrote: Francois Gouget wrote: Here's the testcase I wrote: #define GetObject You cannot use GetObject in this context #define ICOM_FN(xfn)fn ## xfn #define DECLARE1(xfn)void ICOM_FN(xfn) (void); #define DECLARE2(xfn)

Re: Test case for GCC macro expansion

2001-01-03 Thread Alexandre Julliard
Francois Gouget [EMAIL PROTECTED] writes: So if we undef GetObject and GetClassInfo (plus potentially others in the future), we could remove the 'fn' prefix but it would take work to update the code. It's a bit more work, but I think the result would be cleaner than duplicating all the

Re: Test case for GCC macro expansion

2001-01-03 Thread David Elliott
Alexandre Julliard wrote: Francois Gouget [EMAIL PROTECTED] writes: Here's the testcase I wrote: #define GetObject You cannot use GetObject in this context #define ICOM_FN(xfn)fn ## xfn #define DECLARE1(xfn)void ICOM_FN(xfn) (void); #define DECLARE2(xfn)void

Test case for GCC macro expansion

2001-01-02 Thread David Elliott
Attached is a simple .c file (not even a program, intended for input for the preprocessor) and the output when run with the processors from the latest RH7 errata GCC 2.96 and the RH7 KGCC 2.91.66 (egcs 1.1.2). I included the output from stderr of the newer preprocessor as well. This should be a

RE: Test case for GCC macro expansion

2001-01-02 Thread Patrik Stridvall
This should be a suitable simple testcase for a preprocessor. Maybe it would be good to see the results on other C preprocessors like Solaris C so that we can get a good idea if gcc should continue to support this even though I don't think it is specifically mentioned in any C

Re: Test case for GCC macro expansion

2001-01-02 Thread Francois Gouget
On Tue, 2 Jan 2001, David Elliott wrote: Attached is a simple .c file (not even a program, intended for input for the preprocessor) and the output when run with the processors from the latest RH7 errata GCC 2.96 and the RH7 KGCC 2.91.66 (egcs 1.1.2). I included the output from stderr of the

Re: Test case for GCC macro expansion

2001-01-02 Thread Alexandre Julliard
Francois Gouget [EMAIL PROTECTED] writes: Here's the testcase I wrote: #define GetObject You cannot use GetObject in this context #define ICOM_FN(xfn)fn ## xfn #define DECLARE1(xfn)void ICOM_FN(xfn) (void); #define DECLARE2(xfn)void ICOM_FN(##xfn) (void); If the only