Re: [HACKERS] psql vs. gcc
От | Peter Eisentraut |
---|---|
Тема | Re: [HACKERS] psql vs. gcc |
Дата | |
Msg-id | Pine.LNX.4.21.9912180303440.1139-100000@localhost.localdomain обсуждение исходный текст |
Ответ на | Re: [HACKERS] psql vs. gcc (Tom Lane <tgl@sss.pgh.pa.us>) |
Список | pgsql-hackers |
On 1999-12-17, Tom Lane mentioned: > After looking at my C reference, I believe gcc is following the ANSI C > spec and Peter's code is broken. According to the book I'm looking at, > concatenation of adjacent string literals is specified to happen while > forming preprocessing tokens, which obviously must occur *before* > preprocessor directives are evaluated. (#if throws away preprocessing > tokens, not raw characters...) So when MULTIBYTE is defined, an > ANSI-compliant compiler will see a syntax error in the above. I usually compile all code with both gcc 2.8.1 and egcs 2.91.66 and make it -Wall -W proof. So I must consider that an omission in those compilers. Thanks for pointing it out. > > describe.c:324: warning: preprocessing directive not recognized within macro arg > > Looks like there are a few other problems here too... The problem sounds more like strcpy is a macro now. Great. More macros. Just what I need. :) -- Peter Eisentraut Sernanders väg 10:115 peter_e@gmx.net 75262 Uppsala http://yi.org/peter-e/ Sweden
В списке pgsql-hackers по дате отправления: