| From: | Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | pgsql-hackers(at)postgreSQL(dot)org |
| Subject: | Re: [HACKERS] I can't compile cvs snapshot ... |
| Date: | 1999-05-26 14:00:21 |
| Message-ID: | 199905261400.KAA23943@candle.pha.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
> Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> writes:
> >> Does this mean we are not allowed to use "U"? I think this is leagal
> >> according to the standard C grammer.
>
> > Well, it seems BSD indent mucks up 0x7fU, so I would prefer if we didn't
> > use it.
>
> If pgindent mucks up standard C constructs then pgindent is broken.
>
> This is not open to debate --- if you are going to run our entire
> source base through pgindent just a few days before every release,
> then the tool has to be something we can have 100 percent, no-questions-
> asked confidence in. Telling people to obey weird little coding
> conventions is no answer. (If everyone reliably did that, we'd not
> need pgindent in the first place.)
>
pgindent gives us so many advanates, why worry about a small thing like
0xffU. I will add to the patch I supply in the pgindent directory to
handle U also.
> It appears that BSD indent doesn't have a problem with 0xnnnL, so
> teaching it about 0xnnnU can't be that hard if you have the source.
> (I don't...)
>
> Maybe it is time to take another look at GNU indent?
You don't want to go there. See the tools/pgindent directory for an
explaination. GNU indent has many bugs that wack the code silly. Try
running any directory with GNU indent and compare it to the pgindent
version.
--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 1999-05-26 14:18:09 | Re: [HACKERS] Memory leak in large objects (was Re: Postgreqsl Large Objects) |
| Previous Message | Tom Lane | 1999-05-26 13:55:48 | Re: [HACKERS] I can't compile cvs snapshot ... |