Re: [HACKERS] removal of braces
| От | Bruce Momjian |
|---|---|
| Тема | Re: [HACKERS] removal of braces |
| Дата | |
| Msg-id | 199806152055.QAA13926@candle.pha.pa.us обсуждение исходный текст |
| Ответ на | removal of braces (Bruce Momjian <maillist@candle.pha.pa.us>) |
| Ответы |
Re: [HACKERS] removal of braces
|
| Список | pgsql-hackers |
>
> I have written a script to remove braces around single statements, if
> the statement is only one line in length.
>
> The macro fixup context diff was 1,200 lines, and this diff is 12k
> lines.
>
> Hope no one is sitting on patches.
They had things like:
if (test != 0)
macro;
while the macro was:
#define macro() \
stmt1; \
stmt2; \
stmt3;
Of course, only the stmt1 is conditional. The rest are always executed.
I am sure there were some bugs fixed by this cleanup.
--
Bruce Momjian | 830 Blythe Avenue
maillist@candle.pha.pa.us | Drexel Hill, Pennsylvania 19026
+ If your life is a hard drive, | (610) 353-9879(w)
+ Christ can be your backup. | (610) 853-3000(h)
В списке pgsql-hackers по дате отправления: