Обсуждение: Please no // comments in C source (ecpg)

Поиск
Список
Период
Сортировка

Please no // comments in C source (ecpg)

От
Zeugswetter Andreas SB
Дата:
Subj, sais it all,

Please don't use C++ style comments in C source files. 
It does not work for all ports.

Currently in connect.c.

Thanks
Andreas


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

От
Bruce Momjian
Дата:
Fixed.

[ Charset ISO-8859-1 unsupported, converting... ]
> Subj, sais it all,
> 
> Please don't use C++ style comments in C source files. 
> It does not work for all ports.
> 
> Currently in connect.c.
> 
> Thanks
> Andreas
> 


--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


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

От
Peter Mount
Дата:
On Mon, 25 Sep 2000, Zeugswetter Andreas SB wrote:

> Subj, sais it all,
> 
> Please don't use C++ style comments in C source files. 
> It does not work for all ports.

AFAIK, only GCC supports // as comments.

> Currently in connect.c.

And in the java areas, but that doesn't count here ;-)

-- 
Peter T Mount peter@retep.org.uk http://www.retep.org.uk
PostgreSQL JDBC Driver http://www.retep.org.uk/postgres/
Java PDF Generator http://www.retep.org.uk/pdf/