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

Commit571d121

Browse files
author
Thomas G. Lockhart
committed
Fix macro declarations to allow disabling mylog() and qlog() on Unix boxes.
Fix spelling of "DIRSEPARATOR".
1 parentf4ccb5e commit571d121

File tree

2 files changed

+27
-19
lines changed

2 files changed

+27
-19
lines changed

‎src/interfaces/odbc/misc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ generate_filename(char* dirname,char* prefix,char* filename)
4444
return;
4545

4646
strcpy(filename,dirname);
47-
strcat(filename,DIRSEPERATOR);
47+
strcat(filename,DIRSEPARATOR);
4848
if(prefix!=0)
4949
strcat(filename,prefix);
5050
#ifndefWIN32

‎src/interfaces/odbc/misc.h

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -39,33 +39,41 @@
3939

4040

4141
#ifdefMY_LOG
42-
#defineMYLOGFILE"mylog_"
43-
#ifndefWIN32
44-
#defineMYLOGDIR"/tmp"
45-
#else
46-
#defineMYLOGDIR"c:"
47-
#endif
48-
voidmylog();/* prototype */
42+
#defineMYLOGFILE"mylog_"
43+
#ifndefWIN32
44+
#defineMYLOGDIR"/tmp"
45+
#else
46+
#defineMYLOGDIR"c:"
47+
#endif
48+
voidmylog();/* prototype */
4949
#else
50-
#definemylog// mylog
50+
#ifndefWIN32
51+
#definemylog(args...)/* GNU convention for variable arguments */
52+
#else
53+
#definemylog// mylog
54+
#endif
5155
#endif
5256

5357
#ifdefQ_LOG
54-
#defineQLOGFILE"psqlodbc_"
55-
#ifndefWIN32
56-
#defineQLOGDIR"/tmp"
57-
#else
58-
#defineQLOGDIR"c:"
59-
#endif
60-
voidqlog();/* prototype */
58+
#defineQLOGFILE"psqlodbc_"
59+
#ifndefWIN32
60+
#defineQLOGDIR"/tmp"
61+
#else
62+
#defineQLOGDIR"c:"
63+
#endif
64+
voidqlog();/* prototype */
6165
#else
62-
#defineqlog// qlog
66+
#ifndefWIN32
67+
#defineqlog(args...)/* GNU convention for variable arguments */
68+
#else
69+
#defineqlog// qlog
70+
#endif
6371
#endif
6472

6573
#ifndefWIN32
66-
#defineDIRSEPERATOR"/"
74+
#defineDIRSEPARATOR"/"
6775
#else
68-
#defineDIRSEPERATOR"\\"
76+
#defineDIRSEPARATOR"\\"
6977
#endif
7078

7179
voidremove_newlines(char*string);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp