AW: Please no // comments in C source (ecpg)

Поиск
Список
Период
Сортировка
От Zeugswetter Andreas SB
Тема AW: Please no // comments in C source (ecpg)
Дата
Msg-id 11C1E6749A55D411A9670001FA687963368092@sdexcsrv1.f000.d0188.sd.spardat.at
обсуждение исходный текст
Ответы Re: AW: Please no // comments in C source (ecpg)
Список pgsql-hackers
> > > Please don't use C++ style comments in C source files. 
> > > It does not work for all ports.
> > 
> > AFAIK, only GCC supports // as comments.
> 
> // comments are legal as of Standard C 1999, so expect more 
> compilers to
> accept them silently.  (That still doesn't mean we get to use them, of
> course.)

Well, xlc (aix compiler) does have a flag to allow // comments,
so if we think that all other compilers support them we can use the flag
in the AIX port, and forget about the issue.

But I guess we better not, and that was why we don't use the flag.
That makes me the dummy that complains from time to time,
since nobody else who compiles snapshots seems to notice :-)

Such is life :-)
Andreas


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Peter Mount
Дата:
Сообщение: Re: Please no // comments in C source (ecpg)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: AW: Please no // comments in C source (ecpg)