mirror of
https://github.com/postgres/postgres.git
synced 2025-11-24 00:23:06 +03:00
Rename config.h to pg_config.h and os.h to pg_config_os.h, fix a number of
places that were including the wrong files.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/connect.c,v 1.11 2001/08/24 14:07:49 petere Exp $ */
|
||||
|
||||
#include "postgres_fe.h"
|
||||
|
||||
#include "ecpgtype.h"
|
||||
#include "ecpglib.h"
|
||||
#include "ecpgerrno.h"
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
#include "config.h"
|
||||
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/data.c,v 1.14 2001/08/24 14:07:49 petere Exp $ */
|
||||
|
||||
#include "postgres_fe.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
#include "config.h"
|
||||
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/descriptor.c,v 1.15 2001/08/24 14:07:49 petere Exp $ */
|
||||
|
||||
#include "postgres_fe.h"
|
||||
|
||||
#include "ecpgtype.h"
|
||||
#include "ecpglib.h"
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/error.c,v 1.9 2001/08/24 14:07:49 petere Exp $ */
|
||||
|
||||
#include "postgres_fe.h"
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "ecpgerrno.h"
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
/* Copyright comment */
|
||||
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/execute.c,v 1.22 2001/08/24 14:07:49 petere Exp $ */
|
||||
|
||||
/*
|
||||
* The aim is to get a simpler inteface to the database routines.
|
||||
* All the tidieous messing around with tuples is supposed to be hidden
|
||||
@@ -12,7 +13,7 @@
|
||||
/* Taken over as part of PostgreSQL by Michael Meskes <meskes@postgresql.org>
|
||||
on Feb. 5th, 1998 */
|
||||
|
||||
#include "config.h"
|
||||
#include "postgres_fe.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <locale.h>
|
||||
@@ -1035,7 +1036,7 @@ ECPGdo(int lineno, const char *connection_name, char *query,...)
|
||||
*
|
||||
* Copyright (c) 2000, Christof Petig <christof.petig@wtal.de>
|
||||
*
|
||||
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/execute.c,v 1.21 2001/08/19 09:21:44 meskes Exp $
|
||||
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/execute.c,v 1.22 2001/08/24 14:07:49 petere Exp $
|
||||
*/
|
||||
|
||||
PGconn *ECPG_internal_get_connection(char *name);
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/memory.c,v 1.4 2001/08/24 14:07:49 petere Exp $ */
|
||||
|
||||
#include "postgres_fe.h"
|
||||
|
||||
#include "ecpgtype.h"
|
||||
#include "ecpglib.h"
|
||||
#include "ecpgerrno.h"
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/misc.c,v 1.4 2001/08/24 14:07:49 petere Exp $ */
|
||||
|
||||
#include "postgres_fe.h"
|
||||
|
||||
#include <unistd.h>
|
||||
#include "ecpgtype.h"
|
||||
#include "ecpglib.h"
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/prepare.c,v 1.6 2001/08/24 14:07:49 petere Exp $ */
|
||||
|
||||
#include "postgres_fe.h"
|
||||
|
||||
#include <ctype.h>
|
||||
|
||||
#include "ecpgtype.h"
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
#include "config.h"
|
||||
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/typename.c,v 1.18 2001/08/24 14:07:49 petere Exp $ */
|
||||
|
||||
#include "postgres_fe.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include "ecpgtype.h"
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: pgconnection.h,v 1.12 2001/07/11 22:12:43 momjian Exp $
|
||||
* $Id: pgconnection.h,v 1.13 2001/08/24 14:07:49 petere Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -22,11 +22,11 @@
|
||||
#define PGCONNECTION_H
|
||||
|
||||
extern "C" {
|
||||
#include "config.h"
|
||||
#include "pg_config.h"
|
||||
}
|
||||
|
||||
/* We assume that the C++ compiler will have these keywords, even though
|
||||
* config.h may have #define'd them to empty because C compiler doesn't.
|
||||
* pg_config.h may have #define'd them to empty because C compiler doesn't.
|
||||
*/
|
||||
#undef const
|
||||
#undef inline
|
||||
|
||||
@@ -13,11 +13,8 @@
|
||||
*-------
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "bind.h"
|
||||
|
||||
#include "environ.h"
|
||||
#include "statement.h"
|
||||
#include "qresult.h"
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
*/
|
||||
|
||||
#include "columninfo.h"
|
||||
|
||||
#include "connection.h"
|
||||
#include "socket.h"
|
||||
#include <stdlib.h>
|
||||
|
||||
@@ -14,12 +14,9 @@
|
||||
*/
|
||||
/* Multibyte support Eiji Tokuya 2001-03-15 */
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
#include "connection.h"
|
||||
|
||||
#include "environ.h"
|
||||
#include "connection.h"
|
||||
#include "socket.h"
|
||||
#include "statement.h"
|
||||
#include "qresult.h"
|
||||
|
||||
@@ -9,15 +9,11 @@
|
||||
#ifndef __CONNECTION_H__
|
||||
#define __CONNECTION_H__
|
||||
|
||||
#include "psqlodbc.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "psqlodbc.h"
|
||||
|
||||
#ifndef WIN32
|
||||
#include "iodbc.h"
|
||||
#include "isql.h"
|
||||
|
||||
@@ -17,16 +17,12 @@
|
||||
*/
|
||||
/* Multibyte support Eiji Tokuya 2001-03-15 */
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
#include "convert.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
|
||||
#include "psqlodbc.h"
|
||||
|
||||
#ifdef MULTIBYTE
|
||||
#include "multibyte.h"
|
||||
#endif
|
||||
@@ -44,7 +40,6 @@
|
||||
#include <time.h>
|
||||
#include <math.h>
|
||||
#include <stdlib.h>
|
||||
#include "convert.h"
|
||||
#include "statement.h"
|
||||
#include "qresult.h"
|
||||
#include "bind.h"
|
||||
|
||||
@@ -11,6 +11,8 @@
|
||||
|
||||
#include "psqlodbc.h"
|
||||
|
||||
#include "isql.h"
|
||||
|
||||
/* copy_and_convert results */
|
||||
#define COPY_OK 0
|
||||
#define COPY_UNSUPPORTED_TYPE 1
|
||||
|
||||
@@ -17,9 +17,7 @@
|
||||
*/
|
||||
/* Multibyte support Eiji Tokuya 2001-03-15 */
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
#include "psqlodbc.h"
|
||||
|
||||
#ifndef WIN32
|
||||
#include <string.h>
|
||||
|
||||
@@ -9,10 +9,6 @@
|
||||
#ifndef __DLG_SPECIFIC_H__
|
||||
#define __DLG_SPECIFIC_H__
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "psqlodbc.h"
|
||||
#include "connection.h"
|
||||
|
||||
|
||||
@@ -12,14 +12,11 @@
|
||||
*-------
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
#include "psqlodbc.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "psqlodbc.h"
|
||||
#include "connection.h"
|
||||
|
||||
#ifndef WIN32
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
*/
|
||||
|
||||
#include "environ.h"
|
||||
|
||||
#include "connection.h"
|
||||
#include "dlg_specific.h"
|
||||
#include "statement.h"
|
||||
|
||||
@@ -9,10 +9,6 @@
|
||||
#ifndef __ENVIRON_H__
|
||||
#define __ENVIRON_H__
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "psqlodbc.h"
|
||||
|
||||
#ifndef WIN32
|
||||
|
||||
@@ -13,10 +13,6 @@
|
||||
*-------
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "psqlodbc.h"
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
@@ -21,9 +21,7 @@
|
||||
|
||||
#ifndef WIN32
|
||||
|
||||
#if HAVE_CONFIG_H
|
||||
#include "config.h" /* produced by configure */
|
||||
#endif
|
||||
#include "gpps.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
@@ -36,7 +34,6 @@
|
||||
#include <sys/types.h>
|
||||
#include <string.h>
|
||||
#include "misc.h"
|
||||
#include "gpps.h"
|
||||
#include "dlg_specific.h"
|
||||
|
||||
#ifndef TRUE
|
||||
@@ -286,7 +283,7 @@ WritePrivateProfileString(char *theSection, /* section name */
|
||||
}
|
||||
|
||||
|
||||
#if 0
|
||||
#if NOT_USED
|
||||
/*
|
||||
* Ok. What the hell's the default behaviour for a null input buffer, and null
|
||||
* section name. For now if either are null I ignore the request, until
|
||||
@@ -449,7 +446,7 @@ if (!keyFound)
|
||||
return aReturnLength > 0 ? aReturnLength - 1 : 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif /* NOT_USED */
|
||||
|
||||
|
||||
#endif
|
||||
#endif /* not WIN32 */
|
||||
|
||||
@@ -4,9 +4,7 @@
|
||||
#ifndef GPPS_H
|
||||
#define GPPS_H
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
#include "psqlodbc.h"
|
||||
|
||||
#ifndef WIN32
|
||||
#include <sys/types.h>
|
||||
|
||||
@@ -16,13 +16,10 @@
|
||||
*--------
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
#include "psqlodbc.h"
|
||||
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include "psqlodbc.h"
|
||||
|
||||
#ifndef WIN32
|
||||
#include "iodbc.h"
|
||||
|
||||
@@ -12,12 +12,12 @@
|
||||
*-------
|
||||
*/
|
||||
|
||||
#include "psqlodbc.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "psqlodbc.h"
|
||||
|
||||
#ifndef WIN32
|
||||
#if HAVE_PWD_H
|
||||
#include <pwd.h>
|
||||
@@ -120,10 +120,6 @@ qlog(char *fmt,...)
|
||||
|
||||
/* Undefine these because windows.h will redefine and cause a warning */
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#ifdef WIN32
|
||||
#undef va_start
|
||||
#undef va_end
|
||||
|
||||
@@ -9,9 +9,7 @@
|
||||
#ifndef __MISC_H__
|
||||
#define __MISC_H__
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
#include "psqlodbc.h"
|
||||
|
||||
#ifndef WIN32
|
||||
#include "gpps.h"
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
*--------
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include "multibyte.h"
|
||||
#include <string.h>
|
||||
|
||||
int multibyte_client_encoding; /* Multibyte Client Encoding. */
|
||||
int multibyte_status; /* Multibyte Odds and ends character. */
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
* Multibyte library header ( psqlODBC Only )
|
||||
*
|
||||
*/
|
||||
#include "psqlodbc.h"
|
||||
|
||||
/* PostgreSQL client encoding */
|
||||
#define SQL_ASCII 0 /* SQL/ASCII */
|
||||
|
||||
@@ -26,10 +26,6 @@
|
||||
*-------
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "psqlodbc.h"
|
||||
#ifdef WIN32
|
||||
#undef ODBCVER
|
||||
|
||||
@@ -18,10 +18,6 @@
|
||||
*-------
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "psqlodbc.h"
|
||||
#undef ODBCVER
|
||||
#define ODBCVER 0x0300
|
||||
|
||||
@@ -13,10 +13,6 @@
|
||||
*--------
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "psqlodbc.h"
|
||||
#include <string.h>
|
||||
|
||||
|
||||
@@ -22,9 +22,7 @@
|
||||
*/
|
||||
/* Multibyte support Eiji Tokuya 2001-03-15 */
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
#include "psqlodbc.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
@@ -5,9 +5,6 @@
|
||||
*/
|
||||
#ifndef _PG_API_FUNC_H__
|
||||
#define _PG_API_FUNC_H__
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "psqlodbc.h"
|
||||
#include <stdio.h>
|
||||
|
||||
@@ -16,13 +16,9 @@
|
||||
*--------
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "psqlodbc.h"
|
||||
#include "dlg_specific.h"
|
||||
#include "pgtypes.h"
|
||||
|
||||
#include "dlg_specific.h"
|
||||
#include "statement.h"
|
||||
#include "connection.h"
|
||||
#include "qresult.h"
|
||||
|
||||
@@ -13,10 +13,6 @@
|
||||
*--------
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "psqlodbc.h"
|
||||
#include "dlg_specific.h"
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
*
|
||||
* Comments: See "notice.txt" for copyright and license information.
|
||||
*
|
||||
* $Id: psqlodbc.h,v 1.45 2001/08/18 04:30:47 inoue Exp $
|
||||
* $Id: psqlodbc.h,v 1.46 2001/08/24 14:07:50 petere Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#define __PSQLODBC_H__
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#include "pg_config.h"
|
||||
#endif
|
||||
|
||||
#include <stdio.h> /* for FILE* pointers: see GLOBAL_VALUES */
|
||||
|
||||
@@ -9,11 +9,12 @@
|
||||
#ifndef __QRESULT_H__
|
||||
#define __QRESULT_H__
|
||||
|
||||
#include "psqlodbc.h"
|
||||
|
||||
#include "connection.h"
|
||||
#include "socket.h"
|
||||
#include "columninfo.h"
|
||||
#include "tuplelist.h"
|
||||
#include "psqlodbc.h"
|
||||
#include "tuple.h"
|
||||
|
||||
enum QueryResultCode_
|
||||
|
||||
@@ -15,12 +15,9 @@
|
||||
*-------
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
#include "psqlodbc.h"
|
||||
|
||||
#include <string.h>
|
||||
#include "psqlodbc.h"
|
||||
#include "dlg_specific.h"
|
||||
#include "environ.h"
|
||||
#include "connection.h"
|
||||
|
||||
@@ -12,10 +12,6 @@
|
||||
*-------
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "socket.h"
|
||||
|
||||
#ifndef WIN32
|
||||
|
||||
@@ -9,9 +9,7 @@
|
||||
#ifndef __SOCKET_H__
|
||||
#define __SOCKET_H__
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
#include "psqlodbc.h"
|
||||
|
||||
#ifndef WIN32
|
||||
#include <sys/types.h>
|
||||
|
||||
@@ -12,10 +12,6 @@
|
||||
*-------
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "statement.h"
|
||||
#include "bind.h"
|
||||
#include "connection.h"
|
||||
|
||||
@@ -9,10 +9,6 @@
|
||||
#ifndef __STATEMENT_H__
|
||||
#define __STATEMENT_H__
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "psqlodbc.h"
|
||||
#include "bind.h"
|
||||
|
||||
|
||||
@@ -13,8 +13,8 @@
|
||||
*--------
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include "tuplelist.h"
|
||||
#include <stdlib.h>
|
||||
#include "tuple.h"
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# $Header: /cvsroot/pgsql/src/interfaces/python/Attic/GNUmakefile,v 1.10 2001/07/10 16:33:02 petere Exp $
|
||||
# $Header: /cvsroot/pgsql/src/interfaces/python/Attic/GNUmakefile,v 1.11 2001/08/24 14:07:50 petere Exp $
|
||||
|
||||
subdir = src/interfaces/python
|
||||
top_builddir = ../../..
|
||||
@@ -17,7 +17,6 @@ endif
|
||||
|
||||
include $(top_srcdir)/src/Makefile.shlib
|
||||
|
||||
# (Python also has a config.h file. Be sure to use ours.)
|
||||
override CPPFLAGS := -I$(libpq_srcdir) $(CPPFLAGS) $(python_includespec)
|
||||
|
||||
all: all-lib
|
||||
|
||||
Reference in New Issue
Block a user