Commit a9567426 authored by Marc G. Fournier's avatar Marc G. Fournier

More intelligent #include cleanups, as pointed out by Bryan...

Compiled with -Wall -Werror
parent 3516eda6
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# Makefile for access/common # Makefile for access/common
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/access/common/Makefile,v 1.3 1996/10/31 07:22:07 scrappy Exp $ # $Header: /cvsroot/pgsql/src/backend/access/common/Makefile,v 1.4 1996/11/01 09:41:33 scrappy Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -14,7 +14,7 @@ include ../../../Makefile.global ...@@ -14,7 +14,7 @@ include ../../../Makefile.global
INCLUDE_OPT = -I../../port/$(PORTNAME) \ INCLUDE_OPT = -I../../port/$(PORTNAME) \
-I../../../include -I../../../include
CFLAGS+=$(INCLUDE_OPT) CFLAGS+=$(INCLUDE_OPT) -Wall -Werror
OBJS = heaptuple.o heapvalid.o indextuple.o indexvalid.o printtup.o \ OBJS = heaptuple.o heapvalid.o indextuple.o indexvalid.o printtup.o \
scankey.o tupdesc.o scankey.o tupdesc.o
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/common/heaptuple.c,v 1.11 1996/11/01 09:12:18 scrappy Exp $ * $Header: /cvsroot/pgsql/src/backend/access/common/heaptuple.c,v 1.12 1996/11/01 09:41:35 scrappy Exp $
* *
* NOTES * NOTES
* The old interface functions have been converted to macros * The old interface functions have been converted to macros
...@@ -19,14 +19,14 @@ ...@@ -19,14 +19,14 @@
#include "postgres.h" #include "postgres.h"
#include "utils/palloc.h" #include "access/htup.h"
#include "storage/bufpage.h"
#include "access/transam.h" #include "access/transam.h"
#include "storage/buf.h"
#include "access/tupmacs.h"
#include "access/tupdesc.h" #include "access/tupdesc.h"
#include "access/tupmacs.h"
#include "storage/buf.h"
#include "storage/bufpage.h"
#include "utils/memutils.h" #include "utils/memutils.h"
#include "access/htup.h" #include "utils/palloc.h"
#ifndef HAVE_MEMMOVE #ifndef HAVE_MEMMOVE
# include "regex/utils.h" # include "regex/utils.h"
......
...@@ -7,41 +7,26 @@ ...@@ -7,41 +7,26 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/common/Attic/heapvalid.c,v 1.8 1996/10/31 07:48:36 scrappy Exp $ * $Header: /cvsroot/pgsql/src/backend/access/common/Attic/heapvalid.c,v 1.9 1996/11/01 09:41:37 scrappy Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
#include <time.h>
#include "postgres.h" #include "postgres.h"
#include "access/htup.h"
#include "utils/rel.h"
#include "access/tupdesc.h"
#include "fmgr.h" #include "fmgr.h"
#include "access/attnum.h"
#include "catalog/pg_am.h"
#include "catalog/pg_attribute.h" #include "catalog/pg_attribute.h"
#include "catalog/pg_class.h"
#include "nodes/nodes.h"
#include "nodes/pg_list.h"
#include "storage/block.h"
#include "storage/buf.h" #include "storage/buf.h"
#include "storage/fd.h"
#include "storage/item.h" #include "storage/item.h"
#include "storage/itemid.h" #include "storage/itemid.h"
#include "storage/off.h"
#include "storage/page.h" #include "storage/page.h"
#include "utils/nabstime.h"
#include "access/skey.h"
#include "access/tupdesc.h"
#include "access/xact.h" #include "access/xact.h"
#include "rewrite/prs2lock.h"
#include "storage/bufpage.h" #include "storage/bufpage.h"
#include "storage/itemptr.h"
#include "access/strat.h"
#include "access/htup.h"
#include "utils/rel.h"
#include "access/heaptuple.h" #include "access/heaptuple.h"
#include "utils/tqual.h" #include "utils/tqual.h"
......
...@@ -8,41 +8,27 @@ ...@@ -8,41 +8,27 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/common/indextuple.c,v 1.7 1996/10/21 11:49:37 scrappy Exp $ * $Header: /cvsroot/pgsql/src/backend/access/common/indextuple.c,v 1.8 1996/11/01 09:41:37 scrappy Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
#include <string.h> #include <string.h>
#include <time.h>
#include "postgres.h" #include "postgres.h"
#include "access/attnum.h" #include "access/htup.h"
#include "utils/rel.h"
#include "access/tupmacs.h" #include "access/tupmacs.h"
#include "catalog/pg_am.h"
#include "catalog/pg_attribute.h" #include "catalog/pg_attribute.h"
#include "catalog/pg_class.h"
#include "nodes/nodes.h"
#include "nodes/pg_list.h"
#include "storage/block.h"
#include "storage/buf.h" #include "storage/buf.h"
#include "storage/fd.h"
#include "storage/off.h"
#include "utils/memutils.h" #include "utils/memutils.h"
#include "utils/nabstime.h"
#include "utils/palloc.h" #include "utils/palloc.h"
#include "access/ibit.h" #include "access/ibit.h"
#include "access/skey.h"
#include "access/tupdesc.h" #include "access/tupdesc.h"
#include "rewrite/prs2lock.h"
#include "storage/itemptr.h"
#include "access/strat.h"
#include "access/itup.h" #include "access/itup.h"
#include "access/htup.h"
#include "utils/rel.h"
#include "utils/tqual.h" #include "utils/tqual.h"
......
...@@ -7,28 +7,20 @@ ...@@ -7,28 +7,20 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/common/Attic/indexvalid.c,v 1.8 1996/10/31 07:48:37 scrappy Exp $ * $Header: /cvsroot/pgsql/src/backend/access/common/Attic/indexvalid.c,v 1.9 1996/11/01 09:41:38 scrappy Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
#include <time.h>
#include "postgres.h" #include "postgres.h"
#include "access/attnum.h"
#include "catalog/pg_attribute.h" #include "access/htup.h"
#include "access/tupdesc.h"
#include "executor/execdebug.h" #include "executor/execdebug.h"
#include "nodes/nodes.h"
#include "nodes/pg_list.h"
#include "storage/off.h"
#include "storage/block.h"
#include "utils/nabstime.h"
#include "access/skey.h" #include "access/skey.h"
#include "access/tupdesc.h"
#include "storage/itemptr.h"
#include "access/htup.h"
#include "access/itup.h" #include "access/itup.h"
......
...@@ -8,42 +8,27 @@ ...@@ -8,42 +8,27 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/common/printtup.c,v 1.6 1996/10/21 11:49:39 scrappy Exp $ * $Header: /cvsroot/pgsql/src/backend/access/common/printtup.c,v 1.7 1996/11/01 09:41:39 scrappy Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>
#include <time.h>
#include <netinet/in.h> #include <netinet/in.h>
#include "postgres.h" #include "postgres.h"
#include "access/htup.h"
#include "utils/rel.h"
#include "access/tupdesc.h"
#include "fmgr.h" #include "fmgr.h"
#include "access/attnum.h"
#include "catalog/pg_am.h"
#include "catalog/pg_attribute.h"
#include "catalog/pg_class.h"
#include "libpq/pqcomm.h" #include "libpq/pqcomm.h"
#include "nodes/nodes.h"
#include "nodes/pg_list.h"
#include "storage/block.h"
#include "storage/buf.h" #include "storage/buf.h"
#include "storage/fd.h"
#include "storage/off.h"
#include "utils/nabstime.h"
#include "utils/palloc.h" #include "utils/palloc.h"
#include "libpq/libpq.h" #include "libpq/libpq.h"
#include "storage/itemptr.h"
#include "access/tupdesc.h"
#include "rewrite/prs2lock.h"
#include "access/skey.h"
#include "access/strat.h"
#include "access/htup.h"
#include "utils/rel.h"
#include "catalog/pg_type.h" #include "catalog/pg_type.h"
#include "utils/syscache.h" #include "utils/syscache.h"
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/common/scankey.c,v 1.5 1996/10/21 11:49:40 scrappy Exp $ * $Header: /cvsroot/pgsql/src/backend/access/common/scankey.c,v 1.6 1996/11/01 09:41:40 scrappy Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#include "access/skey.h" #include "access/skey.h"
/* /*
* ScanKeyEntryIsLegal -- * ScanKeyEntryIsLegal --
* True iff the scan key entry is legal. * True iff the scan key entry is legal.
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/common/tupdesc.c,v 1.6 1996/10/31 07:48:38 scrappy Exp $ * $Header: /cvsroot/pgsql/src/backend/access/common/tupdesc.c,v 1.7 1996/11/01 09:41:41 scrappy Exp $
* *
* NOTES * NOTES
* some of the executor utility code such as "ExecTypeFromTL" should be * some of the executor utility code such as "ExecTypeFromTL" should be
...@@ -21,30 +21,16 @@ ...@@ -21,30 +21,16 @@
#include <time.h> #include <time.h>
#include "postgres.h" #include "postgres.h"
#include "access/htup.h"
#include "utils/rel.h"
#include "access/tupdesc.h"
#include "utils/fcache.h" #include "utils/fcache.h"
#include "access/attnum.h"
#include "catalog/pg_am.h"
#include "catalog/pg_attribute.h"
#include "catalog/pg_class.h"
#include "nodes/nodes.h"
#include "nodes/pg_list.h"
#include "storage/block.h"
#include "storage/fd.h"
#include "storage/off.h"
#include "utils/geo-decls.h" #include "utils/geo-decls.h"
#include "utils/nabstime.h"
#include "utils/palloc.h" #include "utils/palloc.h"
#include "nodes/primnodes.h" #include "nodes/primnodes.h"
#include "access/tupdesc.h"
#include "rewrite/prs2lock.h"
#include "storage/itemptr.h"
#include "access/skey.h"
#include "access/strat.h"
#include "access/htup.h"
#include "utils/rel.h"
#include "catalog/pg_type.h" #include "catalog/pg_type.h"
#include "utils/builtins.h" #include "utils/builtins.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment