Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3152ef6

Browse files
committed
Source alignment cleanups.
1 parenta952c79 commit3152ef6

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-
RETCODESQL_API
38+
RETCODESQL_API
3939
SQLBindParameter(
4040
HSTMThstmt,
4141
UWORDipar,
@@ -156,7 +156,7 @@ SQLBindParameter(
156156
/*--------- */
157157

158158
/*Associate a user-supplied buffer with a database column. */
159-
RETCODESQL_API
159+
RETCODESQL_API
160160
SQLBindCol(
161161
HSTMThstmt,
162162
UWORDicol,
@@ -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-
RETCODESQL_API
270+
RETCODESQL_API
271271
SQLDescribeParam(
272272
HSTMThstmt,
273273
UWORDipar,
@@ -321,7 +321,7 @@ SQLDescribeParam(
321321

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

324-
RETCODESQL_API
324+
RETCODESQL_API
325325
SQLParamOptions(
326326
HSTMThstmt,
327327
UDWORDcrow,
@@ -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-
RETCODESQL_API
347+
RETCODESQL_API
348348
SQLNumParams(
349349
HSTMThstmt,
350350
SWORDFAR*pcpar)

‎src/interfaces/odbc/columninfo.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ charCI_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-
voidCI_set_num_fields(ColumnInfoClass*self,intnew_num_fields);
39+
voidCI_set_num_fields(ColumnInfoClass*self,intnew_num_fields);
4040
voidCI_set_field_info(ColumnInfoClass*self,intfield_num,char*new_name,
41-
Oidnew_adtid,Int2new_adtsize,Int4atttypmod);
41+
Oidnew_adtid,Int2new_adtsize,Int4atttypmod);
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
externGLOBAL_VALUESglobals;
3535

3636

37-
RETCODESQL_API
37+
RETCODESQL_API
3838
SQLAllocConnect(
3939
HENVhenv,
4040
HDBCFAR*phdbc)
@@ -75,7 +75,7 @@ SQLAllocConnect(
7575

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

78-
RETCODESQL_API
78+
RETCODESQL_API
7979
SQLConnect(
8080
HDBChdbc,
8181
UCHARFAR*szDSN,
@@ -132,7 +132,7 @@ SQLConnect(
132132

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

135-
RETCODESQL_API
135+
RETCODESQL_API
136136
SQLBrowseConnect(
137137
HDBChdbc,
138138
UCHARFAR*szConnStrIn,
@@ -151,7 +151,7 @@ SQLBrowseConnect(
151151
/*--------- */
152152

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

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

194-
RETCODESQL_API
194+
RETCODESQL_API
195195
SQLFreeConnect(
196196
HDBChdbc)
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
typedefBOOL (FARWINAPI*DataSourceToDriverProc) (UDWORD,
203-
SWORD,
204-
PTR,
205-
SDWORD,
206-
PTR,
207-
SDWORD,
208-
SDWORDFAR*,
209-
UCHARFAR*,
210-
SWORD,
211-
SWORDFAR*);
203+
SWORD,
204+
PTR,
205+
SDWORD,
206+
PTR,
207+
SDWORD,
208+
SDWORDFAR*,
209+
UCHARFAR*,
210+
SWORD,
211+
SWORDFAR*);
212212

213213
typedefBOOL (FARWINAPI*DriverToDataSourceProc) (UDWORD,
214-
SWORD,
215-
PTR,
216-
SDWORD,
217-
PTR,
218-
SDWORD,
219-
SDWORDFAR*,
220-
UCHARFAR*,
221-
SWORD,
222-
SWORDFAR*);
214+
SWORD,
215+
PTR,
216+
SDWORD,
217+
PTR,
218+
SDWORD,
219+
SDWORDFAR*,
220+
UCHARFAR*,
221+
SWORD,
222+
SWORDFAR*);
223223

224224
/*******The Connection handle************/
225225
structConnectionClass_

‎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
externGLOBAL_VALUESglobals;
6666

6767

68-
RETCODESQL_API
68+
RETCODESQL_API
6969
SQLDriverConnect(
7070
HDBChdbc,
7171
HWNDhwnd,

‎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-
RETCODESQL_API
25+
RETCODESQL_API
2626
SQLAllocEnv(HENVFAR*phenv)
2727
{
2828
staticchar*func="SQLAllocEnv";
@@ -41,7 +41,7 @@ SQLAllocEnv(HENV FAR *phenv)
4141
returnSQL_SUCCESS;
4242
}
4343

44-
RETCODESQL_API
44+
RETCODESQL_API
4545
SQLFreeEnv(HENVhenv)
4646
{
4747
staticchar*func="SQLFreeEnv";
@@ -62,7 +62,7 @@ SQLFreeEnv(HENV henv)
6262

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

65-
RETCODESQL_API
65+
RETCODESQL_API
6666
SQLError(
6767
HENVhenv,
6868
HDBChdbc,

‎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-
RETCODESQL_API
42+
RETCODESQL_API
4343
SQLPrepare(HSTMThstmt,
4444
UCHARFAR*szSqlStr,
4545
SDWORDcbSqlStr)
@@ -133,7 +133,7 @@ SQLPrepare(HSTMT hstmt,
133133

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

136-
RETCODESQL_API
136+
RETCODESQL_API
137137
SQLExecDirect(
138138
HSTMThstmt,
139139
UCHARFAR*szSqlStr,
@@ -195,7 +195,7 @@ SQLExecDirect(
195195
}
196196

197197
/*Execute a prepared SQL statement */
198-
RETCODESQL_API
198+
RETCODESQL_API
199199
SQLExecute(
200200
HSTMThstmt)
201201
{
@@ -326,7 +326,7 @@ SQLExecute(
326326

327327

328328
/*--------- */
329-
RETCODESQL_API
329+
RETCODESQL_API
330330
SQLTransact(
331331
HENVhenv,
332332
HDBChdbc,
@@ -408,7 +408,7 @@ SQLTransact(
408408

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

411-
RETCODESQL_API
411+
RETCODESQL_API
412412
SQLCancel(
413413
HSTMThstmt)/* 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-
RETCODESQL_API
489+
RETCODESQL_API
490490
SQLNativeSql(
491491
HDBChdbc,
492492
UCHARFAR*szSqlStrIn,
@@ -540,7 +540,7 @@ SQLNativeSql(
540540
/*Supplies parameter data at execution time.Used in conjuction with */
541541
/*SQLPutData. */
542542

543-
RETCODESQL_API
543+
RETCODESQL_API
544544
SQLParamData(
545545
HSTMThstmt,
546546
PTRFAR*prgbValue)
@@ -651,7 +651,7 @@ SQLParamData(
651651
/*Supplies parameter data at execution time.Used in conjunction with */
652652
/*SQLParamData. */
653653

654-
RETCODESQL_API
654+
RETCODESQL_API
655655
SQLPutData(
656656
HSTMThstmt,
657657
PTRrgbValue,

‎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_ttheBufferLength,/* 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+
DWORDGetPrivateProfileString(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_ttheBufferLength,/* byte length of return
27+
* buffer */
28+
char*theIniFileName);/* pathname of ini file
29+
* to search */
30+
31+
DWORDWritePrivateProfileString(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)

[8]ページ先頭

©2009-2025 Movatter.jp