mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Used modified version of indent that understands over 100 typedefs.
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
#include "libpq-fe.h"
|
||||
|
||||
void
|
||||
exit_nicely(PGconn * conn)
|
||||
exit_nicely(PGconn *conn)
|
||||
{
|
||||
PQfinish(conn);
|
||||
exit(1);
|
||||
|
@ -22,7 +22,7 @@ INSERT INTO TBL1 values (10);
|
||||
#include "libpq-fe.h"
|
||||
|
||||
void
|
||||
exit_nicely(PGconn * conn)
|
||||
exit_nicely(PGconn *conn)
|
||||
{
|
||||
PQfinish(conn);
|
||||
exit(1);
|
||||
|
@ -31,7 +31,7 @@ tuple 1: got
|
||||
#include "utils/geo-decls.h" /* for the POLYGON type */
|
||||
|
||||
void
|
||||
exit_nicely(PGconn * conn)
|
||||
exit_nicely(PGconn *conn)
|
||||
{
|
||||
PQfinish(conn);
|
||||
exit(1);
|
||||
|
@ -9,7 +9,7 @@
|
||||
#include "libpq-fe.h"
|
||||
|
||||
void
|
||||
exit_nicely(PGconn * conn1, PGconn * conn2)
|
||||
exit_nicely(PGconn *conn1, PGconn *conn2)
|
||||
{
|
||||
if (conn1)
|
||||
PQfinish(conn1);
|
||||
@ -19,7 +19,7 @@ exit_nicely(PGconn * conn1, PGconn * conn2)
|
||||
}
|
||||
|
||||
void
|
||||
check_conn(PGconn * conn)
|
||||
check_conn(PGconn *conn)
|
||||
{
|
||||
/* check to see that the backend connection was successfully made */
|
||||
if (PQstatus(conn) == CONNECTION_BAD)
|
||||
|
@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/test/examples/testlo.c,v 1.5 1997/09/08 02:40:51 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/test/examples/testlo.c,v 1.6 1997/09/08 21:55:56 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -29,7 +29,7 @@
|
||||
*
|
||||
*/
|
||||
Oid
|
||||
importFile(PGconn * conn, char *filename)
|
||||
importFile(PGconn *conn, char *filename)
|
||||
{
|
||||
Oid lobjId;
|
||||
int lobj_fd;
|
||||
@ -77,7 +77,7 @@ importFile(PGconn * conn, char *filename)
|
||||
}
|
||||
|
||||
void
|
||||
pickout(PGconn * conn, Oid lobjId, int start, int len)
|
||||
pickout(PGconn *conn, Oid lobjId, int start, int len)
|
||||
{
|
||||
int lobj_fd;
|
||||
char *buf;
|
||||
@ -107,7 +107,7 @@ pickout(PGconn * conn, Oid lobjId, int start, int len)
|
||||
}
|
||||
|
||||
void
|
||||
overwrite(PGconn * conn, Oid lobjId, int start, int len)
|
||||
overwrite(PGconn *conn, Oid lobjId, int start, int len)
|
||||
{
|
||||
int lobj_fd;
|
||||
char *buf;
|
||||
@ -146,7 +146,7 @@ overwrite(PGconn * conn, Oid lobjId, int start, int len)
|
||||
*
|
||||
*/
|
||||
void
|
||||
exportFile(PGconn * conn, Oid lobjId, char *filename)
|
||||
exportFile(PGconn *conn, Oid lobjId, char *filename)
|
||||
{
|
||||
int lobj_fd;
|
||||
char buf[BUFSIZE];
|
||||
@ -194,7 +194,7 @@ exportFile(PGconn * conn, Oid lobjId, char *filename)
|
||||
}
|
||||
|
||||
void
|
||||
exit_nicely(PGconn * conn)
|
||||
exit_nicely(PGconn *conn)
|
||||
{
|
||||
PQfinish(conn);
|
||||
exit(1);
|
||||
|
@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/test/examples/Attic/testlo2.c,v 1.4 1997/09/08 02:40:52 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/test/examples/Attic/testlo2.c,v 1.5 1997/09/08 21:55:57 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -23,7 +23,7 @@
|
||||
*
|
||||
*/
|
||||
Oid
|
||||
importFile(PGconn * conn, char *filename)
|
||||
importFile(PGconn *conn, char *filename)
|
||||
{
|
||||
Oid lobjId;
|
||||
int lobj_fd;
|
||||
@ -71,7 +71,7 @@ importFile(PGconn * conn, char *filename)
|
||||
}
|
||||
|
||||
void
|
||||
pickout(PGconn * conn, Oid lobjId, int start, int len)
|
||||
pickout(PGconn *conn, Oid lobjId, int start, int len)
|
||||
{
|
||||
int lobj_fd;
|
||||
char *buf;
|
||||
@ -101,7 +101,7 @@ pickout(PGconn * conn, Oid lobjId, int start, int len)
|
||||
}
|
||||
|
||||
void
|
||||
overwrite(PGconn * conn, Oid lobjId, int start, int len)
|
||||
overwrite(PGconn *conn, Oid lobjId, int start, int len)
|
||||
{
|
||||
int lobj_fd;
|
||||
char *buf;
|
||||
@ -140,7 +140,7 @@ overwrite(PGconn * conn, Oid lobjId, int start, int len)
|
||||
*
|
||||
*/
|
||||
void
|
||||
exportFile(PGconn * conn, Oid lobjId, char *filename)
|
||||
exportFile(PGconn *conn, Oid lobjId, char *filename)
|
||||
{
|
||||
int lobj_fd;
|
||||
char buf[BUFSIZE];
|
||||
@ -188,7 +188,7 @@ exportFile(PGconn * conn, Oid lobjId, char *filename)
|
||||
}
|
||||
|
||||
void
|
||||
exit_nicely(PGconn * conn)
|
||||
exit_nicely(PGconn *conn)
|
||||
{
|
||||
PQfinish(conn);
|
||||
exit(1);
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Header: /cvsroot/pgsql/src/test/regress/regress.c,v 1.12 1997/09/08 20:59:27 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/test/regress/regress.c,v 1.13 1997/09/08 21:56:01 momjian Exp $
|
||||
*/
|
||||
|
||||
#include <float.h> /* faked on sunos */
|
||||
@ -18,11 +18,11 @@
|
||||
|
||||
typedef void *TUPLE;
|
||||
|
||||
extern double *regress_dist_ptpath(Point * pt, PATH * path);
|
||||
extern double *regress_path_dist(PATH * p1, PATH * p2);
|
||||
extern PATH *poly2path(POLYGON * poly);
|
||||
extern Point *interpt_pp(PATH * p1, PATH * p2);
|
||||
extern void regress_lseg_construct(LSEG * lseg, Point * pt1, Point * pt2);
|
||||
extern double *regress_dist_ptpath(Point *pt, PATH *path);
|
||||
extern double *regress_path_dist(PATH *p1, PATH *p2);
|
||||
extern PATH *poly2path(POLYGON *poly);
|
||||
extern Point *interpt_pp(PATH *p1, PATH *p2);
|
||||
extern void regress_lseg_construct(LSEG *lseg, Point *pt1, Point *pt2);
|
||||
extern char overpaid(TUPLE tuple);
|
||||
extern int boxarea(BOX *box);
|
||||
extern char *reverse_c16(char *string);
|
||||
@ -203,7 +203,7 @@ typedef struct
|
||||
|
||||
WIDGET *widget_in(char *str);
|
||||
char *widget_out(WIDGET * widget);
|
||||
int pt_in_widget(Point * point, WIDGET * widget);
|
||||
int pt_in_widget(Point *point, WIDGET * widget);
|
||||
|
||||
#define NARGS 3
|
||||
|
||||
|
Reference in New Issue
Block a user