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

More cleans of the inter-dependencies in the #include files

parent 71cd646a
...@@ -6,20 +6,15 @@ ...@@ -6,20 +6,15 @@
* *
* Copyright (c) 1994, Regents of the University of California * Copyright (c) 1994, Regents of the University of California
* *
* $Id: genam.h,v 1.2 1996/10/31 09:46:37 scrappy Exp $ * $Id: genam.h,v 1.3 1996/11/03 12:12:22 scrappy Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
#ifndef GENAM_H #ifndef GENAM_H
#define GENAM_H #define GENAM_H
#include "access/attnum.h"
#include "access/htup.h"
#include "access/istrat.h"
#include "access/itup.h" #include "access/itup.h"
#include "access/relscan.h" #include "access/relscan.h"
#include "access/skey.h"
#include "access/sdir.h" #include "access/sdir.h"
#include "access/funcindex.h" #include "access/funcindex.h"
......
...@@ -12,11 +12,10 @@ ...@@ -12,11 +12,10 @@
#ifndef GIST_H #ifndef GIST_H
#define GIST_H #define GIST_H
#include "utils/rel.h"
#include "storage/off.h" #include "storage/off.h"
#include "utils/rel.h"
#include "storage/block.h" #include "storage/block.h"
#include "storage/bufpage.h" #include "storage/page.h"
#include "access/skey.h"
/* /*
** You can have as many strategies as you please in GiSTs, as ** You can have as many strategies as you please in GiSTs, as
......
...@@ -11,6 +11,10 @@ ...@@ -11,6 +11,10 @@
*/ */
#ifndef GISTSCAN_H #ifndef GISTSCAN_H
#include "utils/rel.h"
#include "storage/block.h"
#include "storage/off.h"
void gistadjscans(Relation r, int op, BlockNumber blkno, OffsetNumber offnum); void gistadjscans(Relation r, int op, BlockNumber blkno, OffsetNumber offnum);
#endif /* GISTSCAN_H */ #endif /* GISTSCAN_H */
...@@ -6,18 +6,18 @@ ...@@ -6,18 +6,18 @@
* *
* Copyright (c) 1994, Regents of the University of California * Copyright (c) 1994, Regents of the University of California
* *
* $Id: index.h,v 1.1 1996/08/28 01:56:27 scrappy Exp $ * $Id: index.h,v 1.2 1996/11/03 12:12:28 scrappy Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
#ifndef INDEX_H #ifndef INDEX_H
#define INDEX_H #define INDEX_H
#include "access/funcindex.h"
#include "access/itup.h"
#include "nodes/execnodes.h" #include "nodes/execnodes.h"
#include "access/htup.h"
#include "access/itup.h"
#include "nodes/parsenodes.h" #include "nodes/parsenodes.h"
#include "storage/buf.h"
extern Form_pg_am extern Form_pg_am
AccessMethodObjectIdGetAccessMethodTupleForm(Oid accessMethodObjectId); AccessMethodObjectIdGetAccessMethodTupleForm(Oid accessMethodObjectId);
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* *
* Copyright (c) 1994, Regents of the University of California * Copyright (c) 1994, Regents of the University of California
* *
* $Id: pg_proc.h,v 1.2 1996/10/31 09:47:52 scrappy Exp $ * $Id: pg_proc.h,v 1.3 1996/11/03 12:12:32 scrappy Exp $
* *
* NOTES * NOTES
* The script catalog/genbki.sh reads this file and generates .bki * The script catalog/genbki.sh reads this file and generates .bki
...@@ -754,9 +754,6 @@ DATA(insert OID = 1239 ( texticregexne PGUID 11 f t f 2 f 16 "25 25" 100 ...@@ -754,9 +754,6 @@ DATA(insert OID = 1239 ( texticregexne PGUID 11 f t f 2 f 16 "25 25" 100
DATA(insert OID = 1240 ( nameicregexeq PGUID 11 f t f 2 f 16 "19 25" 100 0 0 100 foo bar )); DATA(insert OID = 1240 ( nameicregexeq PGUID 11 f t f 2 f 16 "19 25" 100 0 0 100 foo bar ));
DATA(insert OID = 1241 ( nameicregexne PGUID 11 f t f 2 f 16 "19 25" 100 0 0 100 foo bar )); DATA(insert OID = 1241 ( nameicregexne PGUID 11 f t f 2 f 16 "19 25" 100 0 0 100 foo bar ));
#include "nodes/pg_list.h"
/* /*
* prototypes for functions pg_proc.c * prototypes for functions pg_proc.c
*/ */
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* *
* Copyright (c) 1994, Regents of the University of California * Copyright (c) 1994, Regents of the University of California
* *
* $Id: executor.h,v 1.2 1996/10/31 09:48:30 scrappy Exp $ * $Id: executor.h,v 1.3 1996/11/03 12:12:39 scrappy Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -17,57 +17,22 @@ ...@@ -17,57 +17,22 @@
* #includes * #includes
* ---------------------------------------------------------------- * ----------------------------------------------------------------
*/ */
#include <stdio.h>
#include <string.h>
#include "nodes/pg_list.h"
/* ---------------- #include <stdio.h>
* executor debugging definitions are kept in a separate file
* so people can customize what debugging they want to see and not
* have this information clobbered every time a new version of
* executor.h is checked in -cim 10/26/89
* ----------------
*/
#include "executor/execdebug.h"
#include "access/heapam.h"
#include "access/htup.h"
#include "access/istrat.h"
#include "access/itup.h" #include "access/itup.h"
#include "access/relscan.h"
#include "access/skey.h" #include "access/skey.h"
#include "utils/tqual.h" #include "access/sdir.h"
#include "catalog/catname.h"
#include "utils/syscache.h"
#include "executor/execdefs.h"
#include "executor/tuptable.h"
#include "nodes/parsenodes.h"
#include "storage/buf.h"
#include "miscadmin.h"
#include "fmgr.h"
#include "utils/elog.h"
#include "utils/mcxt.h"
#include "utils/memutils.h"
#include "utils/rel.h"
#include "catalog/pg_index.h" #include "catalog/pg_index.h"
#include "catalog/pg_proc.h"
#include "catalog/pg_type.h"
#include "catalog/pg_aggregate.h"
#include "access/printtup.h"
#include "nodes/primnodes.h"
#include "nodes/plannodes.h"
#include "nodes/execnodes.h"
#include "tcop/dest.h"
#include "storage/smgr.h"
#include "access/genam.h"
#include "executor/execdesc.h" #include "executor/execdesc.h"
#ifndef HAVE_MEMMOVE
# include "regex/utils.h"
#else
# include <string.h>
#endif
/* /*
* prototypes from functions in execAmi.c * prototypes from functions in execAmi.c
*/ */
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* *
* Copyright (c) 1994, Regents of the University of California * Copyright (c) 1994, Regents of the University of California
* *
* $Id: tuptable.h,v 1.2 1996/10/23 07:41:36 scrappy Exp $ * $Id: tuptable.h,v 1.3 1996/11/03 12:12:42 scrappy Exp $
* *
* NOTES * NOTES
* The tuple table interface is getting pretty ugly. * The tuple table interface is getting pretty ugly.
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
#define TUPTABLE_H #define TUPTABLE_H
#include "access/htup.h" #include "access/htup.h"
#include "access/relscan.h" #include "storage/buf.h"
/* ---------------- /* ----------------
* Note: the executor tuple table is managed and manipulated by special * Note: the executor tuple table is managed and manipulated by special
......
...@@ -6,20 +6,21 @@ ...@@ -6,20 +6,21 @@
* *
* Copyright (c) 1994, Regents of the University of California * Copyright (c) 1994, Regents of the University of California
* *
* $Id: execnodes.h,v 1.4 1996/10/23 07:41:56 scrappy Exp $ * $Id: execnodes.h,v 1.5 1996/11/03 12:12:50 scrappy Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
#ifndef EXECNODES_H #ifndef EXECNODES_H
#define EXECNODES_H #define EXECNODES_H
#include "nodes/params.h"
#include "access/sdir.h"
#include "access/funcindex.h"
#include "executor/hashjoin.h" #include "executor/hashjoin.h"
#include "nodes/primnodes.h" #include "nodes/primnodes.h"
#include "nodes/memnodes.h" #include "access/funcindex.h"
#include "access/relscan.h"
#include "executor/tuptable.h" #include "executor/tuptable.h"
#include "nodes/params.h"
#include "access/sdir.h"
#include "nodes/memnodes.h"
/* ---------------- /* ----------------
* IndexInfo information * IndexInfo information
......
...@@ -6,14 +6,13 @@ ...@@ -6,14 +6,13 @@
* *
* Copyright (c) 1994, Regents of the University of California * Copyright (c) 1994, Regents of the University of California
* *
* $Id: nodes.h,v 1.2 1996/10/31 09:49:10 scrappy Exp $ * $Id: nodes.h,v 1.3 1996/11/03 12:12:52 scrappy Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
#ifndef NODES_H #ifndef NODES_H
#define NODES_H #define NODES_H
/* /*
* The first field of every node is NodeTag. Each node created (with makeNode) * The first field of every node is NodeTag. Each node created (with makeNode)
* will have one of the following tags as the value of its first field. * will have one of the following tags as the value of its first field.
......
...@@ -6,15 +6,15 @@ ...@@ -6,15 +6,15 @@
* *
* Copyright (c) 1994, Regents of the University of California * Copyright (c) 1994, Regents of the University of California
* *
* $Id: parsenodes.h,v 1.4 1996/10/30 02:02:08 momjian Exp $ * $Id: parsenodes.h,v 1.5 1996/11/03 12:12:55 scrappy Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
#ifndef PARSENODES_H #ifndef PARSENODES_H
#define PARSENODES_H #define PARSENODES_H
#include "nodes/primnodes.h" #include "utils/tqual.h"
#include "utils/tqual.h" #include "nodes/primnodes.h"
/***************************************************************************** /*****************************************************************************
* Query Tree * Query Tree
......
...@@ -6,16 +6,13 @@ ...@@ -6,16 +6,13 @@
* *
* Copyright (c) 1994, Regents of the University of California * Copyright (c) 1994, Regents of the University of California
* *
* $Id: plannodes.h,v 1.2 1996/10/31 09:49:16 scrappy Exp $ * $Id: plannodes.h,v 1.3 1996/11/03 12:12:57 scrappy Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
#ifndef PLANNODES_H #ifndef PLANNODES_H
#define PLANNODES_H #define PLANNODES_H
#include "nodes/nodes.h"
#include "nodes/pg_list.h"
#include "nodes/primnodes.h" #include "nodes/primnodes.h"
/* ---------------------------------------------------------------- /* ----------------------------------------------------------------
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* *
* Copyright (c) 1994, Regents of the University of California * Copyright (c) 1994, Regents of the University of California
* *
* $Id: primnodes.h,v 1.4 1996/10/23 07:42:02 scrappy Exp $ * $Id: primnodes.h,v 1.5 1996/11/03 12:12:58 scrappy Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -14,9 +14,7 @@ ...@@ -14,9 +14,7 @@
#define PRIMNODES_H #define PRIMNODES_H
#include "nodes/pg_list.h" #include "nodes/pg_list.h"
#include "nodes/nodes.h"
#include "access/attnum.h" #include "access/attnum.h"
#include "utils/fcache.h" #include "utils/fcache.h"
/* ---------------------------------------------------------------- /* ----------------------------------------------------------------
......
...@@ -6,17 +6,13 @@ ...@@ -6,17 +6,13 @@
* *
* Copyright (c) 1994, Regents of the University of California * Copyright (c) 1994, Regents of the University of California
* *
* $Id: catalog_utils.h,v 1.2 1996/10/31 09:49:33 scrappy Exp $ * $Id: catalog_utils.h,v 1.3 1996/11/03 12:13:03 scrappy Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
#ifndef CATALOG_UTILS_H #ifndef CATALOG_UTILS_H
#define CATALOG_UTILS_H #define CATALOG_UTILS_H
#include "access/htup.h"
#include "utils/rel.h"
#include "catalog/pg_proc.h" #include "catalog/pg_proc.h"
#include "catalog/pg_type.h" #include "catalog/pg_type.h"
#include "utils/syscache.h" #include "utils/syscache.h"
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* *
* Copyright (c) 1994, Regents of the University of California * Copyright (c) 1994, Regents of the University of California
* *
* $Id: bufmgr.h,v 1.5 1996/11/01 09:31:05 scrappy Exp $ * $Id: bufmgr.h,v 1.6 1996/11/03 12:13:10 scrappy Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -14,11 +14,10 @@ ...@@ -14,11 +14,10 @@
#define BUFMGR_H #define BUFMGR_H
#include <stdio.h> #include <stdio.h>
#include "storage/block.h"
#include "storage/ipc.h"
#include "storage/buf.h" #include "storage/buf.h"
#include "storage/ipc.h"
#include "utils/rel.h" #include "utils/rel.h"
#include "storage/block.h"
/* /*
* the maximum size of a disk block for any possible installation. * the maximum size of a disk block for any possible installation.
......
...@@ -26,15 +26,14 @@ ...@@ -26,15 +26,14 @@
* *
* Copyright (c) 1994, Regents of the University of California * Copyright (c) 1994, Regents of the University of California
* *
* $Id: dest.h,v 1.1 1996/08/28 07:27:49 scrappy Exp $ * $Id: dest.h,v 1.2 1996/11/03 12:13:19 scrappy Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
#ifndef DEST_H #ifndef DEST_H
#define DEST_H #define DEST_H
#include "catalog/pg_attribute.h" #include "access/tupdesc.h"
#include "access/tupdesc.h"
/* ---------------- /* ----------------
* CommandDest is used to allow the results of calling * CommandDest is used to allow the results of calling
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* *
* Copyright (c) 1994, Regents of the University of California * Copyright (c) 1994, Regents of the University of California
* *
* $Id: builtins.h,v 1.2 1996/10/31 09:51:07 scrappy Exp $ * $Id: builtins.h,v 1.3 1996/11/03 12:13:34 scrappy Exp $
* *
* NOTES * NOTES
* This should normally only be included by fmgr.h. * This should normally only be included by fmgr.h.
...@@ -18,12 +18,10 @@ ...@@ -18,12 +18,10 @@
#ifndef BUILTINS_H #ifndef BUILTINS_H
#define BUILTINS_H #define BUILTINS_H
#include "storage/itemptr.h" #include "storage/itemptr.h"
#include "utils/nabstime.h"
#include "storage/large_object.h" #include "utils/geo-decls.h"
#include "utils/rel.h"
#include "utils/geo-decls.h"
/* /*
* Defined in adt/ * Defined in adt/
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* *
* Copyright (c) 1994, Regents of the University of California * Copyright (c) 1994, Regents of the University of California
* *
* $Id: memutils.h,v 1.2 1996/10/31 09:51:27 scrappy Exp $ * $Id: memutils.h,v 1.3 1996/11/03 12:13:35 scrappy Exp $
* *
* NOTES * NOTES
* some of the information in this file will be moved to * some of the information in this file will be moved to
...@@ -81,11 +81,6 @@ s...) ...@@ -81,11 +81,6 @@ s...)
#define MAXALIGN(LEN)\ #define MAXALIGN(LEN)\
(((long)(LEN) + (sizeof (double) - 1)) & ~(sizeof (double) -1)) (((long)(LEN) + (sizeof (double) - 1)) & ~(sizeof (double) -1))
/*****************************************************************************
* bit.h *
*****************************************************************************/
#include "utils/bit.h"
/***************************************************************************** /*****************************************************************************
* oset.h -- Fixed format ordered set definitions. * * oset.h -- Fixed format ordered set definitions. *
*****************************************************************************/ *****************************************************************************/
...@@ -95,8 +90,6 @@ s...) ...@@ -95,8 +90,6 @@ s...)
* XXX semantics of the external definitions. Otherwise, the * XXX semantics of the external definitions. Otherwise, the
* XXX functional interface should not change. * XXX functional interface should not change.
* *
* Identification:
* $Header: /cvsroot/pgsql/src/include/utils/memutils.h,v 1.2 1996/10/31 09:51:27 scrappy Exp $
*/ */
typedef struct OrderedElemData OrderedElemData; typedef struct OrderedElemData OrderedElemData;
...@@ -244,9 +237,6 @@ extern void AllocSetDump(AllocSet set); ...@@ -244,9 +237,6 @@ extern void AllocSetDump(AllocSet set);
* This file is OPERATING SYSTEM dependent!!! * This file is OPERATING SYSTEM dependent!!!
* *
*/ */
/* #include <memory.h> */
/* use <string.h> because it's ANSI */
#include <string.h>
/* /*
* LibCCopyLength is only used within this file. -cim 6/12/90 * LibCCopyLength is only used within this file. -cim 6/12/90
......
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