aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces')
-rw-r--r--src/interfaces/ecpg/include/sqlca.h5
-rw-r--r--src/interfaces/libpq/fe-connect.c118
-rw-r--r--src/interfaces/libpq/fe-lobj.c21
-rw-r--r--src/interfaces/libpq/pqexpbuffer.c22
-rw-r--r--src/interfaces/odbc/dlg_specific.c4
-rw-r--r--src/interfaces/odbc/drvconn.c2
-rw-r--r--src/interfaces/odbc/multibyte.c4
-rw-r--r--src/interfaces/odbc/pgtypes.c150
-rw-r--r--src/interfaces/odbc/psqlodbc.c2
-rw-r--r--src/interfaces/odbc/results.c2
-rw-r--r--src/interfaces/odbc/setup.c10
11 files changed, 167 insertions, 173 deletions
diff --git a/src/interfaces/ecpg/include/sqlca.h b/src/interfaces/ecpg/include/sqlca.h
index 4d38c92334f..319a5bc59f1 100644
--- a/src/interfaces/ecpg/include/sqlca.h
+++ b/src/interfaces/ecpg/include/sqlca.h
@@ -35,9 +35,8 @@ extern "C"
/* stored into a host variable. */
/*
- * 2: if 'W' a (hopefully) non-fatal notice occured *//* 3:
- * empty
- */
+ * 2: if 'W' a (hopefully) non-fatal notice occured
+ *//* 3: empty */
/* 4: empty */
/* 5: empty */
/* 6: empty */
diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c
index 891e0752b42..6d07cb667f7 100644
--- a/src/interfaces/libpq/fe-connect.c
+++ b/src/interfaces/libpq/fe-connect.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.161 2001/03/22 04:01:25 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.162 2001/03/22 06:16:20 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -275,18 +275,16 @@ PQconnectStart(const char *conninfo)
PQconninfoOption *connOptions;
char *tmp;
- /* ----------
+ /*
* Allocate memory for the conn structure
- * ----------
*/
conn = makeEmptyPGconn();
if (conn == NULL)
return (PGconn *) NULL;
- /* ----------
+ /*
* Parse the conninfo string
- * ----------
*/
connOptions = conninfo_parse(conninfo, &conn->errorMessage);
if (connOptions == NULL)
@@ -320,15 +318,13 @@ PQconnectStart(const char *conninfo)
conn->require_ssl = tmp ? (tmp[0] == '1' ? true : false) : false;
#endif
- /* ----------
+ /*
* Free the option info - all is in conn now
- * ----------
*/
PQconninfoFree(connOptions);
- /* ----------
+ /*
* Allow unix socket specification in the host name
- * ----------
*/
if (conn->pghost && conn->pghost[0] == '/')
{
@@ -338,9 +334,8 @@ PQconnectStart(const char *conninfo)
conn->pghost = NULL;
}
- /* ----------
+ /*
* Connect to the database
- * ----------
*/
if (!connectDBStart(conn))
{
@@ -448,10 +443,9 @@ PQsetdbLogin(const char *pghost, const char *pgport, const char *pgoptions,
else
conn->pgport = strdup(pgport);
- /* ----------
- * We don't allow unix socket path as a function parameter.
- * This allows unix socket specification in the host name.
- * ----------
+ /*
+ * We don't allow unix socket path as a function parameter. This
+ * allows unix socket specification in the host name.
*/
if (conn->pghost && conn->pghost[0] == '/')
{
@@ -899,11 +893,11 @@ connectDBStart(PGconn *conn)
goto connect_errReturn;
}
- /* ----------
- * Set the right options. Normally, we need nonblocking I/O, and we don't
- * want delay of outgoing data for AF_INET sockets. If we are using SSL,
- * then we need the blocking I/O (XXX Can this be fixed?).
- * ---------- */
+ /*
+ * Set the right options. Normally, we need nonblocking I/O, and we
+ * don't want delay of outgoing data for AF_INET sockets. If we are
+ * using SSL, then we need the blocking I/O (XXX Can this be fixed?).
+ */
if (family == AF_INET)
{
@@ -911,16 +905,16 @@ connectDBStart(PGconn *conn)
goto connect_errReturn;
}
- /* ----------
- * Since I have no idea whether this is a valid thing to do under Windows
- * before a connection is made, and since I have no way of testing it, I
- * leave the code looking as below. When someone decides that they want
- * non-blocking connections under Windows, they can define
- * WIN32_NON_BLOCKING_CONNECTIONS before compilation. If it works, then
- * this code can be cleaned up.
+ /*
+ * Since I have no idea whether this is a valid thing to do under
+ * Windows before a connection is made, and since I have no way of
+ * testing it, I leave the code looking as below. When someone
+ * decides that they want non-blocking connections under Windows, they
+ * can define WIN32_NON_BLOCKING_CONNECTIONS before compilation. If
+ * it works, then this code can be cleaned up.
*
- * Ewan Mellor <eem21@cam.ac.uk>.
- * ---------- */
+ * Ewan Mellor <eem21@cam.ac.uk>.
+ */
#if (!defined(WIN32) || defined(WIN32_NON_BLOCKING_CONNECTIONS)) && !defined(USE_SSL)
if (connectMakeNonblocking(conn) == 0)
goto connect_errReturn;
@@ -1430,16 +1424,17 @@ keep_going: /* We will come back to here until there
case CONNECTION_AUTH_OK:
{
- /* ----------
+
+ /*
* Now we expect to hear from the backend. A ReadyForQuery
- * message indicates that startup is successful, but we might
- * also get an Error message indicating failure. (Notice
- * messages indicating nonfatal warnings are also allowed by
- * the protocol, as is a BackendKeyData message.) Easiest way
- * to handle this is to let PQgetResult() read the messages. We
- * just have to fake it out about the state of the connection,
- * by setting asyncStatus = PGASYNC_BUSY (done above).
- *----------
+ * message indicates that startup is successful, but we
+ * might also get an Error message indicating failure.
+ * (Notice messages indicating nonfatal warnings are also
+ * allowed by the protocol, as is a BackendKeyData
+ * message.) Easiest way to handle this is to let
+ * PQgetResult() read the messages. We just have to fake
+ * it out about the state of the connection, by setting
+ * asyncStatus = PGASYNC_BUSY (done above).
*/
if (PQisBusy(conn))
@@ -1522,13 +1517,13 @@ keep_going: /* We will come back to here until there
/* Unreachable */
error_return:
- /* ----------
- * We used to close the socket at this point, but that makes it awkward
- * for those above us if they wish to remove this socket from their
- * own records (an fd_set for example). We'll just have this socket
- * closed when PQfinish is called (which is compulsory even after an
- * error, since the connection structure must be freed).
- * ----------
+
+ /*
+ * We used to close the socket at this point, but that makes it
+ * awkward for those above us if they wish to remove this socket from
+ * their own records (an fd_set for example). We'll just have this
+ * socket closed when PQfinish is called (which is compulsory even
+ * after an error, since the connection structure must be freed).
*/
return PGRES_POLLING_FAILED;
}
@@ -2507,10 +2502,9 @@ conninfo_parse(const char *conninfo, PQExpBuffer errorMessage)
}
}
- /* ----------
- * Now we have the name and the value. Search
- * for the param record.
- * ----------
+ /*
+ * Now we have the name and the value. Search for the param
+ * record.
*/
for (option = options; option->keyword != NULL; option++)
{
@@ -2527,9 +2521,8 @@ conninfo_parse(const char *conninfo, PQExpBuffer errorMessage)
return NULL;
}
- /* ----------
+ /*
* Store the value
- * ----------
*/
if (option->val)
free(option->val);
@@ -2548,19 +2541,17 @@ conninfo_parse(const char *conninfo, PQExpBuffer errorMessage)
/* Done with the modifiable input string */
free(buf);
- /* ----------
- * Get the fallback resources for parameters not specified
- * in the conninfo string.
- * ----------
+ /*
+ * Get the fallback resources for parameters not specified in the
+ * conninfo string.
*/
for (option = options; option->keyword != NULL; option++)
{
if (option->val != NULL)
continue; /* Value was in conninfo */
- /* ----------
+ /*
* Try to get the environment variable fallback
- * ----------
*/
if (option->envvar != NULL)
{
@@ -2571,10 +2562,9 @@ conninfo_parse(const char *conninfo, PQExpBuffer errorMessage)
}
}
- /* ----------
- * No environment variable specified or this one isn't set -
- * try compiled in
- * ----------
+ /*
+ * No environment variable specified or this one isn't set - try
+ * compiled in
*/
if (option->compiled != NULL)
{
@@ -2582,9 +2572,8 @@ conninfo_parse(const char *conninfo, PQExpBuffer errorMessage)
continue;
}
- /* ----------
+ /*
* Special handling for user
- * ----------
*/
if (strcmp(option->keyword, "user") == 0)
{
@@ -2593,9 +2582,8 @@ conninfo_parse(const char *conninfo, PQExpBuffer errorMessage)
continue;
}
- /* ----------
+ /*
* Special handling for dbname
- * ----------
*/
if (strcmp(option->keyword, "dbname") == 0)
{
diff --git a/src/interfaces/libpq/fe-lobj.c b/src/interfaces/libpq/fe-lobj.c
index 9231c052432..0759f053a58 100644
--- a/src/interfaces/libpq/fe-lobj.c
+++ b/src/interfaces/libpq/fe-lobj.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-lobj.c,v 1.33 2001/02/10 02:31:30 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-lobj.c,v 1.34 2001/03/22 06:16:20 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -518,9 +518,8 @@ lo_initialize(PGconn *conn)
const char *fname;
Oid foid;
- /* ----------------
+ /*
* Allocate the structure to hold the functions OID's
- * ----------------
*/
lobjfuncs = (PGlobjfuncs *) malloc(sizeof(PGlobjfuncs));
if (lobjfuncs == (PGlobjfuncs *) NULL)
@@ -531,9 +530,8 @@ lo_initialize(PGconn *conn)
}
MemSet((char *) lobjfuncs, 0, sizeof(PGlobjfuncs));
- /* ----------------
+ /*
* Execute the query to get all the functions at once
- * ----------------
*/
res = PQexec(conn, "select proname, oid from pg_proc \
where proname = 'lo_open' \
@@ -559,9 +557,8 @@ lo_initialize(PGconn *conn)
return -1;
}
- /* ----------------
+ /*
* Examine the result and put the OID's into the struct
- * ----------------
*/
for (n = 0; n < PQntuples(res); n++)
{
@@ -587,10 +584,9 @@ lo_initialize(PGconn *conn)
PQclear(res);
- /* ----------------
- * Finally check that we really got all large object
- * interface functions.
- * ----------------
+ /*
+ * Finally check that we really got all large object interface
+ * functions.
*/
if (lobjfuncs->fn_lo_open == 0)
{
@@ -649,9 +645,8 @@ lo_initialize(PGconn *conn)
return -1;
}
- /* ----------------
+ /*
* Put the structure into the connection control
- * ----------------
*/
conn->lobjfuncs = lobjfuncs;
return 0;
diff --git a/src/interfaces/libpq/pqexpbuffer.c b/src/interfaces/libpq/pqexpbuffer.c
index eac5f41ddc6..ae54c5e371d 100644
--- a/src/interfaces/libpq/pqexpbuffer.c
+++ b/src/interfaces/libpq/pqexpbuffer.c
@@ -17,7 +17,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Header: /cvsroot/pgsql/src/interfaces/libpq/pqexpbuffer.c,v 1.9 2001/02/10 02:31:30 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/libpq/pqexpbuffer.c,v 1.10 2001/03/22 06:16:20 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -173,11 +173,11 @@ printfPQExpBuffer(PQExpBuffer str, const char *fmt,...)
for (;;)
{
- /*----------
- * Try to format the given string into the available space;
- * but if there's hardly any space, don't bother trying,
- * just fall through to enlarge the buffer first.
- *----------
+
+ /*
+ * Try to format the given string into the available space; but if
+ * there's hardly any space, don't bother trying, just fall
+ * through to enlarge the buffer first.
*/
if (str->maxlen > str->len + 16)
{
@@ -222,11 +222,11 @@ appendPQExpBuffer(PQExpBuffer str, const char *fmt,...)
for (;;)
{
- /*----------
- * Try to format the given string into the available space;
- * but if there's hardly any space, don't bother trying,
- * just fall through to enlarge the buffer first.
- *----------
+
+ /*
+ * Try to format the given string into the available space; but if
+ * there's hardly any space, don't bother trying, just fall
+ * through to enlarge the buffer first.
*/
if (str->maxlen > str->len + 16)
{
diff --git a/src/interfaces/odbc/dlg_specific.c b/src/interfaces/odbc/dlg_specific.c
index a0d71547b7c..2a933ee852f 100644
--- a/src/interfaces/odbc/dlg_specific.c
+++ b/src/interfaces/odbc/dlg_specific.c
@@ -87,7 +87,7 @@ GetDlgStuff(HWND hdlg, ConnInfo *ci)
-int CALLBACK
+int CALLBACK
driver_optionsProc(HWND hdlg,
WORD wMsg,
WPARAM wParam,
@@ -235,7 +235,7 @@ driver_optionsProc(HWND hdlg,
return FALSE;
}
-int CALLBACK
+int CALLBACK
ds_optionsProc(HWND hdlg,
WORD wMsg,
WPARAM wParam,
diff --git a/src/interfaces/odbc/drvconn.c b/src/interfaces/odbc/drvconn.c
index 1f5560198a1..da3b71390aa 100644
--- a/src/interfaces/odbc/drvconn.c
+++ b/src/interfaces/odbc/drvconn.c
@@ -270,7 +270,7 @@ dconn_DoDialog(HWND hwnd, ConnInfo *ci)
}
-BOOL FAR PASCAL
+BOOL FAR PASCAL
dconn_FDriverConnectProc(
HWND hdlg,
UINT wMsg,
diff --git a/src/interfaces/odbc/multibyte.c b/src/interfaces/odbc/multibyte.c
index 19acb5bd60e..efbcee0b507 100644
--- a/src/interfaces/odbc/multibyte.c
+++ b/src/interfaces/odbc/multibyte.c
@@ -48,7 +48,7 @@ multibyte_strchr(unsigned char *s, unsigned char c)
}
break;
default:
- mb_st = 0;
+ mb_st = 0;
}
i++;
}
@@ -117,7 +117,7 @@ multibyte_char_check(unsigned char s)
}
break;
default:
- multibyte_status = 0;
+ multibyte_status = 0;
}
#ifdef _DEBUG
qlog("multibyte_client_encoding = %d s = 0x%02X multibyte_stat = %d\n", multibyte_client_encoding, s, multibyte_status);
diff --git a/src/interfaces/odbc/pgtypes.c b/src/interfaces/odbc/pgtypes.c
index a70d989e667..b35197c116c 100644
--- a/src/interfaces/odbc/pgtypes.c
+++ b/src/interfaces/odbc/pgtypes.c
@@ -200,11 +200,12 @@ pgtype_to_sqltype(StatementClass *stmt, Int4 type)
{
switch (type)
{
- case PG_TYPE_CHAR:
- case PG_TYPE_CHAR2:
- case PG_TYPE_CHAR4:
- case PG_TYPE_CHAR8:
- case PG_TYPE_NAME:return SQL_CHAR;
+ case PG_TYPE_CHAR:
+ case PG_TYPE_CHAR2:
+ case PG_TYPE_CHAR4:
+ case PG_TYPE_CHAR8:
+ case PG_TYPE_NAME:
+ return SQL_CHAR;
case PG_TYPE_BPCHAR:
return SQL_CHAR;
@@ -272,7 +273,8 @@ pgtype_to_ctype(StatementClass *stmt, Int4 type)
{
switch (type)
{
- case PG_TYPE_INT8:return SQL_C_CHAR;
+ case PG_TYPE_INT8:
+ return SQL_C_CHAR;
case PG_TYPE_NUMERIC:
return SQL_C_CHAR;
case PG_TYPE_INT2:
@@ -536,7 +538,8 @@ pgtype_precision(StatementClass *stmt, Int4 type, int col, int handle_unknown_si
switch (type)
{
- case PG_TYPE_CHAR:return 1;
+ case PG_TYPE_CHAR:
+ return 1;
case PG_TYPE_CHAR2:
return 2;
case PG_TYPE_CHAR4:
@@ -601,7 +604,8 @@ pgtype_display_size(StatementClass *stmt, Int4 type, int col, int handle_unknown
switch (type)
{
- case PG_TYPE_INT2:return 6;
+ case PG_TYPE_INT2:
+ return 6;
case PG_TYPE_OID:
case PG_TYPE_XID:
@@ -641,7 +645,8 @@ pgtype_length(StatementClass *stmt, Int4 type, int col, int handle_unknown_size_
switch (type)
{
- case PG_TYPE_INT2:return 2;
+ case PG_TYPE_INT2:
+ return 2;
case PG_TYPE_OID:
case PG_TYPE_XID:
@@ -683,23 +688,24 @@ pgtype_scale(StatementClass *stmt, Int4 type, int col)
switch (type)
{
- case PG_TYPE_INT2:
- case PG_TYPE_OID:
- case PG_TYPE_XID:
- case PG_TYPE_INT4:
- case PG_TYPE_INT8:
- case PG_TYPE_FLOAT4:
- case PG_TYPE_FLOAT8:
- case PG_TYPE_MONEY:
- case PG_TYPE_BOOL:
+ case PG_TYPE_INT2:
+ case PG_TYPE_OID:
+ case PG_TYPE_XID:
+ case PG_TYPE_INT4:
+ case PG_TYPE_INT8:
+ case PG_TYPE_FLOAT4:
+ case PG_TYPE_FLOAT8:
+ case PG_TYPE_MONEY:
+ case PG_TYPE_BOOL:
/*
* Number of digits to the right of the decimal point in
* "yyyy-mm=dd hh:mm:ss[.f...]"
*/
- case PG_TYPE_ABSTIME:
- case PG_TYPE_DATETIME:
- case PG_TYPE_TIMESTAMP:return 0;
+ case PG_TYPE_ABSTIME:
+ case PG_TYPE_DATETIME:
+ case PG_TYPE_TIMESTAMP:
+ return 0;
case PG_TYPE_NUMERIC:
return getNumericScale(stmt, type, col);
@@ -715,14 +721,15 @@ pgtype_radix(StatementClass *stmt, Int4 type)
{
switch (type)
{
- case PG_TYPE_INT2:
- case PG_TYPE_OID:
- case PG_TYPE_INT4:
- case PG_TYPE_INT8:
- case PG_TYPE_NUMERIC:
- case PG_TYPE_FLOAT4:
- case PG_TYPE_MONEY:
- case PG_TYPE_FLOAT8:return 10;
+ case PG_TYPE_INT2:
+ case PG_TYPE_OID:
+ case PG_TYPE_INT4:
+ case PG_TYPE_INT8:
+ case PG_TYPE_NUMERIC:
+ case PG_TYPE_FLOAT4:
+ case PG_TYPE_MONEY:
+ case PG_TYPE_FLOAT8:
+ return 10;
default:
return -1;
@@ -741,22 +748,23 @@ pgtype_auto_increment(StatementClass *stmt, Int4 type)
switch (type)
{
- case PG_TYPE_INT2:
- case PG_TYPE_OID:
- case PG_TYPE_XID:
- case PG_TYPE_INT4:
- case PG_TYPE_FLOAT4:
- case PG_TYPE_MONEY:
- case PG_TYPE_BOOL:
- case PG_TYPE_FLOAT8:
- case PG_TYPE_INT8:
- case PG_TYPE_NUMERIC:
+ case PG_TYPE_INT2:
+ case PG_TYPE_OID:
+ case PG_TYPE_XID:
+ case PG_TYPE_INT4:
+ case PG_TYPE_FLOAT4:
+ case PG_TYPE_MONEY:
+ case PG_TYPE_BOOL:
+ case PG_TYPE_FLOAT8:
+ case PG_TYPE_INT8:
+ case PG_TYPE_NUMERIC:
- case PG_TYPE_DATE:
- case PG_TYPE_TIME:
- case PG_TYPE_ABSTIME:
- case PG_TYPE_DATETIME:
- case PG_TYPE_TIMESTAMP:return FALSE;
+ case PG_TYPE_DATE:
+ case PG_TYPE_TIME:
+ case PG_TYPE_ABSTIME:
+ case PG_TYPE_DATETIME:
+ case PG_TYPE_TIMESTAMP:
+ return FALSE;
default:
return -1;
@@ -768,16 +776,17 @@ pgtype_case_sensitive(StatementClass *stmt, Int4 type)
{
switch (type)
{
- case PG_TYPE_CHAR:
+ case PG_TYPE_CHAR:
- case PG_TYPE_CHAR2:
- case PG_TYPE_CHAR4:
- case PG_TYPE_CHAR8:
+ case PG_TYPE_CHAR2:
+ case PG_TYPE_CHAR4:
+ case PG_TYPE_CHAR8:
- case PG_TYPE_VARCHAR:
- case PG_TYPE_BPCHAR:
- case PG_TYPE_TEXT:
- case PG_TYPE_NAME:return TRUE;
+ case PG_TYPE_VARCHAR:
+ case PG_TYPE_BPCHAR:
+ case PG_TYPE_TEXT:
+ case PG_TYPE_NAME:
+ return TRUE;
default:
return FALSE;
@@ -789,7 +798,8 @@ pgtype_money(StatementClass *stmt, Int4 type)
{
switch (type)
{
- case PG_TYPE_MONEY:return TRUE;
+ case PG_TYPE_MONEY:
+ return TRUE;
default:
return FALSE;
}
@@ -800,15 +810,16 @@ pgtype_searchable(StatementClass *stmt, Int4 type)
{
switch (type)
{
- case PG_TYPE_CHAR:
- case PG_TYPE_CHAR2:
- case PG_TYPE_CHAR4:
- case PG_TYPE_CHAR8:
+ case PG_TYPE_CHAR:
+ case PG_TYPE_CHAR2:
+ case PG_TYPE_CHAR4:
+ case PG_TYPE_CHAR8:
- case PG_TYPE_VARCHAR:
- case PG_TYPE_BPCHAR:
- case PG_TYPE_TEXT:
- case PG_TYPE_NAME:return SQL_SEARCHABLE;
+ case PG_TYPE_VARCHAR:
+ case PG_TYPE_BPCHAR:
+ case PG_TYPE_TEXT:
+ case PG_TYPE_NAME:
+ return SQL_SEARCHABLE;
default:
return SQL_ALL_EXCEPT_LIKE;
@@ -820,8 +831,9 @@ pgtype_unsigned(StatementClass *stmt, Int4 type)
{
switch (type)
{
- case PG_TYPE_OID:
- case PG_TYPE_XID:return TRUE;
+ case PG_TYPE_OID:
+ case PG_TYPE_XID:
+ return TRUE;
case PG_TYPE_INT2:
case PG_TYPE_INT4:
@@ -899,12 +911,12 @@ sqltype_to_default_ctype(Int2 sqltype)
/* (Appendix D) */
switch (sqltype)
{
- case SQL_CHAR:
- case SQL_VARCHAR:
- case SQL_LONGVARCHAR:
- case SQL_DECIMAL:
- case SQL_NUMERIC:
- case SQL_BIGINT:
+ case SQL_CHAR:
+ case SQL_VARCHAR:
+ case SQL_LONGVARCHAR:
+ case SQL_DECIMAL:
+ case SQL_NUMERIC:
+ case SQL_BIGINT:
return SQL_C_CHAR;
case SQL_BIT:
diff --git a/src/interfaces/odbc/psqlodbc.c b/src/interfaces/odbc/psqlodbc.c
index 95ef452cbc5..455967fcc7a 100644
--- a/src/interfaces/odbc/psqlodbc.c
+++ b/src/interfaces/odbc/psqlodbc.c
@@ -39,7 +39,7 @@ RETCODE SQL_API SQLDummyOrdinal(void);
HINSTANCE NEAR s_hModule; /* Saved module handle. */
/* This is where the Driver Manager attaches to this Driver */
-BOOL WINAPI
+BOOL WINAPI
DllMain(HANDLE hInst, ULONG ul_reason_for_call, LPVOID lpReserved)
{
WORD wVersionRequested;
diff --git a/src/interfaces/odbc/results.c b/src/interfaces/odbc/results.c
index 781982ed4ce..e5cc92c87df 100644
--- a/src/interfaces/odbc/results.c
+++ b/src/interfaces/odbc/results.c
@@ -423,7 +423,7 @@ SQLColAttributes(
icol--;
unknown_sizes = globals.unknown_sizes; /* atoi(ci->unknown_sizes);
- * */
+ * */
if (unknown_sizes == UNKNOWNS_AS_DONTKNOW) /* not appropriate for
* SQLColAttributes() */
unknown_sizes = UNKNOWNS_AS_MAX;
diff --git a/src/interfaces/odbc/setup.c b/src/interfaces/odbc/setup.c
index d4950da32cb..1679ad033a8 100644
--- a/src/interfaces/odbc/setup.c
+++ b/src/interfaces/odbc/setup.c
@@ -74,7 +74,7 @@ BOOL INTFUNC SetDSNAttributes(HWND hwnd, LPSETUPDLG lpsetupdlg);
Output : TRUE success, FALSE otherwise
--------------------------------------------------------------------------*/
-BOOL CALLBACK
+BOOL CALLBACK
ConfigDSN(HWND hwnd,
WORD fRequest,
LPCSTR lpszDriver,
@@ -154,7 +154,7 @@ ConfigDSN(HWND hwnd,
Input : hdlg -- Dialog window handle
Output : None
--------------------------------------------------------------------------*/
-void INTFUNC
+void INTFUNC
CenterDialog(HWND hdlg)
{
HWND hwndFrame;
@@ -209,7 +209,7 @@ CenterDialog(HWND hdlg)
--------------------------------------------------------------------------*/
-int CALLBACK
+int CALLBACK
ConfigDlgProc(HWND hdlg,
WORD wMsg,
WPARAM wParam,
@@ -345,7 +345,7 @@ ConfigDlgProc(HWND hdlg,
Input : lpszAttributes - Pointer to attribute string
Output : None (global aAttr normally updated)
--------------------------------------------------------------------------*/
-void INTFUNC
+void INTFUNC
ParseAttributes(LPCSTR lpszAttributes, LPSETUPDLG lpsetupdlg)
{
LPCSTR lpsz;
@@ -399,7 +399,7 @@ ParseAttributes(LPCSTR lpszAttributes, LPSETUPDLG lpsetupdlg)
Output : TRUE if successful, FALSE otherwise
--------------------------------------------------------------------------*/
-BOOL INTFUNC
+BOOL INTFUNC
SetDSNAttributes(HWND hwndParent, LPSETUPDLG lpsetupdlg)
{
LPCSTR lpszDSN; /* Pointer to data source name */