Re: [COMMITTERS] pgsql: Preventive maintenance in advance of pgindent run.
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Piotr Stefaniak <postgres@piotr-stefaniak.me>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>,
Peter Eisentraut <peter.eisentraut@2ndquadrant.com>,
"pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2017-05-18T16:13:36Z
Lists: pgsql-hackers
Attachments
- Makefile (text/x-makefile)
Piotr Stefaniak <postgres@piotr-stefaniak.me> writes: > That, I assume, would be me. Coincidentally, I'm about to push my fixes > upstream (FreeBSD). Before that happens, my changes can be obtained from > https://github.com/pstef/freebsd_indent and tested, if anyone wishes. I spent a little bit of time on portability testing, because we are certainly going to insist that this tool be portable to more than just FreeBSD. Things are not very good as it stands: * Makefile is 100% BSD-specific. Possibly we could just agree to disagree on that point, and include a PG-style makefile that is not like upstream's. I attach the one I used for test purposes. * __FBSDID() macros fail to compile anywhere else than FreeBSD. Couldn't you hide those inside #if 0, as you're already doing for the ancient sccsid strings? * Please put the copyright[] string in indent.c inside #if 0 too, as that draws unreferenced-variable warnings on some compilers. * There's one use of bcopy(), please replace with memmove(). * References to <sys/cdefs.h> and <err.h> are problematic, as both are BSD-isms not found in POSIX. They seem to be available anyway on Linux, but I bet not on Windows or SysV-tradition boxes. I removed the <sys/cdefs.h> includes and didn't see any problems, but removing <err.h> exposes calls to err() and errx(), which we'd have to find replacements for. Maybe just change them to standard-conforming printf() + exit()? regards, tom lane
Commits
-
Manually un-break a few URLs that pgindent used to insist on splitting.
- 780b3a4c43fd 10.0 landed
-
Remove entab and associated detritus.
- 81f056c7256f 10.0 landed
-
Phase 3 of pgindent updates.
- 382ceffdf7f6 10.0 landed
-
Phase 2 of pgindent updates.
- c7b8998ebbf3 10.0 landed
-
Initial pgindent run with pg_bsd_indent version 2.0.
- e3860ffa4dd0 10.0 landed
-
Adjust pgindent script to use pg_bsd_indent 2.0.
- 8ff6d4ec7840 10.0 landed
-
Final pgindent run with old pg_bsd_indent (version 1.3).
- 9ef2dbefc7fb 10.0 landed
-
Re-run pgindent.
- 651902deb155 10.0 landed
-
Preventive maintenance in advance of pgindent run.
- c079673dcb7f 10.0 cited