Re: More pgindent follies

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: More pgindent follies
Дата
Msg-id 200105231558.f4NFwpN13274@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: More pgindent follies  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: More pgindent follies  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: More pgindent follies  (ncm@zembu.com (Nathan Myers))
Список pgsql-hackers
> > I don't see the problem here.  My assumption is that the comment is not
> > part of the define, right?
> 
> Well, that's the question.  ANSI C requires comments to be replaced by
> whitespace before preprocessor commands are detected/executed, but there
> was an awful lot of variation in preprocessor behavior before ANSI.
> I suspect there are still preprocessors out there that might misbehave
> on this input --- for example, by leaving the text "* end-of-string */"
> present in the preprocessor output.  Now we still go to considerable
> lengths to support not-quite-ANSI preprocessors.  I don't like the idea
> that all the work done by configure and c.h in that direction might be
> wasted because of pgindent carelessness.

I agree, but in a certain sense, we would have found those compilers
already.  This is not new behavour as far as I know, and clearly this
would throw a compiler error.

--  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
 


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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: ADD/DROP CONSTRAINT and inheritance
Следующее
От: Tom Lane
Дата:
Сообщение: Re: