This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: gcc error: warning: pasting "syn" and ")" does not give a valid preprocessing token
- To: Kiet Tran <ktran at extremenetworks dot com>
- Subject: Re: gcc error: warning: pasting "syn" and ")" does not give a valid preprocessing token
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Date: Wed, 4 Jul 2001 23:35:51 +0100
- Cc: Alexandre Oliva <aoliva at redhat dot com>, gcc-bugs at gcc dot gnu dot org
Kiet Tran wrote:-
> #define TCP_EXTERN(state) \
> extern pspec_t *##state##_rcv_rst(tcb_t *,pspec_t *), \
> ....
>
> I removed the leading '##' pair and found that the
> passing parameter of the macro was not replacing
> 'state' word. The preprocessor replaced the 'state'
> parameter after I insert a space between the '*' character
> and 'state##' word. Is this a real bug in the preprocessor?
Please provide a complete example.
Neil.