OSDN Git Service

Okay...this pretty much cleans out the include files.
authorMarc G. Fournier <scrappy@hub.org>
Wed, 6 Nov 1996 10:31:02 +0000 (10:31 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Wed, 6 Nov 1996 10:31:02 +0000 (10:31 +0000)
I'm able to get through a 'make' of the backend with no errors except
the occasional 'might not be initialized error', which is nothing major,
just annoying.

Have a few patches from D'Arcy to incorporate, but am waiting until I can
get a clean compile first, which I'm hoping to have before bed, or sometime
tomorrow.

17 files changed:
src/include/bootstrap/bootstrap.h
src/include/catalog/pg_amop.h
src/include/catalog/pg_version.h
src/include/commands/async.h
src/include/commands/version.h
src/include/lib/qsort.h
src/include/libpq/auth.h
src/include/libpq/hba.h
src/include/libpq/libpq-fs.h
src/include/libpq/pqsignal.h
src/include/miscadmin.h
src/include/optimizer/internal.h
src/include/optimizer/planner.h
src/include/parser/parsetree.h
src/include/regex/regexp.h
src/include/rewrite/locks.h
src/include/rewrite/rewriteSupport.h

index eb15acb..de18054 100644 (file)
@@ -6,29 +6,14 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: bootstrap.h,v 1.1 1996/08/28 07:21:31 scrappy Exp $
+ * $Id: bootstrap.h,v 1.2 1996/11/06 10:29:05 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
 #ifndef BOOTSTRAP_H
 #define BOOTSTRAP_H
 
-#include <sys/file.h>
-#include <stdio.h>
-#include <string.h>
-#include <signal.h>
-#include <ctype.h>
 
-#include "access/htup.h"
-#include "access/itup.h"
-#include "access/relscan.h"
-#include "access/skey.h"
-#include "utils/tqual.h"
-#include "storage/buf.h"
-#include "storage/bufmgr.h"    /* for BufferManagerFlush */
-#include "utils/portal.h"
-#include "utils/elog.h"
-#include "utils/rel.h"
 
 #define        MAXATTR 40              /* max. number of attributes in a relation */
 
index 6e52f44..6dea14a 100644 (file)
@@ -7,7 +7,7 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: pg_amop.h,v 1.2 1996/10/31 09:47:12 scrappy Exp $
+ * $Id: pg_amop.h,v 1.3 1996/11/06 10:29:18 scrappy Exp $
  *
  * NOTES
  *   the genbki.sh script reads this file and generates .bki
@@ -24,7 +24,6 @@
  *     can be read by both genbki.sh and the C compiler.
  * ----------------
  */
-#include "access/istrat.h"
 
 /* ----------------
  *     pg_amop definition.  cpp turns this into
index 154f931..4602199 100644 (file)
@@ -7,7 +7,7 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: pg_version.h,v 1.2 1996/10/31 09:48:03 scrappy Exp $
+ * $Id: pg_version.h,v 1.3 1996/11/06 10:29:23 scrappy Exp $
  *
  * NOTES
  *    the genbki.sh script reads this file and generates .bki
@@ -24,7 +24,6 @@
  *     can be read by both genbki.sh and the C compiler.
  * ----------------
  */
-#include "utils/nabstime.h"
 
 /* ----------------
  *     pg_version definition.  cpp turns this into
index bb50094..d734651 100644 (file)
@@ -6,14 +6,13 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: async.h,v 1.2 1996/10/04 20:16:52 scrappy Exp $
+ * $Id: async.h,v 1.3 1996/11/06 10:29:30 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
 #ifndef        ASYNC_H
 #define        ASYNC_H
 
-#include "nodes/memnodes.h"
 
 extern void Async_NotifyHandler(SIGNAL_ARGS);
 extern void Async_Notify(char *relname);
index da7f2c4..227fcae 100644 (file)
@@ -6,14 +6,13 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: version.h,v 1.2 1996/10/31 09:48:24 scrappy Exp $
+ * $Id: version.h,v 1.3 1996/11/06 10:29:33 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
 #ifndef VERSION_H
 #define VERSION_H
 
-#include "nodes/pg_list.h"
 
 extern void DefineVersion(char *name, char *fromRelname, char *date);
 extern void VersionCreate(char *vname, char *bname);
index 4fae463..3382d0b 100644 (file)
@@ -6,14 +6,13 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: qsort.h,v 1.1 1996/08/28 07:22:40 scrappy Exp $
+ * $Id: qsort.h,v 1.2 1996/11/06 10:29:46 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
 #ifndef        QSORT_H
 #define        QSORT_H
 
-#include <sys/types.h>
 
 extern void pg_qsort(void *bot,
                     size_t nmemb,
index d67d335..e04a9ce 100644 (file)
@@ -6,14 +6,14 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: auth.h,v 1.2 1996/10/31 09:48:57 scrappy Exp $
+ * $Id: auth.h,v 1.3 1996/11/06 10:29:54 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
 #ifndef AUTH_H
 #define        AUTH_H
 
-#include "libpq/pqcomm.h"
+#include <libpq/pqcomm.h>
 
 /*----------------------------------------------------------------
  * Common routines and definitions
index 72e374b..c68fefe 100644 (file)
@@ -4,14 +4,13 @@
  *    Interface to hba.c
  *
  *
- * $Id: hba.h,v 1.1 1996/10/11 09:12:17 bryanh Exp $
+ * $Id: hba.h,v 1.2 1996/11/06 10:29:58 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
 #ifndef HBA_H
 #define        HBA_H
 
-#include <libpq/pqcomm.h>
 
 extern int
 hba_recvauth(const Port *port, const char database[], const char user[],
index fed461b..a482038 100644 (file)
@@ -6,23 +6,17 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: libpq-fs.h,v 1.1 1996/08/28 07:23:00 scrappy Exp $
+ * $Id: libpq-fs.h,v 1.2 1996/11/06 10:30:02 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
 #ifndef LIBPQ_FS_H
 #define LIBPQ_FS_H
 
-#include "lib/dllist.h"
-#include <sys/file.h>
-#include <sys/stat.h>
 
-#include <fcntl.h>             /* for O_ on some */
 #ifndef WIN32
-#include <unistd.h>            /* for SEEK_ on most */
 #endif /* WIN32 */
 #ifndef SEEK_SET
-#include <stdio.h>             /* for SEEK_ on others */
 #endif /* SEEK_SET */
 
 /* UNIX compatibility junk.  This should be in all systems' include files,
index dc48786..769ba17 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: pqsignal.h,v 1.2 1996/10/31 09:49:01 scrappy Exp $
+ * $Id: pqsignal.h,v 1.3 1996/11/06 10:30:08 scrappy Exp $
  *
  * NOTES
  *    This shouldn't be in libpq, but the monitor and some other
@@ -17,7 +17,6 @@
 #ifndef PQSIGNAL_H
 #define PQSIGNAL_H
 
-#include <signal.h>
 
 
 typedef void (*pqsigfunc)(int);
index c95177e..91ceb11 100644 (file)
@@ -12,7 +12,7 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: miscadmin.h,v 1.1 1996/10/31 07:10:13 scrappy Exp $
+ * $Id: miscadmin.h,v 1.2 1996/11/06 10:28:59 scrappy Exp $
  *
  * NOTES
  *    some of the information in this file will be moved to
  *    globals.h --                                                           *
  *****************************************************************************/
 
-#include "postgres.h"
-
-/* #include "storage/sinval.h" */
-
 /*
  * from postmaster/postmaster.c
  */
index 789c820..d74a35d 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: internal.h,v 1.1 1996/08/28 07:23:12 scrappy Exp $
+ * $Id: internal.h,v 1.2 1996/11/06 10:30:18 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
  *    
  */
 
-#include "nodes/nodes.h"
-#include "nodes/primnodes.h"
-#include "nodes/plannodes.h"
-#include "parser/parsetree.h"
-#include "nodes/relation.h"
-#include "catalog/pg_index.h"  /* for INDEX_MAX_KEYS */
-#include "utils/syscache.h"    /* for SearchSysCacheGetAttribute, etc. */
 
 /*
  *     System-dependent tuning constants
index 8c74ae4..649974c 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: planner.h,v 1.1 1996/08/28 07:23:26 scrappy Exp $
+ * $Id: planner.h,v 1.2 1996/11/06 10:30:20 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -14,8 +14,6 @@
 #define PLANNER_H
 
 /*
-#include "optimizer/internal.h"
-#include "parser/parse_query.h"
 */
 
 extern Plan *planner(Query *parse);
index cda18ff..b51cc0f 100644 (file)
@@ -7,7 +7,7 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: parsetree.h,v 1.1 1996/08/28 07:23:57 scrappy Exp $
+ * $Id: parsetree.h,v 1.2 1996/11/06 10:30:39 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -18,8 +18,6 @@
  *     need pg_list.h for definitions of CAR(), etc. macros
  * ----------------
  */
-#include "nodes/pg_list.h"
-#include "nodes/parsenodes.h"
 
 /* ----------------
  *     range table macros
index bf39dab..25438e3 100644 (file)
@@ -57,9 +57,7 @@ typedef struct regexp {
        char program[1];        /* Unwarranted chumminess with compiler. */
 } regexp;
 
-/* #include <sys/cdefs.h> */
 /* since not all systems have cdefs.h, we'll use our own here - jolly */
-#include "cdefs.h"
 
 __BEGIN_DECLS
 regexp *pg95_regcomp __P((const char *));
index 539268c..ea54dee 100644 (file)
@@ -6,14 +6,13 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: locks.h,v 1.1 1996/08/28 07:24:04 scrappy Exp $
+ * $Id: locks.h,v 1.2 1996/11/06 10:30:59 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
 #ifndef        LOCKS_H
 #define        LOCKS_H
 
-#include "rewrite/prs2lock.h"
 
 extern List *matchLocks(CmdType event, RuleLock *rulelocks, int varno,
                        Query *parsetree);
index 6dcaf09..36d03f6 100644 (file)
@@ -6,14 +6,13 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: rewriteSupport.h,v 1.1 1996/08/28 07:24:13 scrappy Exp $
+ * $Id: rewriteSupport.h,v 1.2 1996/11/06 10:31:02 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
 #ifndef        REWRITESUPPORT_H
 #define        REWRITESUPPORT_H
 
-#include "nodes/pg_list.h"
 
 extern int IsDefinedRewriteRule(char *ruleName);