Commit 1d0dd471 authored by Marc G. Fournier's avatar Marc G. Fournier

Okay...this pretty much cleans out the include files.

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.
parent b6e640f8
...@@ -6,29 +6,14 @@ ...@@ -6,29 +6,14 @@
* *
* Copyright (c) 1994, Regents of the University of California * 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 #ifndef BOOTSTRAP_H
#define 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 */ #define MAXATTR 40 /* max. number of attributes in a relation */
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* Copyright (c) 1994, Regents of the University of California * 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 * NOTES
* the genbki.sh script reads this file and generates .bki * the genbki.sh script reads this file and generates .bki
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
* can be read by both genbki.sh and the C compiler. * can be read by both genbki.sh and the C compiler.
* ---------------- * ----------------
*/ */
#include "access/istrat.h"
/* ---------------- /* ----------------
* pg_amop definition. cpp turns this into * pg_amop definition. cpp turns this into
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* Copyright (c) 1994, Regents of the University of California * 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 * NOTES
* the genbki.sh script reads this file and generates .bki * the genbki.sh script reads this file and generates .bki
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
* can be read by both genbki.sh and the C compiler. * can be read by both genbki.sh and the C compiler.
* ---------------- * ----------------
*/ */
#include "utils/nabstime.h"
/* ---------------- /* ----------------
* pg_version definition. cpp turns this into * pg_version definition. cpp turns this into
......
...@@ -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: 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 #ifndef ASYNC_H
#define ASYNC_H #define ASYNC_H
#include "nodes/memnodes.h"
extern void Async_NotifyHandler(SIGNAL_ARGS); extern void Async_NotifyHandler(SIGNAL_ARGS);
extern void Async_Notify(char *relname); extern void Async_Notify(char *relname);
......
...@@ -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: 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 #ifndef VERSION_H
#define VERSION_H #define VERSION_H
#include "nodes/pg_list.h"
extern void DefineVersion(char *name, char *fromRelname, char *date); extern void DefineVersion(char *name, char *fromRelname, char *date);
extern void VersionCreate(char *vname, char *bname); extern void VersionCreate(char *vname, char *bname);
......
...@@ -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: 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 #ifndef QSORT_H
#define QSORT_H #define QSORT_H
#include <sys/types.h>
extern void pg_qsort(void *bot, extern void pg_qsort(void *bot,
size_t nmemb, size_t nmemb,
......
...@@ -6,14 +6,14 @@ ...@@ -6,14 +6,14 @@
* *
* Copyright (c) 1994, Regents of the University of California * 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 #ifndef AUTH_H
#define AUTH_H #define AUTH_H
#include "libpq/pqcomm.h" #include <libpq/pqcomm.h>
/*---------------------------------------------------------------- /*----------------------------------------------------------------
* Common routines and definitions * Common routines and definitions
......
...@@ -4,14 +4,13 @@ ...@@ -4,14 +4,13 @@
* Interface to hba.c * 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 #ifndef HBA_H
#define HBA_H #define HBA_H
#include <libpq/pqcomm.h>
extern int extern int
hba_recvauth(const Port *port, const char database[], const char user[], hba_recvauth(const Port *port, const char database[], const char user[],
......
...@@ -6,23 +6,17 @@ ...@@ -6,23 +6,17 @@
* *
* Copyright (c) 1994, Regents of the University of California * 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 #ifndef LIBPQ_FS_H
#define 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 #ifndef WIN32
#include <unistd.h> /* for SEEK_ on most */
#endif /* WIN32 */ #endif /* WIN32 */
#ifndef SEEK_SET #ifndef SEEK_SET
#include <stdio.h> /* for SEEK_ on others */
#endif /* SEEK_SET */ #endif /* SEEK_SET */
/* UNIX compatibility junk. This should be in all systems' include files, /* UNIX compatibility junk. This should be in all systems' include files,
......
...@@ -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: 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 * NOTES
* This shouldn't be in libpq, but the monitor and some other * This shouldn't be in libpq, but the monitor and some other
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
#ifndef PQSIGNAL_H #ifndef PQSIGNAL_H
#define PQSIGNAL_H #define PQSIGNAL_H
#include <signal.h>
typedef void (*pqsigfunc)(int); typedef void (*pqsigfunc)(int);
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
* *
* Copyright (c) 1994, Regents of the University of California * 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 * NOTES
* some of the information in this file will be moved to * some of the information in this file will be moved to
...@@ -27,10 +27,6 @@ ...@@ -27,10 +27,6 @@
* globals.h -- * * globals.h -- *
*****************************************************************************/ *****************************************************************************/
#include "postgres.h"
/* #include "storage/sinval.h" */
/* /*
* from postmaster/postmaster.c * from postmaster/postmaster.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: 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 $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -22,13 +22,6 @@ ...@@ -22,13 +22,6 @@
* *
*/ */
#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 * System-dependent tuning constants
......
...@@ -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: 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 @@ ...@@ -14,8 +14,6 @@
#define PLANNER_H #define PLANNER_H
/* /*
#include "optimizer/internal.h"
#include "parser/parse_query.h"
*/ */
extern Plan *planner(Query *parse); extern Plan *planner(Query *parse);
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* Copyright (c) 1994, Regents of the University of California * 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 @@ ...@@ -18,8 +18,6 @@
* need pg_list.h for definitions of CAR(), etc. macros * need pg_list.h for definitions of CAR(), etc. macros
* ---------------- * ----------------
*/ */
#include "nodes/pg_list.h"
#include "nodes/parsenodes.h"
/* ---------------- /* ----------------
* range table macros * range table macros
......
...@@ -57,9 +57,7 @@ typedef struct regexp { ...@@ -57,9 +57,7 @@ typedef struct regexp {
char program[1]; /* Unwarranted chumminess with compiler. */ char program[1]; /* Unwarranted chumminess with compiler. */
} regexp; } regexp;
/* #include <sys/cdefs.h> */
/* since not all systems have cdefs.h, we'll use our own here - jolly */ /* since not all systems have cdefs.h, we'll use our own here - jolly */
#include "cdefs.h"
__BEGIN_DECLS __BEGIN_DECLS
regexp *pg95_regcomp __P((const char *)); regexp *pg95_regcomp __P((const char *));
......
...@@ -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: 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 #ifndef LOCKS_H
#define LOCKS_H #define LOCKS_H
#include "rewrite/prs2lock.h"
extern List *matchLocks(CmdType event, RuleLock *rulelocks, int varno, extern List *matchLocks(CmdType event, RuleLock *rulelocks, int varno,
Query *parsetree); Query *parsetree);
......
...@@ -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: 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 #ifndef REWRITESUPPORT_H
#define REWRITESUPPORT_H #define REWRITESUPPORT_H
#include "nodes/pg_list.h"
extern int IsDefinedRewriteRule(char *ruleName); extern int IsDefinedRewriteRule(char *ruleName);
......
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