pgsql: Clean up some misplaced #includes.

Started by Tom Laneover 10 years ago2 messagescomitters
Jump to latest
#1Tom Lane
tgl@sss.pgh.pa.us

Clean up some misplaced #includes.

Random .h files have no business including postgres-fe.h (or postgres.h).
If that wasn't the first #include done by the calling .c file, it's the
.c file that's broken. Noted while prepping Kyotaro Horiguchi's psql
lexer refactoring patch.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/3422fecccadb021b7b4cdbc73b2c29f66f031761

Modified Files
--------------
src/bin/psql/common.h | 3 +--
src/bin/psql/create_help.pl | 2 +-
src/bin/psql/mainloop.h | 4 +---
3 files changed, 3 insertions(+), 6 deletions(-)

--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers

#2Aleksander Alekseev
aleksander@timescale.com
In reply to: Tom Lane (#1)
Re: pgsql: Clean up some misplaced #includes.

Clean up some misplaced #includes.

In case you are interested here is a patch that fixes some unused
imports I managed to find.

--
Best regards,
Aleksander Alekseev
http://eax.me/

Attachments:

unused-imports.difftext/x-patchDownload+0-18