Re: pgindent behavior we could do without

Поиск
Список
Период
Сортировка
Искать
От
Bruce Momjian
Тема
Re: pgindent behavior we could do without
Дата
Msg-id
20140130185255.GD20260@momjian.us
Ответ на
Список
Дерево обсуждения
pgindent behavior we could do without Tom Lane <tgl@sss.pgh.pa.us>
Re: pgindent behavior we could do without Bruce Momjian <bruce@momjian.us>
Re: pgindent behavior we could do without Noah Misch <noah@leadboat.com>
Re: pgindent behavior we could do without Tom Lane <tgl@sss.pgh.pa.us>
Re: pgindent behavior we could do without Andrew Dunstan <andrew@dunslane.net>
Re: pgindent behavior we could do without Bruce Momjian <bruce@momjian.us>
Re: pgindent behavior we could do without Tom Lane <tgl@sss.pgh.pa.us>
Re: pgindent behavior we could do without Bruce Momjian <bruce@momjian.us>
Re: pgindent behavior we could do without Bruce Momjian <bruce@momjian.us>
Re: pgindent behavior we could do without Tom Lane <tgl@sss.pgh.pa.us>
Re: pgindent behavior we could do without Bruce Momjian <bruce@momjian.us>
Re: pgindent behavior we could do without Bruce Momjian <bruce@momjian.us>
On Thu, Jan 30, 2014 at 01:46:34PM -0500, Tom Lane wrote:
> Bruce Momjian  writes:
> > On Thu, Jul 18, 2013 at 12:27:21AM -0400, Tom Lane wrote:
> >> I assert that we should simply remove both of these bits of code, as
> >> just about every committer on the project is smarter about when to use
> >> vertical whitespace than this program is.
> 
> > OK, I have developed the attached patch that shows the code change of
> > removing the test for #else/#elif/#endif.  You will see that the new
> > output has odd blank lines for cases like:
> 
> > 	#ifndef WIN32
> > 	static int    copy_file(const char *fromfile, const char *tofile, bool force);
> > -->
> > 	#else
> > 	static int    win32_pghardlink(const char *src, const char *dst);
> > -->
> > 	#endif
> 
> Hm.  So actually, that code is trying to undo excess vertical whitespace
> that something earlier in pgindent added?  Where is that happening?

I am afraid it is _inside_ BSD indent, and if ever looked at that code,
you would not want to go in there.  :-O

--  Bruce Momjian          http://momjian.us EnterpriseDB                             http://enterprisedb.com
 + Everyone has their own god. +


В списке pgsql-hackers по дате отправления
От: Bruce Momjian
Дата:
От: Andrew Dunstan
Дата:
Сообщение: Re: jsonb and nested hstore
FAQ