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
7cebfdf2
Commit
7cebfdf2
authored
Apr 29, 2005
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backpatch BCC compile changes to 8.0.X for psql.
parent
18b5ef5a
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
243 additions
and
218 deletions
+243
-218
src/bin/psql/bcc32.mak
src/bin/psql/bcc32.mak
+106
-66
src/bin/psql/command.c
src/bin/psql/command.c
+5
-1
src/bin/psql/startup.c
src/bin/psql/startup.c
+2
-2
src/bin/psql/win32.mak
src/bin/psql/win32.mak
+36
-38
src/interfaces/libpq/Makefile
src/interfaces/libpq/Makefile
+3
-2
src/interfaces/libpq/bcc32.mak
src/interfaces/libpq/bcc32.mak
+53
-43
src/interfaces/libpq/fe-exec.c
src/interfaces/libpq/fe-exec.c
+2
-2
src/interfaces/libpq/pthread-win32.c
src/interfaces/libpq/pthread-win32.c
+2
-2
src/interfaces/libpq/win32.mak
src/interfaces/libpq/win32.mak
+34
-62
No files found.
src/bin/psql/bcc32.mak
View file @
7cebfdf2
# Makefile for Borland C++ 5.5
# Borland C++ base install directory goes here
# BCB=d:\Borland\Bcc55
# BCB=c:\Borland\Bcc55
!IF
"$(BCB)"
==
""
!MESSAGE
You
must
edit
bcc32.mak
and
define
BCB
at
the
top
!ERROR
missing
BCB
!ENDIF
!IF
"$(__NMAKE__)"
==
""
!MESSAGE
You
must
use
the
-N
compatibility
flag,
e.g.
make
-N
-f
bcc32.make
!ERROR
missing
-N
!ENDIF
!MESSAGE
Building
PSQL.EXE
...
!MESSAGE
...
...
@@ -19,7 +30,7 @@ CFG=Release
!MESSAGE
You
can
specify
a
configuration
when
running
MAKE
!MESSAGE by defining the macro CFG on the command line. For example
:
!MESSAGE
!MESSAGE
make
-DCFG
=[
Release | Debug] /
f bcc32.mak
!MESSAGE
make
-N
-DCFG
=[
Release | Debug]
-
f
bcc32.mak
!MESSAGE
!MESSAGE Possible choices for configuration are
:
!MESSAGE
...
...
@@ -49,10 +60,29 @@ INTDIR=.\Release
!
endif
REFDOCDIR
=
../../../doc/src/sgml/ref
CPP_PROJ
=
-I
$(BCB)
\i
nclude
;
..
\.
.
\i
nclude
;
..
\.
.
\i
nterfaces
\l
ibpq
;
..
\.
.
\i
nclude
\p
ort
\w
in32
\
-c
-D
$(USERDEFINES)
-DFRONTEND
-n
"
$(INTDIR)
"
-tWM
-tWC
-q
-5
-a8
-pc
-X
-w-use
\
-w-par
-w-pia
-w-csu
-w-aus
-w-ccc
!IFDEF
DEBUG
CPP_PROJ
=
$(CPP_PROJ)
-Od
-r-
-k
-v
-y
-vi-
-D_DEBUG
LIBPG_DIR
=
Debug
!ELSE
CPP_PROJ
=
$(CPP_PROJ)
-O
-Oi
-OS
-DNDEBUG
LIBPG_DIR
=
Release
!ENDIF
!IFDEF
DLL_LIBS
CPP_PROJ
=
$(CPP_PROJ)
-D_RTLDLL
LIBRARIES
=
cw32mti.lib ..
\.
.
\i
nterfaces
\l
ibpq
\$
(
LIBPG_DIR
)
\b
libpqdll.lib
!ELSE
CPP_PROJ
=
$(CPP_PROJ)
-DBCC32_STATIC
LIBRARIES
=
cw32mt.lib ..
\.
.
\i
nterfaces
\l
ibpq
\$
(
LIBPG_DIR
)
\b
libpq.lib
!ENDIF
.path.obj
=
$(INTDIR)
.c.obj
:
$(CPP)
-o
"
$(INTDIR)
\$
&"
$(CPP_PROJ)
$<
USERDEFINES
=
WIN32
;
_CONSOLE
;
_MBCS
;
HAVE_STRDUP
ALL
:
sql_help.h psqlscan.c "..
\.
.
\p
ort
\p
g_config_paths.h" "$(OUTDIR)
\p
sql.exe"
...
...
@@ -86,68 +116,51 @@ CLEAN :
-
@erase
"
$(OUTDIR)
\p
sql.exe"
-
@erase
"
$(INTDIR)
\.
.
\.
.
\p
ort
\p
g_config_paths.h"
"..\..\port\pg_config_paths.h"
:
win32.mak
echo
#define PGBINDIR "" >$@
echo
#define PGSHAREDIR "" >>$@
echo
#define SYSCONFDIR "" >>$@
echo
#define INCLUDEDIR "" >>$@
echo
#define PKGINCLUDEDIR "" >>$@
echo
#define INCLUDEDIRSERVER "" >>$@
echo
#define LIBDIR "" >>$@
echo
#define PKGLIBDIR "" >>$@
echo
#define LOCALEDIR "" >>$@
"$(OUTDIR)"
:
if
not
exist
"$(OUTDIR)/$(NULL)"
mkdir
"$(OUTDIR)"
USERDEFINES
=
WIN32
;
_CONSOLE
;
_MBCS
;
HAVE_STRDUP
# ---------------------------------------------------------------------------
CPP_PROJ
=
-I
$(BCB)
\i
nclude
;
..
\.
.
\i
nclude
;
..
\.
.
\i
nterfaces
\l
ibpq
;
..
\.
.
\i
nclude
\p
ort
\w
in32
\
-c
-D
$(USERDEFINES)
-DFRONTEND
-tWM
-tWC
-q
-5
-a8
-pc
-X
-w-use
-w-par
-w-pia
\
-w-csu
-w-aus
-w-ccc
LINK32
=
ilink32.exe
LINK32_FLAGS
=
-L
$(BCB)
\l
ib
;
.
\$
(
LIBPG_DIR
)
-x
-v
LINK32_OBJS
=
\
"
$(INTDIR)
\c
ommand.obj"
\
"
$(INTDIR)
\c
ommon.obj"
\
"
$(INTDIR)
\c
opy.obj"
\
"
$(INTDIR)
\d
escribe.obj"
\
"
$(INTDIR)
\h
elp.obj"
\
"
$(INTDIR)
\i
nput.obj"
\
"
$(INTDIR)
\l
arge_obj.obj"
\
"
$(INTDIR)
\m
ainloop.obj"
\
"
$(INTDIR)
\m
bprint.obj"
\
"
$(INTDIR)
\p
rint.obj"
\
"
$(INTDIR)
\p
rompt.obj"
\
"
$(INTDIR)
\p
sqlscan.obj"
\
"
$(INTDIR)
\s
tartup.obj"
\
"
$(INTDIR)
\s
tringutils.obj"
\
"
$(INTDIR)
\t
ab-complete.obj"
\
"
$(INTDIR)
\v
ariables.obj"
\
"
$(INTDIR)
\e
xec.obj"
\
"
$(INTDIR)
\g
etopt.obj"
\
"
$(INTDIR)
\g
etopt_long.obj"
\
"
$(INTDIR)
\p
ath.obj"
\
"
$(INTDIR)
\p
gstrcasecmp.obj"
\
"
$(INTDIR)
\s
prompt.obj"
!IFDEF
DEBUG
CPP_PROJ
=
$(CPP_PROJ)
-Od
-r-
-k
-v
-y
-vi-
-D_DEBUG
LIBPG_DIR
=
Debug
LINK32_OBJS
=
$(LINK32_OBJS)
"..
\.
.
\i
nterfaces
\l
ibpq
\D
ebug
\b
libpqddll.lib"
!ELSE
CPP_PROJ
=
$(CPP_PROJ)
-O
-Oi
-OS
-DNDEBUG
LIBPG_DIR
=
Release
LINK32_OBJS
=
$(LINK32_OBJS)
"..
\.
.
\i
nterfaces
\l
ibpq
\R
elease
\b
libpqdll.lib"
!ENDIF
!IFDEF
DLL_LIBS
CPP_PROJ
=
$(CPP_PROJ)
-D_RTLDLL
LIBRARIES
=
cw32mti.lib ..
\.
.
\i
nterfaces
\l
ibpq
\$
(
LIBPG_DIR
)
\b
libpqdll.lib
!ELSE
CPP_PROJ
=
$(CPP_PROJ)
-DBCC32_STATIC
LIBRARIES
=
cw32mt.lib ..
\.
.
\i
nterfaces
\l
ibpq
\$
(
LIBPG_DIR
)
\b
libpq.lib
!ENDIF
"..\..\port\pg_config_paths.h"
:
win32.mak
echo
\
#define PGBINDIR "" >$@
echo
\
#define PGSHAREDIR "" >>$@
echo
\
#define SYSCONFDIR "" >>$@
echo
\
#define INCLUDEDIR "" >>$@
echo
\
#define PKGINCLUDEDIR "" >>$@
echo
\
#define INCLUDEDIRSERVER "" >>$@
echo
\
#define LIBDIR "" >>$@
echo
\
#define PKGLIBDIR "" >>$@
echo
\
#define LOCALEDIR "" >>$@
LINK32
=
ilink32.exe
LINK32_FLAGS
=
-L
$(BCB)
\l
ib
;
.
\$
(
LIBPG_DIR
)
-x
-v
LINK32_OBJS
=
\
command.obj
\
common.obj
\
copy.obj
\
describe.obj
\
help.obj
\
input.obj
\
large_obj.obj
\
mainloop.obj
\
mbprint.obj
print.obj
\
prompt.obj
\
startup.obj
\
stringutils.obj
\
tab-complete.obj
\
variables.obj
\
exec.obj
\
getopt.obj
\
getopt_long.obj
\
path.obj
\
pgstrcasecmp.obj
\
sprompt.obj
\
"$(OUTDIR)"
:
if
not
exist
"$(OUTDIR)/$(NULL)"
mkdir
"$(OUTDIR)"
"$(OUTDIR)\psql.exe"
:
"$(OUTDIR)"
$(LINK32_OBJS)
$(LINK32)
@&&!
...
...
@@ -157,15 +170,42 @@ LINK32_OBJS= \
import32.lib
$(LIBRARIES),,
!
exec.obj
:
"$(OUTDIR)" ..
\.
.
\p
ort
\e
xec.c
getopt.obj
:
"$(OUTDIR)" ..
\.
.
\p
ort
\g
etopt.c
getopt_long.obj
:
"$(OUTDIR)" ..
\.
.
\p
ort
\g
etopt_long.c
path.obj
:
"$(OUTDIR)" ..
\.
.
\p
ort
\p
ath.c
pgstrcasecmp.obj
:
"$(OUTDIR)" ..
\.
.
\p
ort
\p
gstrcasecmp.c
sprompt.obj
:
"$(OUTDIR)" ..
\.
.
\p
ort
\s
prompt.c
"$(INTDIR)\exec.obj"
:
..\..\port\exec.c
$(CPP)
@<<
$(CPP_PROJ)
..\..\port\exec.c
<<
"$(INTDIR)\getopt.obj"
:
"$(INTDIR)"
..\..\port\getopt.c
$(CPP)
@<<
$(CPP_PROJ)
..\..\port\getopt.c
<<
"$(INTDIR)\getopt_long.obj"
:
"$(INTDIR)"
..\..\port\getopt_long.c
$(CPP)
@<<
$(CPP_PROJ)
..\..\port\getopt_long.c
<<
"$(INTDIR)\path.obj"
:
"$(INTDIR)"
..\..\port\path.c
$(CPP)
@<<
$(CPP_PROJ)
..\..\port\path.c
<<
"$(INTDIR)\pgstrcasecmp.obj"
:
..\..\port\pgstrcasecmp.c
$(CPP)
@<<
$(CPP_PROJ)
..\..\port\pgstrcasecmp.c
<<
"$(INTDIR)\sprompt.obj"
:
"$(INTDIR)"
..\..\port\sprompt.c
$(CPP)
@<<
$(CPP_PROJ)
..\..\port\sprompt.c
<<
"sql_help.h"
:
create_help.pl
$(PERL)
create_help.pl
$(REFDOCDIR)
$@
psqlscan.c
:
psqlscan.l
$(FLEX)
-Cfe
-opsqlscan
.c psqlscan.l
.c.obj
:
$(CPP)
-o
"
$(INTDIR)
\$
&"
$(CPP_PROJ)
$<
src/bin/psql/command.c
View file @
7cebfdf2
...
...
@@ -3,11 +3,15 @@
*
* Copyright (c) 2000-2005, PostgreSQL Global Development Group
*
* $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.14
2 2005/03/16 21:27:23
momjian Exp $
* $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.14
3 2005/04/29 13:42:20
momjian Exp $
*/
#include "postgres_fe.h"
#include "command.h"
#ifdef WIN32_CLIENT_ONLY
/* needed for BCC */
#undef mkdir
#endif
#include <errno.h>
#include <ctype.h>
#ifdef HAVE_PWD_H
...
...
src/bin/psql/startup.c
View file @
7cebfdf2
...
...
@@ -3,7 +3,7 @@
*
* Copyright (c) 2000-2005, PostgreSQL Global Development Group
*
* $PostgreSQL: pgsql/src/bin/psql/startup.c,v 1.11
3 2005/02/22 04:40:58
momjian Exp $
* $PostgreSQL: pgsql/src/bin/psql/startup.c,v 1.11
4 2005/04/29 13:42:20
momjian Exp $
*/
#include "postgres_fe.h"
...
...
@@ -19,7 +19,7 @@
#include "getopt_long.h"
#ifndef HAVE_INT_OPTRESET
int
optreset
;
extern
int
optreset
;
#endif
#include <locale.h>
...
...
src/bin/psql/win32.mak
View file @
7cebfdf2
...
...
@@ -26,6 +26,14 @@ INTDIR=.\Release
REFDOCDIR
=
../../../doc/src/sgml/ref
CPP_PROJ
=
/nologo
$(OPT)
/W3 /GX /D
"WIN32"
$(DEBUGDEF)
/D
"_CONSOLE"
/D
\
"_MBCS"
/Fp
"
$(INTDIR)
\p
sql.pch"
/YX /Fo
"
$(INTDIR)
\\
"
/Fd
"
$(INTDIR)
\\
"
/FD /c
\
/I ..
\.
.
\i
nclude /I ..
\.
.
\i
nterfaces
\l
ibpq /I ..
\.
.
\i
nclude
\p
ort
\w
in32
\
/D
"HAVE_STRDUP"
/D
"FRONTEND"
CPP_OBJS
=
$(INTDIR)
/
CPP_SBRS
=
.
ALL
:
sql_help.h psqlscan.c "..
\.
.
\p
ort
\p
g_config_paths.h" "$(OUTDIR)
\p
sql.exe"
CLEAN
:
...
...
@@ -55,28 +63,6 @@ CLEAN :
-
@erase
"
$(OUTDIR)
\p
sql.exe"
-
@erase
"
$(INTDIR)
\.
.
\.
.
\p
ort
\p
g_config_paths.h"
"..\..\port\pg_config_paths.h"
:
win32.mak
echo
#define PGBINDIR "" >$@
echo
#define PGSHAREDIR "" >>$@
echo
#define SYSCONFDIR "" >>$@
echo
#define INCLUDEDIR "" >>$@
echo
#define PKGINCLUDEDIR "" >>$@
echo
#define INCLUDEDIRSERVER "" >>$@
echo
#define LIBDIR "" >>$@
echo
#define PKGLIBDIR "" >>$@
echo
#define LOCALEDIR "" >>$@
"$(OUTDIR)"
:
if
not
exist
"$(OUTDIR)/$(NULL)"
mkdir
"$(OUTDIR)"
CPP_PROJ
=
/nologo
$(OPT)
/W3 /GX /D
"WIN32"
$(DEBUGDEF)
/D
"_CONSOLE"
/D
\
"_MBCS"
/Fp
"
$(INTDIR)
\p
sql.pch"
/YX /Fo
"
$(INTDIR)
\\
"
/Fd
"
$(INTDIR)
\\
"
/FD /c
\
/I ..
\.
.
\i
nclude /I ..
\.
.
\i
nterfaces
\l
ibpq /I ..
\.
.
\i
nclude
\p
ort
\w
in32
\
/D
"HAVE_STRDUP"
/D
"FRONTEND"
CPP_OBJS
=
$(INTDIR)
/
CPP_SBRS
=
.
LINK32
=
link.exe
LINK32_FLAGS
=
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib
\
advapi32.lib shfolder.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib
\
...
...
@@ -104,13 +90,28 @@ LINK32_OBJS= \
"
$(INTDIR)
\g
etopt_long.obj"
\
"
$(INTDIR)
\p
ath.obj"
\
"
$(INTDIR)
\p
gstrcasecmp.obj"
\
"
$(INTDIR)
\s
prompt.obj"
\
"
$(INTDIR)
\s
prompt.obj"
!IFDEF
DEBUG
"..\..\interfaces\libpq\Debug\libpqddll.lib"
LINK32_OBJS
=
$(LINK32_OBJS)
"..
\.
.
\i
nterfaces
\l
ibpq
\D
ebug
\l
ibpqddll.lib"
!ELSE
"..\..\interfaces\libpq\Release\libpqdll.lib"
LINK32_OBJS
=
$(LINK32_OBJS)
"..
\.
.
\i
nterfaces
\l
ibpq
\R
elease
\l
ibpqdll.lib"
!ENDIF
"..\..\port\pg_config_paths.h"
:
win32.mak
echo
\
#define PGBINDIR "" >$@
echo
\
#define PGSHAREDIR "" >>$@
echo
\
#define SYSCONFDIR "" >>$@
echo
\
#define INCLUDEDIR "" >>$@
echo
\
#define PKGINCLUDEDIR "" >>$@
echo
\
#define INCLUDEDIRSERVER "" >>$@
echo
\
#define LIBDIR "" >>$@
echo
\
#define PKGLIBDIR "" >>$@
echo
\
#define LOCALEDIR "" >>$@
"$(OUTDIR)"
:
if
not
exist
"$(OUTDIR)/$(NULL)"
mkdir
"$(OUTDIR)"
"$(OUTDIR)\psql.exe"
:
"$(OUTDIR)"
$(DEF_FILE)
$(LINK32_OBJS)
$(LINK32)
@<<
$(LINK32_FLAGS)
$(LINK32_OBJS)
...
...
@@ -121,17 +122,17 @@ LINK32_OBJS= \
$(CPP_PROJ)
..\..\port\exec.c
<<
"$(
OUTDIR)\getopt.obj"
:
"$(OU
TDIR)"
..\..\port\getopt.c
"$(
INTDIR)\getopt.obj"
:
"$(IN
TDIR)"
..\..\port\getopt.c
$(CPP)
@<<
$(CPP_PROJ)
..\..\port\getopt.c
<<
"$(
OUTDIR)\getopt_long.obj"
:
"$(OU
TDIR)"
..\..\port\getopt_long.c
"$(
INTDIR)\getopt_long.obj"
:
"$(IN
TDIR)"
..\..\port\getopt_long.c
$(CPP)
@<<
$(CPP_PROJ)
..\..\port\getopt_long.c
<<
"$(
OUTDIR)\path.obj"
:
"$(OU
TDIR)"
..\..\port\path.c
"$(
INTDIR)\path.obj"
:
"$(IN
TDIR)"
..\..\port\path.c
$(CPP)
@<<
$(CPP_PROJ)
..\..\port\path.c
<<
...
...
@@ -141,23 +142,20 @@ LINK32_OBJS= \
$(CPP_PROJ)
..\..\port\pgstrcasecmp.c
<<
"$(
OUTDIR)\sprompt.obj"
:
"$(OU
TDIR)"
..\..\port\sprompt.c
"$(
INTDIR)\sprompt.obj"
:
"$(IN
TDIR)"
..\..\port\sprompt.c
$(CPP)
@<<
$(CPP_PROJ)
..\..\port\sprompt.c
<<
"sql_help.h"
:
create_help.pl
$(PERL)
create_help.pl
$(REFDOCDIR)
$@
psqlscan.c
:
psqlscan.l
$(FLEX)
-Cfe
-opsqlscan
.c psqlscan.l
.c{$(CPP_OBJS)}.obj
::
$(CPP)
@<<
$(CPP_PROJ)
$<
<<
.cpp{$(CPP_OBJS)}.obj
::
$(CPP)
@<<
$(CPP_PROJ)
$<
<<
sql_help.h
:
create_help.pl
$(PERL)
create_help.pl
$(REFDOCDIR)
$@
psqlscan.c
:
psqlscan.l
$(FLEX)
-Cfe
-opsqlscan
.c psqlscan.l
src/interfaces/libpq/Makefile
View file @
7cebfdf2
...
...
@@ -5,7 +5,7 @@
# Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
# Portions Copyright (c) 1994, Regents of the University of California
#
# $PostgreSQL: pgsql/src/interfaces/libpq/Makefile,v 1.13
1 2005/03/25 00:34:28 tgl
Exp $
# $PostgreSQL: pgsql/src/interfaces/libpq/Makefile,v 1.13
2 2005/04/29 13:42:21 momjian
Exp $
#
#-------------------------------------------------------------------------
...
...
@@ -145,7 +145,8 @@ uninstall: uninstall-lib
rm
-f
$(DESTDIR)$(includedir)
/libpq-fe.h
$(DESTDIR)$(includedir_internal)
/libpq-int.h
$(DESTDIR)$(includedir_internal)
/pqexpbuffer.h
clean distclean
:
clean-lib
rm
-f
$(OBJS)
crypt.c getaddrinfo.c inet_aton.c noblock.c pgstrcasecmp.c snprintf.c strerror.c open.c thread.c md5.c ip.c encnames.c wchar.c pthread.h
# pg_config_paths.h might be left over from a Win32 client-only build
rm
-f
$(OBJS)
pg_config_paths.h crypt.c getaddrinfo.c inet_aton.c noblock.c pgstrcasecmp.c snprintf.c strerror.c open.c thread.c md5.c ip.c encnames.c wchar.c pthread.h
maintainer-clean
:
distclean
rm
-f
$(srcdir)
/libpqdll.def
$(srcdir)
/libpqddll.def
$(srcdir)
/blibpqdll.def
$(srcdir)
/libpq.rc
src/interfaces/libpq/bcc32.mak
View file @
7cebfdf2
...
...
@@ -4,7 +4,17 @@
# and a Win32 dynamic library libpq.dll with import library libpqdll.lib
# Borland C++ base install directory goes here
# BCB=d:\Borland\Bcc55
# BCB=c:\Borland\Bcc55
!IF
"$(BCB)"
==
""
!MESSAGE
You
must
edit
bcc32.mak
and
define
BCB
at
the
top
!ERROR
misssing
BCB
!ENDIF
!IF
"$(__NMAKE__)"
==
""
!MESSAGE
You
must
use
the
-N
compatibility
flag,
e.g.
make
-N
-f
bcc32.make
!ERROR
missing
-N
!ENDIF
!MESSAGE
Building
the
Win32
DLL
and
Static
Library...
!MESSAGE
...
...
@@ -22,7 +32,7 @@ CFG=Release
!MESSAGE
You
can
specify
a
configuration
when
running
MAKE
!MESSAGE by defining the macro CFG on the command line. For example
:
!MESSAGE
!MESSAGE
make
-DCFG
=[
Release | Debug] /
f bcc32.mak
!MESSAGE
make
-N
-DCFG
=[
Release | Debug]
-
f
bcc32.mak
!MESSAGE
!MESSAGE Possible choices for configuration are
:
!MESSAGE
...
...
@@ -52,7 +62,7 @@ OUTFILENAME=blibpq
USERDEFINES
=
FRONTEND
;
NDEBUG
;
WIN32
;
_WINDOWS
;
HAVE_VSNPRINTF
;
HAVE_STRDUP
;
CPP
=
bcc32.exe
CPP_PROJ
=
-I
$(BCB)
\i
nclude
;
..
\.
.
\i
nclude
-WD
-c
-D
$(USERDEFINES)
-tWM
\
CPP_PROJ
=
-I
$(BCB)
\i
nclude
;
..
\.
.
\i
nclude
-
n
"
$(INTDIR)
"
-
WD
-c
-D
$(USERDEFINES)
-tWM
\
-a8
-X
-w-use
-w-par
-w-pia
-w-csu
-w-aus
-w-ccc
!IFDEF
DEBUG
...
...
@@ -61,6 +71,8 @@ CPP_PROJ = $(CPP_PROJ) -Od -r- -k -v -y -vi- -D_DEBUG
CPP_PROJ
=
$(CPP_PROJ)
-O
-Oi
-OS
-DNDEBUG
!
endif
ALL
:
config "$(OUTDIR)" "$(OUTDIR)
\b
libpq.dll" "$(OUTDIR)
\b
libpq.lib"
CLEAN
:
-
@erase
"
$(INTDIR)
\g
etaddrinfo.obj"
-
@erase
"
$(INTDIR)
\p
gstrcasecmp.obj"
...
...
@@ -93,6 +105,7 @@ CLEAN :
-
@erase
"
$(OUTDIR)
\$
(OUTFILENAME).tds"
-
@erase
"
$(INTDIR)
\p
g_config_paths.h"
LIB32
=
tlib.exe
LIB32_FLAGS
=
LIB32_OBJS
=
\
...
...
@@ -121,15 +134,6 @@ LIB32_OBJS= \
"
$(INTDIR)
\p
thread-win32.obj"
RSC
=
brcc32.exe
RSC_PROJ
=
-l
0x409
-i
$(BCB)
\i
nclude
-fo
"
$(INTDIR)
\l
ibpq.res"
LINK32
=
ilink32.exe
LINK32_FLAGS
=
-Gn
-L
$(BCB)
\l
ib
;
$(INTDIR)
;
-x
-Tpd
-v
LINK32_OBJS
=
"
$(INTDIR)
\l
ibpqdll.obj"
ALL
:
config "$(OUTDIR)" "$(OUTDIR)
\b
libpq.dll" "$(OUTDIR)
\b
libpq.lib"
config
:
..
\.
.
\i
nclude
\p
g_config.h pthread.h pg_config_paths.h
..\..\include\pg_config.h
:
..
\.
.
\i
nclude
\p
g_config.h.win32
...
...
@@ -138,85 +142,91 @@ config: ..\..\include\pg_config.h pthread.h pg_config_paths.h
pthread.h
:
pthread.h.win32
copy pthread.h.win32 pthread.h
pg_config_paths.h
:
win
32.mak
echo
#define SYSCONFDIR "" > pg_config_paths.h
pg_config_paths.h
:
bcc
32.mak
echo
\
#
define SYSCONFDIR
""
>
pg_config_paths.h
"$(OUTDIR)"
:
@if
not
exist
"$(OUTDIR)/$(NULL)"
mkdir
"$(OUTDIR)"
/* @&&! is a Response file, http
:
//users.deltacomm.com/edmulroy/howto8.htm */
RSC
=
brcc32.exe
RSC_PROJ
=
-l
0x409
-i
$(BCB)
\i
nclude
-fo
"
$(INTDIR)
\l
ibpq.res"
LINK32
=
ilink32.exe
LINK32_FLAGS
=
-Gn
-L
$(BCB)
\l
ib
;
$(INTDIR)
;
-x
-Tpd
-v
LINK32_OBJS
=
"
$(INTDIR)
\l
ibpqdll.obj"
# @<< is a Response file, http://www.opussoftware.com/tutorial/TutMakefile.htm
"$(OUTDIR)\blibpq.dll"
:
"$(OUTDIR)\blibpq.lib"
$(LINK32_OBJS)
"$(INTDIR)\libpq.res"
blibpqdll.def
$(LINK32)
@
&&!
$(LINK32)
@
<<
$(LINK32_FLAGS)
+
c0d32.obj
$(LINK32_OBJS),
+
$@,,
+
"$(OUTDIR)\blibpq.lib"
import32.lib
cw32mti.lib,
+
blibpqdll.def,
"$(INTDIR)\libpq.res"
!
<<
implib
-w
"$(OUTDIR)\blibpqdll.lib"
blibpqdll.def
$@
"$(INTDIR)\libpq.res"
:
"$(INTDIR)"
libpq.rc
$(RSC)
$(RSC_PROJ)
libpq.rc
"$(OUTDIR)\blibpq.lib"
:
$(LIB32_OBJS)
$(LIB32)
$@
@
&&!
$(LIB32)
$@
@
<<
+-"$(**
:
=" &^
+-
")"
!
<<
"$(INTDIR)\getaddrinfo.obj"
:
..\..\port\getaddrinfo.c
$(CPP)
@
&&!
$(CPP)
@
<<
$(CPP_PROJ)
..\..\port\getaddrinfo.c
!
<<
"$(INTDIR)\pgstrcasecmp.obj"
:
..\..\port\pgstrcasecmp.c
$(CPP)
@
&&!
$(CPP)
@
<<
$(CPP_PROJ)
..\..\port\pgstrcasecmp.c
!
<<
"$(INTDIR)\thread.obj"
:
..\..\port\thread.c
$(CPP)
@
&&!
$(CPP)
@
<<
$(CPP_PROJ)
..\..\port\thread.c
!
<<
"$(INTDIR)\inet_aton.obj"
:
..\..\port\inet_aton.c
$(CPP)
@
&&!
$(CPP)
@
<<
$(CPP_PROJ)
..\..\port\inet_aton.c
!
<<
"$(INTDIR)\crypt.obj"
:
..\..\port\crypt.c
$(CPP)
@
&&!
$(CPP)
@
<<
$(CPP_PROJ)
..\..\port\crypt.c
!
<<
"$(INTDIR)\noblock.obj"
:
..\..\port\noblock.c
$(CPP)
@
&&!
$(CPP)
@
<<
$(CPP_PROJ)
..\..\port\noblock.c
!
<<
"$(INTDIR)\md5.obj"
:
..\..\backend\libpq\md5.c
$(CPP)
@
&&!
$(CPP)
@
<<
$(CPP_PROJ)
..\..\backend\libpq\md5.c
!
<<
"$(INTDIR)\ip.obj"
:
..\..\backend\libpq\ip.c
$(CPP)
@
&&!
$(CPP)
@
<<
$(CPP_PROJ)
..\..\backend\libpq\ip.c
!
<<
"$(INTDIR)\wchar.obj"
:
..\..\backend\utils\mb\wchar.c
$(CPP)
@
&&!
$(CPP_PROJ)
/I
"."
..\..\backend\utils\mb\wchar.c
!
$(CPP)
@
<<
$(CPP_PROJ)
/I
"."
..\..\backend\utils\mb\wchar.c
<<
"$(INTDIR)\encnames.obj"
:
..\..\backend\utils\mb\encnames.c
$(CPP)
@
&&!
$(CPP_PROJ)
/I
"."
..\..\backend\utils\mb\encnames.c
!
$(CPP)
@
<<
$(CPP_PROJ)
/I
"."
..\..\backend\utils\mb\encnames.c
<<
.c.obj
:
$(CPP)
-o
"
$(INTDIR)
\$
&"
$(CPP_PROJ)
$<
$(CPP)
$(CPP_PROJ)
$<
src/interfaces/libpq/fe-exec.c
View file @
7cebfdf2
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-exec.c,v 1.16
6 2004/12/31 22:03:50 pgsql
Exp $
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-exec.c,v 1.16
7 2005/04/29 13:42:21 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -2294,7 +2294,7 @@ PQisnonblocking(const PGconn *conn)
int
PQflush
(
PGconn
*
conn
)
{
return
(
pqFlush
(
conn
)
);
return
pqFlush
(
conn
);
}
...
...
src/interfaces/libpq/pthread-win32.c
View file @
7cebfdf2
...
...
@@ -5,14 +5,14 @@
*
* Copyright (c) 2004-2005, PostgreSQL Global Development Group
* IDENTIFICATION
* $PostgreSQL: pgsql/src/interfaces/libpq/pthread-win32.c,v 1.
4 2005/01/01 20:44:31 tgl
Exp $
* $PostgreSQL: pgsql/src/interfaces/libpq/pthread-win32.c,v 1.
5 2005/04/29 13:42:21 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
#include <windows.h>
#include
<pthread.h>
#include
"pthread.h"
HANDLE
pthread_self
()
...
...
src/interfaces/libpq/win32.mak
View file @
7cebfdf2
...
...
@@ -78,6 +78,34 @@ CLEAN :
-
@erase
"
$(INTDIR)
\p
g_config_paths.h"
LIB32
=
link.exe
-lib
LIB32_FLAGS
=
$(LOPT)
/nologo /out:
"
$(OUTDIR)
\$
(OUTFILENAME).lib"
LIB32_OBJS
=
\
"
$(INTDIR)
\w
in32.obj"
\
"
$(INTDIR)
\g
etaddrinfo.obj"
\
"
$(INTDIR)
\p
gstrcasecmp.obj"
\
"
$(INTDIR)
\t
hread.obj"
\
"
$(INTDIR)
\i
net_aton.obj"
\
"
$(INTDIR)
\c
rypt.obj"
\
"
$(INTDIR)
\n
oblock.obj"
\
"
$(INTDIR)
\m
d5.obj"
\
"
$(INTDIR)
\i
p.obj"
\
"
$(INTDIR)
\f
e-auth.obj"
\
"
$(INTDIR)
\f
e-protocol2.obj"
\
"
$(INTDIR)
\f
e-protocol3.obj"
\
"
$(INTDIR)
\f
e-connect.obj"
\
"
$(INTDIR)
\f
e-exec.obj"
\
"
$(INTDIR)
\f
e-lobj.obj"
\
"
$(INTDIR)
\f
e-misc.obj"
\
"
$(INTDIR)
\f
e-print.obj"
\
"
$(INTDIR)
\f
e-secure.obj"
\
"
$(INTDIR)
\p
qexpbuffer.obj"
\
"
$(INTDIR)
\p
qsignal.obj"
\
"
$(INTDIR)
\w
char.obj"
\
"
$(INTDIR)
\e
ncnames.obj"
\
"
$(INTDIR)
\p
thread-win32.obj"
config
:
..
\.
.
\i
nclude
\p
g_config.h pthread.h pg_config_paths.h
..\..\include\pg_config.h
:
..
\.
.
\i
nclude
\p
g_config.h.win32
...
...
@@ -87,7 +115,7 @@ pthread.h: pthread.h.win32
copy pthread.h.win32 pthread.h
pg_config_paths.h
:
win32.mak
echo
#define SYSCONFDIR "" > pg_config_paths.h
echo
\
#
define SYSCONFDIR
""
>
pg_config_paths.h
"$(OUTDIR)"
:
if
not
exist
"$(OUTDIR)/$(NULL)"
mkdir
"$(OUTDIR)"
...
...
@@ -107,34 +135,6 @@ CPP_PROJ=$(CPP_PROJ) /D ENABLE_THREAD_SAFETY
CPP_SBRS
=
.
LIB32
=
link.exe
-lib
LIB32_FLAGS
=
$(LOPT)
/nologo /out:
"
$(OUTDIR)
\$
(OUTFILENAME).lib"
LIB32_OBJS
=
\
"
$(INTDIR)
\w
in32.obj"
\
"
$(INTDIR)
\g
etaddrinfo.obj"
\
"
$(INTDIR)
\p
gstrcasecmp.obj"
\
"
$(INTDIR)
\t
hread.obj"
\
"
$(INTDIR)
\i
net_aton.obj"
\
"
$(INTDIR)
\c
rypt.obj"
\
"
$(INTDIR)
\n
oblock.obj"
\
"
$(INTDIR)
\m
d5.obj"
\
"
$(INTDIR)
\i
p.obj"
\
"
$(INTDIR)
\f
e-auth.obj"
\
"
$(INTDIR)
\f
e-protocol2.obj"
\
"
$(INTDIR)
\f
e-protocol3.obj"
\
"
$(INTDIR)
\f
e-connect.obj"
\
"
$(INTDIR)
\f
e-exec.obj"
\
"
$(INTDIR)
\f
e-lobj.obj"
\
"
$(INTDIR)
\f
e-misc.obj"
\
"
$(INTDIR)
\f
e-print.obj"
\
"
$(INTDIR)
\f
e-secure.obj"
\
"
$(INTDIR)
\p
qexpbuffer.obj"
\
"
$(INTDIR)
\p
qsignal.obj"
\
"
$(INTDIR)
\w
char.obj"
\
"
$(INTDIR)
\e
ncnames.obj"
\
"
$(INTDIR)
\p
thread-win32.obj"
RSC_PROJ
=
/l 0x409 /fo
"
$(INTDIR)
\l
ibpq.res"
LINK32
=
link.exe
...
...
@@ -148,7 +148,7 @@ LINK32_OBJS= \
"
$(OUTDIR)
\l
ibpq.res"
/* @<< is a Response file, http
:
//www.opussoftware.com/tutorial/TutMakefile.htm */
# @<< is a Response file, http://www.opussoftware.com/tutorial/TutMakefile.htm
"$(OUTDIR)\$(OUTFILENAME).lib"
:
"$(OUTDIR)"
$(DEF_FILE)
$(LIB32_OBJS)
$(LIB32)
@<<
...
...
@@ -206,42 +206,14 @@ LINK32_OBJS= \
"$(INTDIR)\wchar.obj"
:
..\..\backend\utils\mb\wchar.c
$(CPP)
@<<
$(CPP_PROJ)
/I
"."
..\..\backend\utils\mb\wchar.c
$(CPP_PROJ)
/I
"."
..\..\backend\utils\mb\wchar.c
<<
"$(INTDIR)\encnames.obj"
:
..\..\backend\utils\mb\encnames.c
$(CPP)
@<<
$(CPP_PROJ)
/I
"."
..\..\backend\utils\mb\encnames.c
$(CPP_PROJ)
/I
"."
..\..\backend\utils\mb\encnames.c
<<
.c{$(CPP_OBJS)}.obj
::
$(CPP)
@<<
$(CPP_PROJ)
$<
<<
.cpp{$(CPP_OBJS)}.obj
::
$(CPP)
@<<
$(CPP_PROJ)
$<
<<
.cxx{$(CPP_OBJS)}.obj
::
$(CPP)
@<<
$(CPP_PROJ)
$<
<<
.c{$(CPP_SBRS)}.sbr
::
$(CPP)
@<<
$(CPP_PROJ)
$<
<<
.cpp{$(CPP_SBRS)}.sbr
::
$(CPP)
@<<
$(CPP_PROJ)
$<
<<
.cxx{$(CPP_SBRS)}.sbr
::
$(CPP)
@<<
$(CPP_PROJ)
$<
<<
.c.obj
:
$(CPP)
$(CPP_PROJ)
$<
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