Re: bsd indent
От | Bruce Momjian |
---|---|
Тема | Re: bsd indent |
Дата | |
Msg-id | 200310071728.h97HSfI23829@candle.pha.pa.us обсуждение исходный текст |
Ответ на | Re: bsd indent (Andrew Dunstan <andrew@dunslane.net>) |
Список | pgsql-hackers |
Andrew Dunstan wrote: > >GNU indent does a reasonable job, but it did some strange spacing for > >function definitions, if I remember correctly. Can you test by running > >pgindent and gnuindent through the /executor files and do a diff to see > >the differences in formatting? > > > > after I added -ncdb to the GNU indent options in pgindent, the main > effect appears to be that it joins function calls across lines, > sometimes in weird ways. I guess that's bad enough for us not to use it > unless someone knows a way to turn that off. > > Example (second case is bsd indented): > > *************** > *** 217,223 **** > execTuplesHashPrepare(TupleDesc tupdesc, > int numCols, > AttrNumber *matchColIdx, > ! FmgrInfo **eqfunctions, FmgrInfo **hashfunctions) > { > int i; > > --- 234,241 ---- > execTuplesHashPrepare(TupleDesc tupdesc, > int numCols, > AttrNumber *matchColIdx, > ! FmgrInfo **eqfunctions, > ! FmgrInfo **hashfunctions) > { > int i; > Yes, this is exactly what I remember, and I can think of no way to "script" that fix. Let me know when you can download. I sure it will hit the mirrors shortly. The fact that we have a way to auto-indent 450k lines of C code with few/no complaints is amazing in itself. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001+ If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania19073
В списке pgsql-hackers по дате отправления: