Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
571d1216
Commit
571d1216
authored
Oct 28, 1998
by
Thomas G. Lockhart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix macro declarations to allow disabling mylog() and qlog() on Unix boxes.
Fix spelling of "DIRSEPARATOR".
parent
f4ccb5e1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
19 deletions
+27
-19
src/interfaces/odbc/misc.c
src/interfaces/odbc/misc.c
+1
-1
src/interfaces/odbc/misc.h
src/interfaces/odbc/misc.h
+26
-18
No files found.
src/interfaces/odbc/misc.c
View file @
571d1216
...
@@ -44,7 +44,7 @@ generate_filename(char* dirname,char* prefix,char* filename)
...
@@ -44,7 +44,7 @@ generate_filename(char* dirname,char* prefix,char* filename)
return
;
return
;
strcpy
(
filename
,
dirname
);
strcpy
(
filename
,
dirname
);
strcat
(
filename
,
DIRSEP
E
RATOR
);
strcat
(
filename
,
DIRSEP
A
RATOR
);
if
(
prefix
!=
0
)
if
(
prefix
!=
0
)
strcat
(
filename
,
prefix
);
strcat
(
filename
,
prefix
);
#ifndef WIN32
#ifndef WIN32
...
...
src/interfaces/odbc/misc.h
View file @
571d1216
...
@@ -39,33 +39,41 @@
...
@@ -39,33 +39,41 @@
#ifdef MY_LOG
#ifdef MY_LOG
#define MYLOGFILE "mylog_"
#define MYLOGFILE "mylog_"
#ifndef WIN32
#ifndef WIN32
#define MYLOGDIR "/tmp"
#define MYLOGDIR "/tmp"
#else
#else
#define MYLOGDIR "c:"
#define MYLOGDIR "c:"
#endif
#endif
void
mylog
();
/* prototype */
void
mylog
();
/* prototype */
#else
#else
#define mylog // mylog
#ifndef WIN32
#define mylog(args...)
/* GNU convention for variable arguments */
#else
#define mylog // mylog
#endif
#endif
#endif
#ifdef Q_LOG
#ifdef Q_LOG
#define QLOGFILE "psqlodbc_"
#define QLOGFILE "psqlodbc_"
#ifndef WIN32
#ifndef WIN32
#define QLOGDIR "/tmp"
#define QLOGDIR "/tmp"
#else
#else
#define QLOGDIR "c:"
#define QLOGDIR "c:"
#endif
#endif
void
qlog
();
/* prototype */
void
qlog
();
/* prototype */
#else
#else
#define qlog // qlog
#ifndef WIN32
#define qlog(args...)
/* GNU convention for variable arguments */
#else
#define qlog // qlog
#endif
#endif
#endif
#ifndef WIN32
#ifndef WIN32
#define DIRSEP
E
RATOR "/"
#define DIRSEP
A
RATOR "/"
#else
#else
#define DIRSEP
E
RATOR "\\"
#define DIRSEP
A
RATOR "\\"
#endif
#endif
void
remove_newlines
(
char
*
string
);
void
remove_newlines
(
char
*
string
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment