mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-30 19:00:29 +08:00
more removal of PORTNAME_*
This commit is contained in:
parent
4df1a41478
commit
df6a9e633c
@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.11 1996/10/30 21:18:22 scrappy Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.12 1996/10/31 10:20:56 scrappy Exp $
|
||||
*
|
||||
* NOTES
|
||||
* this is the "main" module of the postgres backend and
|
||||
@ -16,11 +16,11 @@
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
#include "libpq/pqsignal.h" /* substitute for <signal.h> */
|
||||
#if defined(PORTNAME_linux)
|
||||
#if defined(linux)
|
||||
#ifndef __USE_POSIX
|
||||
#define __USE_POSIX
|
||||
#endif
|
||||
#endif /* defined(PORTNAME_linux) */
|
||||
#endif /* defined(linux) */
|
||||
#include <setjmp.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
@ -31,9 +31,9 @@
|
||||
#include <netdb.h> /* for MAXHOSTNAMELEN on some */
|
||||
#endif
|
||||
#include <errno.h>
|
||||
#ifdef PORTNAME_aix
|
||||
#ifdef aix
|
||||
#include <sys/select.h>
|
||||
#endif /* PORTNAME_aix */
|
||||
#endif /* aix */
|
||||
|
||||
|
||||
#include "postgres.h"
|
||||
@ -104,13 +104,13 @@ static bool IsEmptyQuery = false;
|
||||
Relation reldesc; /* current relation descritor */
|
||||
char relname[80]; /* current relation name */
|
||||
|
||||
#if defined(WIN32) || defined(PORTNAME_next)
|
||||
#if defined(WIN32) || defined(next)
|
||||
jmp_buf Warn_restart;
|
||||
#define sigsetjmp(x,y) setjmp(x)
|
||||
#define siglongjmp longjmp
|
||||
#else
|
||||
sigjmp_buf Warn_restart;
|
||||
#endif /*defined(WIN32) || defined(PORTNAME_next) */
|
||||
#endif /*defined(WIN32) || defined(next) */
|
||||
int InWarn;
|
||||
|
||||
extern int NBuffers;
|
||||
@ -1265,7 +1265,7 @@ PostgresMain(int argc, char *argv[])
|
||||
*/
|
||||
if (IsUnderPostmaster == false) {
|
||||
puts("\nPOSTGRES backend interactive interface");
|
||||
puts("$Revision: 1.11 $ $Date: 1996/10/30 21:18:22 $");
|
||||
puts("$Revision: 1.12 $ $Date: 1996/10/31 10:20:56 $");
|
||||
}
|
||||
|
||||
/* ----------------
|
||||
|
@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/float.c,v 1.5 1996/10/26 05:03:24 bryanh Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/float.c,v 1.6 1996/10/31 10:23:17 scrappy Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -1229,7 +1229,7 @@ double x;
|
||||
|
||||
#ifdef NEED_ISINF
|
||||
|
||||
#if defined(PORTNAME_aix)
|
||||
#if defined(aix)
|
||||
#ifdef CLASS_CONFLICT
|
||||
/* we want the math symbol */
|
||||
#undef class
|
||||
@ -1245,9 +1245,9 @@ static int isinf(x)
|
||||
return(-1);
|
||||
return(0);
|
||||
}
|
||||
#endif /* PORTNAME_aix */
|
||||
#endif /* aix */
|
||||
|
||||
#if defined(PORTNAME_ultrix4)
|
||||
#if defined(ultrix4)
|
||||
#include <fp_class.h>
|
||||
static int isinf(x)
|
||||
double x;
|
||||
@ -1259,9 +1259,9 @@ static int isinf(x)
|
||||
return(-1);
|
||||
return(0);
|
||||
}
|
||||
#endif /* PORTNAME_ultrix4 */
|
||||
#endif /* ultrix4 */
|
||||
|
||||
#if defined(PORTNAME_alpha)
|
||||
#if defined(alpha)
|
||||
#include <fp_class.h>
|
||||
static int isinf(x)
|
||||
double x;
|
||||
@ -1273,9 +1273,9 @@ static int isinf(x)
|
||||
return(-1);
|
||||
return(0);
|
||||
}
|
||||
#endif /* PORTNAME_alpha */
|
||||
#endif /* alpha */
|
||||
|
||||
#if defined(sparc_solaris) || defined(i386_solaris) || defined(PORTNAME_svr4)
|
||||
#if defined(sparc_solaris) || defined(i386_solaris) || defined(svr4)
|
||||
#include <ieeefp.h>
|
||||
static int
|
||||
isinf(d)
|
||||
@ -1294,9 +1294,9 @@ double d;
|
||||
|
||||
return (0);
|
||||
}
|
||||
#endif /* PORTNAME_sparc_solaris */
|
||||
#endif /* sparc_solaris */
|
||||
|
||||
#if defined(PORTNAME_irix5)
|
||||
#if defined(irix5)
|
||||
#include <ieeefp.h>
|
||||
static int
|
||||
isinf(d)
|
||||
@ -1315,6 +1315,6 @@ double d;
|
||||
|
||||
return (0);
|
||||
}
|
||||
#endif /* PORTNAME_irix5 */
|
||||
#endif /* irix5 */
|
||||
|
||||
#endif /* NEED_ISINF */
|
||||
|
@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/misc.c,v 1.3 1996/07/22 21:56:02 scrappy Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/misc.c,v 1.4 1996/10/31 10:23:18 scrappy Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -17,12 +17,12 @@
|
||||
#include "catalog/pg_type.h"
|
||||
#include "utils/builtins.h"
|
||||
|
||||
#if !defined(PORTNAME_aix) && \
|
||||
!defined(PORTNAME_BSD44_derived) && \
|
||||
!defined(PORTNAME_bsdi) && \
|
||||
!defined(PORTNAME_bsdi_2_1) && \
|
||||
!defined(PORTNAME_irix5) && \
|
||||
!defined(PORTNAME_linux)
|
||||
#if !defined(aix) && \
|
||||
!defined(BSD44_derived) && \
|
||||
!defined(bsdi) && \
|
||||
!defined(bsdi_2_1) && \
|
||||
!defined(irix5) && \
|
||||
!defined(linux)
|
||||
extern int random();
|
||||
extern int srandom(unsigned);
|
||||
#endif
|
||||
|
@ -10,7 +10,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/numutils.c,v 1.3 1996/07/22 21:56:03 scrappy Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/numutils.c,v 1.4 1996/10/31 10:23:19 scrappy Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -132,9 +132,9 @@ ltoa(int32 l, char *a)
|
||||
int
|
||||
ftoa(double value, char *ascii, int width, int prec1, char format)
|
||||
{
|
||||
#if defined(PORTNAME_BSD44_derived) || \
|
||||
defined(PORTNAME_bsdi) || \
|
||||
defined(PORTNAME_bsdi_2_1)
|
||||
#if defined(BSD44_derived) || \
|
||||
defined(bsdi) || \
|
||||
defined(bsdi_2_1)
|
||||
char out[256];
|
||||
char fmt[256];
|
||||
int ret;
|
||||
@ -281,7 +281,7 @@ ftoa(double value, char *ascii, int width, int prec1, char format)
|
||||
*a = 0;
|
||||
avail = a - ascii;
|
||||
return (avail);
|
||||
#endif /* !PORTNAME_BSD44_derived */
|
||||
#endif /* !BSD44_derived */
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.6 1996/10/13 18:39:41 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.7 1996/10/31 10:23:26 scrappy Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -49,9 +49,9 @@ elog(int lev, const char *fmt, ... )
|
||||
register char *bp;
|
||||
register const char *cp;
|
||||
extern int errno, sys_nerr;
|
||||
#if !defined(PORTNAME_BSD44_derived) && \
|
||||
!defined(PORTNAME_bsdi) && \
|
||||
!defined(PORTNAME_bsdi_2_1)
|
||||
#if !defined(BSD44_derived) && \
|
||||
!defined(bsdi) && \
|
||||
!defined(bsdi_2_1)
|
||||
extern char *sys_errlist[];
|
||||
#endif /* bsd derived */
|
||||
#ifndef PG_STANDALONE
|
||||
|
@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/error/Attic/exc.c,v 1.3 1996/07/22 21:58:28 scrappy Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/error/Attic/exc.c,v 1.4 1996/10/31 10:23:28 scrappy Exp $
|
||||
*
|
||||
* NOTE
|
||||
* XXX this code needs improvement--check for state violations and
|
||||
@ -90,9 +90,9 @@ ExcPrint(Exception *excP,
|
||||
{
|
||||
extern int errno;
|
||||
extern int sys_nerr;
|
||||
#if !defined(PORTNAME_BSD44_derived) && \
|
||||
!defined(PORTNAME_bsdi) && \
|
||||
!defined(PORTNAME_bsdi_2_1)
|
||||
#if !defined(BSD44_derived) && \
|
||||
!defined(bsdi) && \
|
||||
!defined(bsdi_2_1)
|
||||
extern char *sys_errlist[];
|
||||
#endif /* ! bsd_derived */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user