Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 3152ef6

Browse files
committed
Source alignment cleanups.
1 parent a952c79 commit 3152ef6

22 files changed

+676
-671
lines changed

src/interfaces/odbc/bind.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
/* Bind parameters on a statement handle */
3737

38-
RETCODE SQL_API
38+
RETCODE SQL_API
3939
SQLBindParameter(
4040
HSTMT hstmt,
4141
UWORD ipar,
@@ -156,7 +156,7 @@ SQLBindParameter(
156156
/* - - - - - - - - - */
157157

158158
/* Associate a user-supplied buffer with a database column. */
159-
RETCODE SQL_API
159+
RETCODE SQL_API
160160
SQLBindCol(
161161
HSTMT hstmt,
162162
UWORD icol,
@@ -267,7 +267,7 @@ SQLBindCol(
267267
/* it is best to say this function is not supported and let the application assume a */
268268
/* data type (most likely varchar). */
269269

270-
RETCODE SQL_API
270+
RETCODE SQL_API
271271
SQLDescribeParam(
272272
HSTMT hstmt,
273273
UWORD ipar,
@@ -321,7 +321,7 @@ SQLDescribeParam(
321321

322322
/* Sets multiple values (arrays) for the set of parameter markers. */
323323

324-
RETCODE SQL_API
324+
RETCODE SQL_API
325325
SQLParamOptions(
326326
HSTMT hstmt,
327327
UDWORD crow,
@@ -344,7 +344,7 @@ SQLParamOptions(
344344
/* like it does for SQLDescribeParam is that some applications don't care and try */
345345
/* to call it anyway. */
346346
/* If the statement does not have parameters, it should just return 0. */
347-
RETCODE SQL_API
347+
RETCODE SQL_API
348348
SQLNumParams(
349349
HSTMT hstmt,
350350
SWORD FAR *pcpar)

src/interfaces/odbc/columninfo.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ char CI_read_fields(ColumnInfoClass *self, ConnectionClass *conn);
3636

3737
/* functions for setting up the fields from within the program, */
3838
/* without reading from a socket */
39-
void CI_set_num_fields(ColumnInfoClass *self, int new_num_fields);
39+
void CI_set_num_fields(ColumnInfoClass *self, int new_num_fields);
4040
void CI_set_field_info(ColumnInfoClass *self, int field_num, char *new_name,
41-
Oid new_adtid, Int2 new_adtsize, Int4 atttypmod);
41+
Oid new_adtid, Int2 new_adtsize, Int4 atttypmod);
4242

4343

4444
#endif

src/interfaces/odbc/connection.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
extern GLOBAL_VALUES globals;
3535

3636

37-
RETCODE SQL_API
37+
RETCODE SQL_API
3838
SQLAllocConnect(
3939
HENV henv,
4040
HDBC FAR *phdbc)
@@ -75,7 +75,7 @@ SQLAllocConnect(
7575

7676
/* - - - - - - - - - */
7777

78-
RETCODE SQL_API
78+
RETCODE SQL_API
7979
SQLConnect(
8080
HDBC hdbc,
8181
UCHAR FAR *szDSN,
@@ -132,7 +132,7 @@ SQLConnect(
132132

133133
/* - - - - - - - - - */
134134

135-
RETCODE SQL_API
135+
RETCODE SQL_API
136136
SQLBrowseConnect(
137137
HDBC hdbc,
138138
UCHAR FAR *szConnStrIn,
@@ -151,7 +151,7 @@ SQLBrowseConnect(
151151
/* - - - - - - - - - */
152152

153153
/* Drop any hstmts open on hdbc and disconnect from database */
154-
RETCODE SQL_API
154+
RETCODE SQL_API
155155
SQLDisconnect(
156156
HDBC hdbc)
157157
{
@@ -191,7 +191,7 @@ SQLDisconnect(
191191

192192
/* - - - - - - - - - */
193193

194-
RETCODE SQL_API
194+
RETCODE SQL_API
195195
SQLFreeConnect(
196196
HDBC hdbc)
197197
{

src/interfaces/odbc/connection.h

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -200,26 +200,26 @@ struct col_info
200200
#endif
201201

202202
typedef BOOL (FAR WINAPI * DataSourceToDriverProc) (UDWORD,
203-
SWORD,
204-
PTR,
205-
SDWORD,
206-
PTR,
207-
SDWORD,
208-
SDWORD FAR *,
209-
UCHAR FAR *,
210-
SWORD,
211-
SWORD FAR *);
203+
SWORD,
204+
PTR,
205+
SDWORD,
206+
PTR,
207+
SDWORD,
208+
SDWORD FAR *,
209+
UCHAR FAR *,
210+
SWORD,
211+
SWORD FAR *);
212212

213213
typedef BOOL (FAR WINAPI * DriverToDataSourceProc) (UDWORD,
214-
SWORD,
215-
PTR,
216-
SDWORD,
217-
PTR,
218-
SDWORD,
219-
SDWORD FAR *,
220-
UCHAR FAR *,
221-
SWORD,
222-
SWORD FAR *);
214+
SWORD,
215+
PTR,
216+
SDWORD,
217+
PTR,
218+
SDWORD,
219+
SDWORD FAR *,
220+
UCHAR FAR *,
221+
SWORD,
222+
SWORD FAR *);
223223

224224
/******* The Connection handle ************/
225225
struct ConnectionClass_

src/interfaces/odbc/drvconn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ extern HINSTANCE NEAR s_hModule;/* Saved module handle. */
6565
extern GLOBAL_VALUES globals;
6666

6767

68-
RETCODE SQL_API
68+
RETCODE SQL_API
6969
SQLDriverConnect(
7070
HDBC hdbc,
7171
HWND hwnd,

src/interfaces/odbc/environ.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
ConnectionClass *conns[MAX_CONNECTIONS];
2323

2424

25-
RETCODE SQL_API
25+
RETCODE SQL_API
2626
SQLAllocEnv(HENV FAR *phenv)
2727
{
2828
static char *func = "SQLAllocEnv";
@@ -41,7 +41,7 @@ SQLAllocEnv(HENV FAR *phenv)
4141
return SQL_SUCCESS;
4242
}
4343

44-
RETCODE SQL_API
44+
RETCODE SQL_API
4545
SQLFreeEnv(HENV henv)
4646
{
4747
static char *func = "SQLFreeEnv";
@@ -62,7 +62,7 @@ SQLFreeEnv(HENV henv)
6262

6363
/* Returns the next SQL error information. */
6464

65-
RETCODE SQL_API
65+
RETCODE SQL_API
6666
SQLError(
6767
HENV henv,
6868
HDBC hdbc,

src/interfaces/odbc/execute.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ extern GLOBAL_VALUES globals;
3939

4040

4141
/* Perform a Prepare on the SQL statement */
42-
RETCODE SQL_API
42+
RETCODE SQL_API
4343
SQLPrepare(HSTMT hstmt,
4444
UCHAR FAR *szSqlStr,
4545
SDWORD cbSqlStr)
@@ -133,7 +133,7 @@ SQLPrepare(HSTMT hstmt,
133133

134134
/* Performs the equivalent of SQLPrepare, followed by SQLExecute. */
135135

136-
RETCODE SQL_API
136+
RETCODE SQL_API
137137
SQLExecDirect(
138138
HSTMT hstmt,
139139
UCHAR FAR *szSqlStr,
@@ -195,7 +195,7 @@ SQLExecDirect(
195195
}
196196

197197
/* Execute a prepared SQL statement */
198-
RETCODE SQL_API
198+
RETCODE SQL_API
199199
SQLExecute(
200200
HSTMT hstmt)
201201
{
@@ -326,7 +326,7 @@ SQLExecute(
326326

327327

328328
/* - - - - - - - - - */
329-
RETCODE SQL_API
329+
RETCODE SQL_API
330330
SQLTransact(
331331
HENV henv,
332332
HDBC hdbc,
@@ -408,7 +408,7 @@ SQLTransact(
408408

409409
/* - - - - - - - - - */
410410

411-
RETCODE SQL_API
411+
RETCODE SQL_API
412412
SQLCancel(
413413
HSTMT hstmt) /* Statement to cancel. */
414414
{
@@ -486,7 +486,7 @@ SQLCancel(
486486
/* Returns the SQL string as modified by the driver. */
487487
/* Currently, just copy the input string without modification */
488488
/* observing buffer limits and truncation. */
489-
RETCODE SQL_API
489+
RETCODE SQL_API
490490
SQLNativeSql(
491491
HDBC hdbc,
492492
UCHAR FAR *szSqlStrIn,
@@ -540,7 +540,7 @@ SQLNativeSql(
540540
/* Supplies parameter data at execution time. Used in conjuction with */
541541
/* SQLPutData. */
542542

543-
RETCODE SQL_API
543+
RETCODE SQL_API
544544
SQLParamData(
545545
HSTMT hstmt,
546546
PTR FAR *prgbValue)
@@ -651,7 +651,7 @@ SQLParamData(
651651
/* Supplies parameter data at execution time. Used in conjunction with */
652652
/* SQLParamData. */
653653

654-
RETCODE SQL_API
654+
RETCODE SQL_API
655655
SQLPutData(
656656
HSTMT hstmt,
657657
PTR rgbValue,

src/interfaces/odbc/gpps.h

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,22 @@ extern "C"
1717
{
1818
#endif
1919

20-
DWORD
21-
GetPrivateProfileString(char *theSection, /* section name */
22-
char *theKey, /* search key name */
23-
char *theDefault, /* default value if not
24-
* found */
25-
char *theReturnBuffer, /* return valuse stored
26-
* here */
27-
size_t theBufferLength, /* byte length of return
28-
* buffer */
29-
char *theIniFileName); /* pathname of ini file
30-
* to search */
31-
32-
DWORD
33-
WritePrivateProfileString(char *theSection, /* section name */
34-
char *theKey, /* write key name */
35-
char *theBuffer, /* input buffer */
36-
char *theIniFileName); /* pathname of ini file
37-
* to write */
20+
DWORD GetPrivateProfileString(char *theSection, /* section name */
21+
char *theKey, /* search key name */
22+
char *theDefault, /* default value if not
23+
* found */
24+
char *theReturnBuffer, /* return valuse stored
25+
* here */
26+
size_t theBufferLength, /* byte length of return
27+
* buffer */
28+
char *theIniFileName); /* pathname of ini file
29+
* to search */
30+
31+
DWORD WritePrivateProfileString(char *theSection, /* section name */
32+
char *theKey, /* write key name */
33+
char *theBuffer, /* input buffer */
34+
char *theIniFileName); /* pathname of ini file
35+
* to write */
3836

3937
#ifdef __cplusplus
4038
}

0 commit comments

Comments
 (0)