summaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/lib
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2001-10-28 06:26:15 +0000
committerBruce Momjian <bruce@momjian.us>2001-10-28 06:26:15 +0000
commit6783b2372ef13c141649840a836ff0a954ea1d4d (patch)
tree81c727b2b08930bcf3ab7107c84ef59f1f68a78d /src/interfaces/ecpg/lib
parentc29797deeb5dfca61b8959344b682b4c32fe53a1 (diff)
downloadpostgresql-6783b2372ef13c141649840a836ff0a954ea1d4d.tar.gz
Another pgindent run. Fixes enum indenting, and improves #endif
spacing. Also adds space for one-line comments.
Diffstat (limited to 'src/interfaces/ecpg/lib')
-rw-r--r--src/interfaces/ecpg/lib/execute.c10
-rw-r--r--src/interfaces/ecpg/lib/misc.c8
-rw-r--r--src/interfaces/ecpg/lib/pg_type.h3
-rw-r--r--src/interfaces/ecpg/lib/prepare.c4
-rw-r--r--src/interfaces/ecpg/lib/typename.c8
5 files changed, 17 insertions, 16 deletions
diff --git a/src/interfaces/ecpg/lib/execute.c b/src/interfaces/ecpg/lib/execute.c
index e9454ec215..a979b55447 100644
--- a/src/interfaces/ecpg/lib/execute.c
+++ b/src/interfaces/ecpg/lib/execute.c
@@ -1,4 +1,4 @@
-/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/execute.c,v 1.29 2001/10/25 05:50:11 momjian Exp $ */
+/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/execute.c,v 1.30 2001/10/28 06:26:11 momjian Exp $ */
/*
* The aim is to get a simpler inteface to the database routines.
@@ -32,9 +32,9 @@ struct sqlca sqlca =
{
{
'S', 'Q', 'L', 'C', 'A', ' ', ' ', ' '
- } ,
- sizeof(struct sqlca),
- 0,
+ },
+ sizeof(struct sqlca),
+ 0,
{
0,
{
@@ -76,7 +76,7 @@ static struct auto_mem
{
void *pointer;
struct auto_mem *next;
-} *auto_allocs = NULL;
+} *auto_allocs = NULL;
static void
add_mem(void *ptr, int lineno)
diff --git a/src/interfaces/ecpg/lib/misc.c b/src/interfaces/ecpg/lib/misc.c
index a37cd7ceb6..47bb1824c2 100644
--- a/src/interfaces/ecpg/lib/misc.c
+++ b/src/interfaces/ecpg/lib/misc.c
@@ -1,4 +1,4 @@
-/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/misc.c,v 1.7 2001/10/25 05:50:12 momjian Exp $ */
+/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/misc.c,v 1.8 2001/10/28 06:26:11 momjian Exp $ */
#include "postgres_fe.h"
@@ -13,9 +13,9 @@ static struct sqlca sqlca_init =
{
{
'S', 'Q', 'L', 'C', 'A', ' ', ' ', ' '
- } ,
- sizeof(struct sqlca),
- 0,
+ },
+ sizeof(struct sqlca),
+ 0,
{
0,
{
diff --git a/src/interfaces/ecpg/lib/pg_type.h b/src/interfaces/ecpg/lib/pg_type.h
index 5961dc23c6..cd2c5273f4 100644
--- a/src/interfaces/ecpg/lib/pg_type.h
+++ b/src/interfaces/ecpg/lib/pg_type.h
@@ -8,7 +8,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pg_type.h,v 1.3 2001/10/25 05:50:12 momjian Exp $
+ * $Id: pg_type.h,v 1.4 2001/10/28 06:26:11 momjian Exp $
*
* NOTES
* the genbki.sh script reads this file and generates .bki
@@ -68,4 +68,5 @@
#define ZPBITOID 1560
#define VARBITOID 1562
#define NUMERICOID 1700
+
#endif /* PG_TYPE_H */
diff --git a/src/interfaces/ecpg/lib/prepare.c b/src/interfaces/ecpg/lib/prepare.c
index 4efd31da09..e6898b0be0 100644
--- a/src/interfaces/ecpg/lib/prepare.c
+++ b/src/interfaces/ecpg/lib/prepare.c
@@ -1,4 +1,4 @@
-/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/prepare.c,v 1.8 2001/10/05 17:37:07 meskes Exp $ */
+/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/prepare.c,v 1.9 2001/10/28 06:26:11 momjian Exp $ */
#include "postgres_fe.h"
@@ -15,7 +15,7 @@ static struct prepared_statement
char *name;
struct statement *stmt;
struct prepared_statement *next;
-} *prep_stmts = NULL;
+} *prep_stmts = NULL;
static bool
isvarchar(unsigned char c)
diff --git a/src/interfaces/ecpg/lib/typename.c b/src/interfaces/ecpg/lib/typename.c
index 48747e2c71..e4ffcc77d8 100644
--- a/src/interfaces/ecpg/lib/typename.c
+++ b/src/interfaces/ecpg/lib/typename.c
@@ -1,4 +1,4 @@
-/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/typename.c,v 1.20 2001/10/25 05:50:12 momjian Exp $ */
+/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/typename.c,v 1.21 2001/10/28 06:26:11 momjian Exp $ */
#include "postgres_fe.h"
@@ -59,11 +59,11 @@ ECPGDynamicType(Oid type)
switch (type)
{
case BOOLOID:
- return SQL3_BOOLEAN; /* bool */
+ return SQL3_BOOLEAN; /* bool */
case INT2OID:
return SQL3_SMALLINT; /* int2 */
case INT4OID:
- return SQL3_INTEGER; /* int4 */
+ return SQL3_INTEGER; /* int4 */
case TEXTOID:
return SQL3_CHARACTER; /* text */
case FLOAT4OID:
@@ -81,7 +81,7 @@ ECPGDynamicType(Oid type)
case TIMESTAMPOID:
return SQL3_DATE_TIME_TIMESTAMP; /* datetime */
case NUMERICOID:
- return SQL3_NUMERIC; /* numeric */
+ return SQL3_NUMERIC; /* numeric */
default:
return -type;
}