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.
This commit is contained in:
Marc G. Fournier 1996-11-06 10:31:02 +00:00
parent b6e640f829
commit 1d0dd471fa
17 changed files with 17 additions and 64 deletions

View 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 */

View 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

View 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

View 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);

View 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);

View 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,

View 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

View 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[],

View 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,

View 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);

View 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
@ -27,10 +27,6 @@
* globals.h -- *
*****************************************************************************/
#include "postgres.h"
/* #include "storage/sinval.h" */
/*
* from postmaster/postmaster.c
*/

View 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 $
*
*-------------------------------------------------------------------------
*/
@ -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

View 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);

View 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

View 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 *));

View 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);

View 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);