Replace direct inclusions of c.h with inclusion of postgres.h,

to ensure that config.h is included as well.
This commit is contained in:
Tom Lane 1999-01-17 03:04:57 +00:00
parent 4e34686a36
commit 21badba151
10 changed files with 18 additions and 19 deletions

View File

@ -1,6 +1,6 @@
#include "postgres.h"
#include "executor/spi.h" #include "executor/spi.h"
#include "commands/trigger.h" #include "commands/trigger.h"
#include "c.h" /* endof() macro */
#include <ctype.h> /* tolower */ #include <ctype.h> /* tolower */
#include <stdio.h> /* debugging */ #include <stdio.h> /* debugging */

View File

@ -12,8 +12,8 @@
#include <sys/ldr.h> #include <sys/ldr.h>
#include <a.out.h> #include <a.out.h>
#include <ldfcn.h> #include <ldfcn.h>
#include "postgres.h"
#include "dynloader.h" #include "dynloader.h"
#include "c.h"
/* /*
* We simulate dlopen() et al. through a call to load. Because AIX has * We simulate dlopen() et al. through a call to load. Because AIX has

View File

@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/port/dynloader/hpux.c,v 1.5 1998/09/01 03:24:39 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/port/dynloader/hpux.c,v 1.6 1999/01/17 03:04:50 tgl Exp $
* *
* NOTES * NOTES
* all functions are defined here -- it's impossible to trace the * all functions are defined here -- it's impossible to trace the
@ -19,7 +19,7 @@
#include <stdio.h> #include <stdio.h>
#include <a.out.h> #include <a.out.h>
#include <dl.h> #include <dl.h>
#include "c.h" #include "postgres.h"
#include "fmgr.h" #include "fmgr.h"
#include "utils/dynamic_loader.h" #include "utils/dynamic_loader.h"
#include "dynloader.h" #include "dynloader.h"

View File

@ -9,7 +9,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/port/dynloader/ultrix4.c,v 1.3 1998/09/01 03:24:41 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/port/dynloader/ultrix4.c,v 1.4 1999/01/17 03:04:50 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -17,7 +17,7 @@
#include <postgres.h> #include <postgres.h>
#include "dl.h" #include "dl.h"
#include <utils/dynamic_loader.h> #include <utils/dynamic_loader.h>
#include "c.h" #include "postgres.h"
#include "fmgr.h" #include "fmgr.h"
#include "port-protos.h" #include "port-protos.h"
#include "utils/elog.h" #include "utils/elog.h"

View File

@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/Attic/s_lock.c,v 1.15 1998/12/26 18:15:53 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/storage/buffer/Attic/s_lock.c,v 1.16 1999/01/17 03:04:51 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -16,8 +16,7 @@
#include <sys/time.h> #include <sys/time.h>
#include <unistd.h> #include <unistd.h>
#include "config.h" #include "postgres.h"
#include "c.h"
#include "storage/s_lock.h" #include "storage/s_lock.h"

View File

@ -7,13 +7,13 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/error/Attic/format.c,v 1.8 1999/01/01 04:48:46 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/utils/error/Attic/format.c,v 1.9 1999/01/17 03:04:52 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
#include <stdio.h> #include <stdio.h>
#include <stdarg.h> #include <stdarg.h>
#include "c.h" #include "postgres.h"
#define FormMaxSize 1024 #define FormMaxSize 1024
#define FormMinSize (FormMaxSize / 8) #define FormMinSize (FormMaxSize / 8)

View File

@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/mmgr/Attic/oset.c,v 1.9 1998/09/01 03:27:05 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/utils/mmgr/Attic/oset.c,v 1.10 1999/01/17 03:04:53 tgl Exp $
* *
* NOTE * NOTE
* XXX This is a preliminary implementation which lacks fail-fast * XXX This is a preliminary implementation which lacks fail-fast
@ -15,7 +15,7 @@
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
#include "c.h" #include "postgres.h"
#include "utils/memutils.h" /* where declarations of this file goes */ #include "utils/memutils.h" /* where declarations of this file goes */

View File

@ -7,14 +7,14 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/mmgr/Attic/palloc.c,v 1.8 1998/09/01 04:33:37 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/utils/mmgr/Attic/palloc.c,v 1.9 1999/01/17 03:04:54 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
#include <string.h> #include <string.h>
#include "c.h" #include "postgres.h"
#include "utils/mcxt.h" #include "utils/mcxt.h"
#include "utils/elog.h" #include "utils/elog.h"

View File

@ -6,7 +6,7 @@
* *
* Copyright (c) 1994, Regents of the University of California * Copyright (c) 1994, Regents of the University of California
* *
* $Id: pqcomm.h,v 1.31 1999/01/17 01:45:42 tgl Exp $ * $Id: pqcomm.h,v 1.32 1999/01/17 03:04:55 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -23,7 +23,7 @@
#include <netinet/in.h> #include <netinet/in.h>
#endif #endif
#include "c.h" #include "postgres.h"
/* Define a generic socket address type. */ /* Define a generic socket address type. */

View File

@ -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.5 1998/09/01 04:40:15 momjian Exp $ * $Id: pqsignal.h,v 1.6 1999/01/17 03:04:57 tgl 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,7 @@
#ifndef PQSIGNAL_H #ifndef PQSIGNAL_H
#define PQSIGNAL_H #define PQSIGNAL_H
#include "c.h" #include "postgres.h"
typedef void (*pqsigfunc) (int); typedef void (*pqsigfunc) (int);