mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
OK, folks, here is the pgindent output.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: aix.h,v 1.1 1997/12/19 22:58:26 scrappy Exp $
|
||||
* $Id: aix.h,v 1.2 1998/09/01 04:30:51 momjian Exp $
|
||||
*
|
||||
* @(#)dlfcn.h 1.4 revision of 95/04/25 09:36:52
|
||||
* This is an unpublished work copyright (c) 1992 HELIOS Software GmbH
|
||||
@@ -53,4 +53,4 @@ extern "C"
|
||||
#define pg_dlclose(h) dlclose(h)
|
||||
#define pg_dlerror() dlerror()
|
||||
|
||||
#endif /* __dlfcn_h__ */
|
||||
#endif /* __dlfcn_h__ */
|
||||
|
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: alpha.h,v 1.1 1998/02/02 03:49:11 scrappy Exp $
|
||||
* $Id: alpha.h,v 1.2 1998/09/01 04:30:52 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -32,4 +32,4 @@
|
||||
#define pg_dlclose(h) dlclose(h)
|
||||
#define pg_dlerror() dlerror()
|
||||
|
||||
#endif /* PORT_PROTOS_H */
|
||||
#endif /* PORT_PROTOS_H */
|
||||
|
@@ -34,7 +34,7 @@
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
static char sccsid[] = "@(#)dl.c 5.4 (Berkeley) 2/23/91";
|
||||
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <nlist.h>
|
||||
|
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: bsd.h,v 1.1 1997/12/19 23:17:42 scrappy Exp $
|
||||
* $Id: bsd.h,v 1.2 1998/09/01 04:30:55 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -45,4 +45,4 @@ void *BSD44_derived_dlopen(const char *filename, int num);
|
||||
void *BSD44_derived_dlsym(void *handle, const char *name);
|
||||
void BSD44_derived_dlclose(void *handle);
|
||||
|
||||
#endif /* PORT_PROTOS_H */
|
||||
#endif /* PORT_PROTOS_H */
|
||||
|
@@ -31,4 +31,4 @@
|
||||
|
||||
/* port.c */
|
||||
|
||||
#endif /* PORT_PROTOS_H */
|
||||
#endif /* PORT_PROTOS_H */
|
||||
|
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: dgux.h,v 1.3 1998/02/26 04:34:25 momjian Exp $
|
||||
* $Id: dgux.h,v 1.4 1998/09/01 04:30:58 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -28,4 +28,4 @@
|
||||
#define pg_dlclose dlclose
|
||||
#define pg_dlerror dlerror
|
||||
|
||||
#endif /* PORT_PROTOS_H */
|
||||
#endif /* PORT_PROTOS_H */
|
||||
|
@@ -31,4 +31,4 @@
|
||||
#define pg_dlclose dlclose
|
||||
#define pg_dlerror dlerror
|
||||
|
||||
#endif /* PORT_PROTOS_H */
|
||||
#endif /* PORT_PROTOS_H */
|
||||
|
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: linux.h,v 1.3 1998/02/26 04:34:28 momjian Exp $
|
||||
* $Id: linux.h,v 1.4 1998/09/01 04:31:01 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -39,4 +39,4 @@
|
||||
|
||||
/* port.c */
|
||||
|
||||
#endif /* PORT_PROTOS_H */
|
||||
#endif /* PORT_PROTOS_H */
|
||||
|
@@ -12,10 +12,10 @@
|
||||
#include "fmgr.h" /* for func_ptr */
|
||||
#include "utils/dynamic_loader.h"
|
||||
|
||||
void *next_dlopen(char *name);
|
||||
int next_dlclose(void *handle);
|
||||
void *next_dlsym(void *handle, char *symbol);
|
||||
char *next_dlerror(void);
|
||||
void *next_dlopen(char *name);
|
||||
int next_dlclose(void *handle);
|
||||
void *next_dlsym(void *handle, char *symbol);
|
||||
char *next_dlerror(void);
|
||||
|
||||
#define pg_dlopen(f) next_dlopen
|
||||
#define pg_dlsym next_dlsym
|
||||
@@ -24,4 +24,4 @@ char *next_dlerror(void);
|
||||
|
||||
/* port.c */
|
||||
|
||||
#endif /* PORT_PROTOS_H */
|
||||
#endif /* PORT_PROTOS_H */
|
||||
|
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: sco.h,v 1.1 1997/12/20 03:38:19 scrappy Exp $
|
||||
* $Id: sco.h,v 1.2 1998/09/01 04:31:04 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -33,4 +33,4 @@
|
||||
|
||||
/* port.c */
|
||||
|
||||
#endif /* PORT_PROTOS_H */
|
||||
#endif /* PORT_PROTOS_H */
|
||||
|
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: solaris_i386.h,v 1.1 1998/06/19 02:55:06 momjian Exp $
|
||||
* $Id: solaris_i386.h,v 1.2 1998/09/01 04:31:06 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -31,4 +31,4 @@
|
||||
#define pg_dlclose dlclose
|
||||
#define pg_dlerror dlerror
|
||||
|
||||
#endif /* PORT_PROTOS_H */
|
||||
#endif /* PORT_PROTOS_H */
|
||||
|
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: solaris_sparc.h,v 1.1 1998/06/19 02:55:06 momjian Exp $
|
||||
* $Id: solaris_sparc.h,v 1.2 1998/09/01 04:31:07 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -35,4 +35,4 @@
|
||||
#define pg_dlclose dlclose
|
||||
#define pg_dlerror dlerror
|
||||
|
||||
#endif /* PORT_PROTOS_H */
|
||||
#endif /* PORT_PROTOS_H */
|
||||
|
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: sunos4.h,v 1.1 1997/12/20 03:38:20 scrappy Exp $
|
||||
* $Id: sunos4.h,v 1.2 1998/09/01 04:31:08 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -31,4 +31,4 @@
|
||||
#define pg_dlclose dlclose
|
||||
#define pg_dlerror dlerror
|
||||
|
||||
#endif /* PORT_PROTOS_H */
|
||||
#endif /* PORT_PROTOS_H */
|
||||
|
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: svr4.h,v 1.1 1998/02/24 03:41:58 scrappy Exp $
|
||||
* $Id: svr4.h,v 1.2 1998/09/01 04:31:10 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -31,4 +31,4 @@
|
||||
#define pg_dlclose dlclose
|
||||
#define pg_dlerror dlerror
|
||||
|
||||
#endif /* DYNLOADER_H */
|
||||
#endif /* DYNLOADER_H */
|
||||
|
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: ultrix4.h,v 1.1 1998/03/10 05:23:46 scrappy Exp $
|
||||
* $Id: ultrix4.h,v 1.2 1998/09/01 04:31:11 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -120,4 +120,4 @@ extern char **dl_undefinedSymbols( /* int *count */ );
|
||||
extern void dl_printAllSymbols( /* void *handle */ );
|
||||
extern void dl_setLibraries( /* char *libs */ );
|
||||
|
||||
#endif /* _DL_HEADER_ */
|
||||
#endif /* _DL_HEADER_ */
|
||||
|
@@ -31,4 +31,4 @@
|
||||
#define pg_dlclose dlclose
|
||||
#define pg_dlerror dlerror
|
||||
|
||||
#endif /* PORT_PROTOS_H */
|
||||
#endif /* PORT_PROTOS_H */
|
||||
|
@@ -31,4 +31,4 @@
|
||||
#define pg_dlclose dlclose
|
||||
#define pg_dlerror dlerror
|
||||
|
||||
#endif /* PORT_PROTOS_H */
|
||||
#endif /* PORT_PROTOS_H */
|
||||
|
@@ -7,7 +7,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: fixade.h,v 1.3 1997/09/08 02:26:22 momjian Exp $
|
||||
* $Id: fixade.h,v 1.4 1998/09/01 04:31:16 momjian Exp $
|
||||
*
|
||||
* NOTES
|
||||
* This must be included in EVERY source file.
|
||||
@@ -54,13 +54,13 @@ struct HP_TOO_BOGUS
|
||||
int hptb_bogus[8192];
|
||||
};
|
||||
|
||||
#endif /* BROKEN_STRUCT_INIT */
|
||||
#endif /* HP_S500_ALIGN */
|
||||
#endif /* BROKEN_STRUCT_INIT */
|
||||
#endif /* HP_S500_ALIGN */
|
||||
|
||||
#if defined(WEAK_C_OPTIMIZER)
|
||||
#pragma OPT_LEVEL 1
|
||||
#endif /* WEAK_C_OPTIMIZER */
|
||||
#endif /* WEAK_C_OPTIMIZER */
|
||||
|
||||
#endif /* !NOFIXADE */
|
||||
#endif /* !NOFIXADE */
|
||||
|
||||
#endif /* FIXADE_H */
|
||||
#endif /* FIXADE_H */
|
||||
|
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: port-protos.h,v 1.5 1997/12/19 22:45:57 scrappy Exp $
|
||||
* $Id: port-protos.h,v 1.6 1998/09/01 04:31:17 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -28,4 +28,4 @@ extern int init_address_fixup(void);
|
||||
extern double rint(double x);
|
||||
extern double cbrt(double x);
|
||||
|
||||
#endif /* PORT_PROTOS_H */
|
||||
#endif /* PORT_PROTOS_H */
|
||||
|
@@ -9,22 +9,22 @@
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* 3. All advertising materials mentioning features or use of this software
|
||||
* must display the following acknowledgement:
|
||||
* must display the following acknowledgement:
|
||||
* This product includes software developed by the University of
|
||||
* California, Berkeley and its contributors.
|
||||
* 4. Neither the name of the University nor the names of its contributors
|
||||
* may be used to endorse or promote products derived from this software
|
||||
* without specific prior written permission.
|
||||
* may be used to endorse or promote products derived from this software
|
||||
* without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
@@ -37,10 +37,12 @@
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)snprintf.c 8.1 (Berkeley) 6/4/93";
|
||||
|
||||
#endif
|
||||
static const char rcsid[] =
|
||||
"$Id: snprintf.c,v 1.2 1998/09/01 03:24:31 momjian Exp $";
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
"$Id: snprintf.c,v 1.3 1998/09/01 04:30:44 momjian Exp $";
|
||||
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#include <limits.h>
|
||||
#include <stdio.h>
|
||||
@@ -52,20 +54,21 @@ static const char rcsid[] =
|
||||
|
||||
#if __STDC__
|
||||
int
|
||||
snprintf(char *str, size_t n, char const *fmt, ...)
|
||||
snprintf(char *str, size_t n, char const * fmt,...)
|
||||
#else
|
||||
int
|
||||
snprintf(str, n, fmt, va_alist)
|
||||
char *str;
|
||||
size_t n;
|
||||
char *fmt;
|
||||
va_dcl
|
||||
char *str;
|
||||
size_t n;
|
||||
char *fmt;
|
||||
|
||||
va_dcl
|
||||
#endif
|
||||
{
|
||||
size_t on;
|
||||
int ret;
|
||||
va_list ap;
|
||||
FILE f;
|
||||
size_t on;
|
||||
int ret;
|
||||
va_list ap;
|
||||
FILE f;
|
||||
|
||||
on = n;
|
||||
if (n != 0)
|
||||
@@ -79,7 +82,7 @@ snprintf(str, n, fmt, va_alist)
|
||||
#endif
|
||||
f._file = -1;
|
||||
f._flags = __SWR | __SSTR;
|
||||
f._bf._base = f._p = (unsigned char *)str;
|
||||
f._bf._base = f._p = (unsigned char *) str;
|
||||
f._bf._size = f._w = n;
|
||||
ret = vfprintf(&f, fmt, ap);
|
||||
if (on > 0)
|
||||
|
@@ -1,4 +1,4 @@
|
||||
/* $Id: strcasecmp.c,v 1.4 1998/06/15 19:28:57 momjian Exp $ */
|
||||
/* $Id: strcasecmp.c,v 1.5 1998/09/01 04:30:46 momjian Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1987 Regents of the University of California.
|
||||
@@ -15,7 +15,7 @@
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
static char sccsid[] = "@(#)strcasecmp.c 5.5 (Berkeley) 11/24/87";
|
||||
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <string.h>
|
||||
|
@@ -34,7 +34,7 @@
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
static char sccsid[] = "@(#)strtol.c 5.4 (Berkeley) 2/23/91";
|
||||
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#include <limits.h>
|
||||
#include <ctype.h>
|
||||
|
@@ -34,7 +34,7 @@
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
static char sccsid[] = "@(#)strtoul.c 8.1 (Berkeley) 6/4/93";
|
||||
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#include <limits.h>
|
||||
#include <ctype.h>
|
||||
|
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: float.h,v 1.2 1997/09/07 04:46:58 momjian Exp $
|
||||
* $Id: float.h,v 1.3 1998/09/01 04:31:19 momjian Exp $
|
||||
*
|
||||
* NOTES
|
||||
* These come straight out of ANSI X3.159-1989 (p.18) and
|
||||
@@ -27,4 +27,4 @@
|
||||
#define DBL_MIN 2.2250738585072014e-308
|
||||
#define DBL_MAX 1.7976931348623157e+308
|
||||
|
||||
#endif /* FLOAT_H */
|
||||
#endif /* FLOAT_H */
|
||||
|
Reference in New Issue
Block a user