Thread: pgsql: Clean up some misplaced #includes.

pgsql: Clean up some misplaced #includes.

From
Tom Lane
Date:
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(-)


Re: pgsql: Clean up some misplaced #includes.

From
Aleksander Alekseev
Date:
> 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/

Attachment