This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: pasting "." and "something" does not give a valid preprocessing token


Sorry, I should have said "sv_port" instead of something in the subject line, 
as that is the exact warning produced. It doesn't like my conf.##__prop 
thing.

On Monday 10 March 2003 10:57, Mihnea Balta wrote:
> Hello,
>
> I've just installed gcc 3.2.2 and I get the warning from the subject line
> when compiling code that worked just fine with 2.95.3. The preprocessor
> output is what I expect it to be, but I'd like to know what the warning
> means. The offending code is:
>
> #define CONF_ADD_INT(__prop)                                               
> \ if(!strncmp(key, #__prop, strlen(#__prop))){                            \
> conf.##__prop = atoi(val);                                          \
> return 1;                                                           \ }
>
> statement that produces the warning:
> CONF_ADD_INT(sv_port);
> The preprocessor output is exactly what I expected:
>
> if(!strncmp(key, "sv_port", strlen("sv_port"))){ conf.sv_port = atoi(val);
> return 1; };
>
> Thanks.
>
> ------------------------------------------------------------------------
> http://felicitari.mymail.ro/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]