Обсуждение: pgindent completed

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

pgindent completed

От
Bruce Momjian
Дата:
I have finished pgindent.  We also had many old comments of the format:
/* ------        * comment        * ------        */

These are now the more concise:
/*        * comment        */

Also, comments with dashes are not wrapped nicely by pgindent.  Some
comments need dashes to preserver layout, but many did not need them.  I
ran pgindent to re-wrap those.

--  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: pgindent completed

От
Karel Zak
Дата:
On Thu, Mar 22, 2001 at 01:25:07AM -0500, Bruce Momjian wrote:
> I have finished pgindent.  We also had many old comments of the format:
> 
>     /* ------
>          * comment
>          * ------
>          */
> 
> These are now the more concise:
> 
>     /*
>          * comment
>          */
Hmm, intereting. What is bad on the "old" format? IMHO it's more synoptical
for example before function, where a comment must be good visible for fast
file browsing. Inside functions I agree with more brief version. 
I have macro for this in my editor, update it? :-)
        Karel

-- Karel Zak  <zakkr@zf.jcu.cz>http://home.zf.jcu.cz/~zakkr/C, PostgreSQL, PHP, WWW, http://docs.linux.cz,
http://mape.jcu.cz


-- Karel Zak  <zakkr@zf.jcu.cz>http://home.zf.jcu.cz/~zakkr/C, PostgreSQL, PHP, WWW, http://docs.linux.cz,
http://mape.jcu.cz


Re: pgindent completed

От
Bruce Momjian
Дата:
> 
> On Thu, Mar 22, 2001 at 01:25:07AM -0500, Bruce Momjian wrote:
> > I have finished pgindent.  We also had many old comments of the format:
> > 
> >     /* ------
> >          * comment
> >          * ------
> >          */
> > 
> > These are now the more concise:
> > 
> >     /*
> >          * comment
> >          */
> 
>  Hmm, intereting. What is bad on the "old" format? IMHO it's more synoptical
> for example before function, where a comment must be good visible for fast
> file browsing. Inside functions I agree with more brief version. 
> 
>  I have macro for this in my editor, update it? :-)

These were all hand-modified.  Having comments before functions was not
touched, only such comments in functions, and only where you didn't want
a heavy comment and there was no indenting that needed preserving.

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