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
63c4d156
Commit
63c4d156
authored
Aug 08, 2003
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move simple_prompt()/sprompt.c into /port.
parent
522b4937
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
40 additions
and
58 deletions
+40
-58
src/Makefile.global.in
src/Makefile.global.in
+2
-2
src/bin/pg_dump/Makefile
src/bin/pg_dump/Makefile
+5
-5
src/bin/pg_dump/dumputils.h
src/bin/pg_dump/dumputils.h
+1
-3
src/bin/pg_dump/pg_dump.h
src/bin/pg_dump/pg_dump.h
+1
-4
src/bin/psql/Makefile
src/bin/psql/Makefile
+3
-3
src/bin/psql/bcc32.mak
src/bin/psql/bcc32.mak
+0
-2
src/bin/psql/common.h
src/bin/psql/common.h
+1
-6
src/bin/psql/win32.mak
src/bin/psql/win32.mak
+0
-2
src/bin/scripts/Makefile
src/bin/scripts/Makefile
+11
-12
src/bin/scripts/common.h
src/bin/scripts/common.h
+0
-2
src/include/port.h
src/include/port.h
+11
-9
src/interfaces/libpq/Makefile
src/interfaces/libpq/Makefile
+3
-3
src/port/sprompt.c
src/port/sprompt.c
+2
-5
No files found.
src/Makefile.global.in
View file @
63c4d156
# -*-makefile-*-
# -*-makefile-*-
# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.16
5 2003/08/08 02:48:24
momjian Exp $
# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.16
6 2003/08/08 04:52:20
momjian Exp $
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
# All PostgreSQL makefiles include this file and use the variables it sets,
# All PostgreSQL makefiles include this file and use the variables it sets,
...
@@ -341,7 +341,7 @@ endif
...
@@ -341,7 +341,7 @@ endif
#
#
# substitute implementations of the C library
# substitute implementations of the C library
LIBOBJS
=
@LIBOBJS@ path.o thread.o
LIBOBJS
=
@LIBOBJS@ path.o
sprompt.o
thread.o
ifneq
(,$(LIBOBJS))
ifneq
(,$(LIBOBJS))
LIBS
+=
-lpgport
LIBS
+=
-lpgport
...
...
src/bin/pg_dump/Makefile
View file @
63c4d156
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
# Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
# Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
# Portions Copyright (c) 1994, Regents of the University of California
# Portions Copyright (c) 1994, Regents of the University of California
#
#
# $Header: /cvsroot/pgsql/src/bin/pg_dump/Makefile,v 1.
39 2002/12/12 21:02:00 tgl
Exp $
# $Header: /cvsroot/pgsql/src/bin/pg_dump/Makefile,v 1.
40 2003/08/08 04:52:21 momjian
Exp $
#
#
#-------------------------------------------------------------------------
#-------------------------------------------------------------------------
...
@@ -15,7 +15,7 @@ include $(top_builddir)/src/Makefile.global
...
@@ -15,7 +15,7 @@ include $(top_builddir)/src/Makefile.global
OBJS
=
pg_backup_archiver.o pg_backup_db.o pg_backup_custom.o
\
OBJS
=
pg_backup_archiver.o pg_backup_db.o pg_backup_custom.o
\
pg_backup_files.o pg_backup_null.o pg_backup_tar.o
\
pg_backup_files.o pg_backup_null.o pg_backup_tar.o
\
sprompt.o
dumputils.o
dumputils.o
EXTRA_OBJS
=
$(top_builddir)
/src/backend/parser/keywords.o
EXTRA_OBJS
=
$(top_builddir)
/src/backend/parser/keywords.o
...
@@ -31,7 +31,7 @@ pg_restore: pg_restore.o $(OBJS) $(libpq_builddir)/libpq.a
...
@@ -31,7 +31,7 @@ pg_restore: pg_restore.o $(OBJS) $(libpq_builddir)/libpq.a
$(CC)
$(CFLAGS)
pg_restore.o
$(OBJS)
$(EXTRA_OBJS)
$(libpq)
$(LDFLAGS)
$(LIBS)
-o
$@
$(CC)
$(CFLAGS)
pg_restore.o
$(OBJS)
$(EXTRA_OBJS)
$(libpq)
$(LDFLAGS)
$(LIBS)
-o
$@
pg_dumpall
:
pg_dumpall.o $(libpq_builddir)/libpq.a
pg_dumpall
:
pg_dumpall.o $(libpq_builddir)/libpq.a
$(CC)
$(CFLAGS)
pg_dumpall.o dumputils.o
sprompt.o
$(EXTRA_OBJS)
$(libpq)
$(LDFLAGS)
$(LIBS)
-o
$@
$(CC)
$(CFLAGS)
pg_dumpall.o dumputils.o
$(EXTRA_OBJS)
$(libpq)
$(LDFLAGS)
$(LIBS)
-o
$@
.PHONY
:
submake-backend
.PHONY
:
submake-backend
submake-backend
:
submake-backend
:
...
...
src/bin/pg_dump/dumputils.h
View file @
63c4d156
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* $Id: dumputils.h,v 1.
7 2003/08/04 02:40:09
momjian Exp $
* $Id: dumputils.h,v 1.
8 2003/08/08 04:52:21
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -18,8 +18,6 @@
...
@@ -18,8 +18,6 @@
#include "pqexpbuffer.h"
#include "pqexpbuffer.h"
extern
char
*
simple_prompt
(
const
char
*
prompt
,
int
maxlen
,
bool
echo
);
extern
const
char
*
fmtId
(
const
char
*
identifier
);
extern
const
char
*
fmtId
(
const
char
*
identifier
);
extern
void
appendStringLiteral
(
PQExpBuffer
buf
,
const
char
*
str
,
extern
void
appendStringLiteral
(
PQExpBuffer
buf
,
const
char
*
str
,
bool
escapeAll
);
bool
escapeAll
);
...
...
src/bin/pg_dump/pg_dump.h
View file @
63c4d156
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* $Id: pg_dump.h,v 1.10
3 2003/08/04 02:40:09
momjian Exp $
* $Id: pg_dump.h,v 1.10
4 2003/08/08 04:52:21
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -235,7 +235,4 @@ extern void dumpTables(Archive *fout, TableInfo tblinfo[], int numTables,
...
@@ -235,7 +235,4 @@ extern void dumpTables(Archive *fout, TableInfo tblinfo[], int numTables,
const
bool
schemaOnly
,
const
bool
dataOnly
);
const
bool
schemaOnly
,
const
bool
dataOnly
);
extern
void
dumpIndexes
(
Archive
*
fout
,
TableInfo
*
tbinfo
,
int
numTables
);
extern
void
dumpIndexes
(
Archive
*
fout
,
TableInfo
*
tbinfo
,
int
numTables
);
/* sprompt.h */
extern
char
*
simple_prompt
(
const
char
*
prompt
,
int
maxlen
,
bool
echo
);
#endif
/* PG_DUMP_H */
#endif
/* PG_DUMP_H */
src/bin/psql/Makefile
View file @
63c4d156
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
# Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
# Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
# Portions Copyright (c) 1994, Regents of the University of California
# Portions Copyright (c) 1994, Regents of the University of California
#
#
# $Header: /cvsroot/pgsql/src/bin/psql/Makefile,v 1.3
6 2003/06/06 22:17:42
momjian Exp $
# $Header: /cvsroot/pgsql/src/bin/psql/Makefile,v 1.3
7 2003/08/08 04:52:21
momjian Exp $
#
#
#-------------------------------------------------------------------------
#-------------------------------------------------------------------------
...
@@ -17,9 +17,9 @@ REFDOCDIR= $(top_srcdir)/doc/src/sgml/ref
...
@@ -17,9 +17,9 @@ REFDOCDIR= $(top_srcdir)/doc/src/sgml/ref
override CPPFLAGS
:
= -I$(libpq_srcdir) $(CPPFLAGS) -DFRONTEND
override CPPFLAGS
:
= -I$(libpq_srcdir) $(CPPFLAGS) -DFRONTEND
OBJS
=
command.o common.o help.o input.o stringutils.o mainloop.o copy.o
\
OBJS
=
command.o common.o help.o input.o stringutils.o mainloop.o copy.o
\
startup.o prompt.o variables.o large_obj.o print.o describe.o
\
startup.o prompt.o variables.o large_obj.o print.o describe.o
\
sprompt.o
tab-complete.o mbprint.o
tab-complete.o mbprint.o
all
:
submake-libpq submake-libpgport psql
all
:
submake-libpq submake-libpgport psql
...
...
src/bin/psql/bcc32.mak
View file @
63c4d156
...
@@ -65,7 +65,6 @@ CLEAN :
...
@@ -65,7 +65,6 @@ CLEAN :
-
@erase
"
$(INTDIR)
\c
opy.obj"
-
@erase
"
$(INTDIR)
\c
opy.obj"
-
@erase
"
$(INTDIR)
\s
tartup.obj"
-
@erase
"
$(INTDIR)
\s
tartup.obj"
-
@erase
"
$(INTDIR)
\p
rompt.obj"
-
@erase
"
$(INTDIR)
\p
rompt.obj"
-
@erase
"
$(INTDIR)
\s
prompt.obj"
-
@erase
"
$(INTDIR)
\v
ariables.obj"
-
@erase
"
$(INTDIR)
\v
ariables.obj"
-
@erase
"
$(INTDIR)
\l
arge_obj.obj"
-
@erase
"
$(INTDIR)
\l
arge_obj.obj"
-
@erase
"
$(INTDIR)
\p
rint.obj"
-
@erase
"
$(INTDIR)
\p
rint.obj"
...
@@ -119,7 +118,6 @@ LINK32_OBJS= \
...
@@ -119,7 +118,6 @@ LINK32_OBJS= \
copy.obj
\
copy.obj
\
startup.obj
\
startup.obj
\
prompt.obj
\
prompt.obj
\
sprompt.obj
\
variables.obj
\
variables.obj
\
large_obj.obj
\
large_obj.obj
\
print.obj
\
print.obj
\
...
...
src/bin/psql/common.h
View file @
63c4d156
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
*
*
* Copyright (c) 2000-2003, PostgreSQL Global Development Group
* Copyright (c) 2000-2003, PostgreSQL Global Development Group
*
*
* $Header: /cvsroot/pgsql/src/bin/psql/common.h,v 1.2
7 2003/08/04 23:59:39 tgl
Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/common.h,v 1.2
8 2003/08/08 04:52:21 momjian
Exp $
*/
*/
#ifndef COMMON_H
#ifndef COMMON_H
#define COMMON_H
#define COMMON_H
...
@@ -24,8 +24,6 @@ __attribute__((format(printf, 1, 2)));
...
@@ -24,8 +24,6 @@ __attribute__((format(printf, 1, 2)));
extern
void
NoticeProcessor
(
void
*
arg
,
const
char
*
message
);
extern
void
NoticeProcessor
(
void
*
arg
,
const
char
*
message
);
extern
char
*
simple_prompt
(
const
char
*
prompt
,
int
maxlen
,
bool
echo
);
extern
volatile
bool
cancel_pressed
;
extern
volatile
bool
cancel_pressed
;
extern
void
ResetCancelConn
(
void
);
extern
void
ResetCancelConn
(
void
);
...
@@ -40,9 +38,6 @@ extern bool SendQuery(const char *query);
...
@@ -40,9 +38,6 @@ extern bool SendQuery(const char *query);
extern
bool
is_superuser
(
void
);
extern
bool
is_superuser
(
void
);
/* sprompt.h */
extern
char
*
simple_prompt
(
const
char
*
prompt
,
int
maxlen
,
bool
echo
);
/* Parse a numeric character code from the string pointed at by *buf, e.g.
/* Parse a numeric character code from the string pointed at by *buf, e.g.
* one written as 0x0c (hexadecimal) or 015 (octal); advance *buf to the last
* one written as 0x0c (hexadecimal) or 015 (octal); advance *buf to the last
* character of the numeric character code.
* character of the numeric character code.
...
...
src/bin/psql/win32.mak
View file @
63c4d156
...
@@ -28,7 +28,6 @@ CLEAN :
...
@@ -28,7 +28,6 @@ CLEAN :
-
@erase
"
$(INTDIR)
\c
opy.obj"
-
@erase
"
$(INTDIR)
\c
opy.obj"
-
@erase
"
$(INTDIR)
\s
tartup.obj"
-
@erase
"
$(INTDIR)
\s
tartup.obj"
-
@erase
"
$(INTDIR)
\p
rompt.obj"
-
@erase
"
$(INTDIR)
\p
rompt.obj"
-
@erase
"
$(INTDIR)
\s
prompt.obj"
-
@erase
"
$(INTDIR)
\v
ariables.obj"
-
@erase
"
$(INTDIR)
\v
ariables.obj"
-
@erase
"
$(INTDIR)
\l
arge_obj.obj"
-
@erase
"
$(INTDIR)
\l
arge_obj.obj"
-
@erase
"
$(INTDIR)
\p
rint.obj"
-
@erase
"
$(INTDIR)
\p
rint.obj"
...
@@ -66,7 +65,6 @@ LINK32_OBJS= \
...
@@ -66,7 +65,6 @@ LINK32_OBJS= \
"
$(INTDIR)
\c
opy.obj"
\
"
$(INTDIR)
\c
opy.obj"
\
"
$(INTDIR)
\s
tartup.obj"
\
"
$(INTDIR)
\s
tartup.obj"
\
"
$(INTDIR)
\p
rompt.obj"
\
"
$(INTDIR)
\p
rompt.obj"
\
"
$(INTDIR)
\s
prompt.obj"
\
"
$(INTDIR)
\v
ariables.obj"
\
"
$(INTDIR)
\v
ariables.obj"
\
"
$(INTDIR)
\l
arge_obj.obj"
\
"
$(INTDIR)
\l
arge_obj.obj"
\
"
$(INTDIR)
\p
rint.obj"
\
"
$(INTDIR)
\p
rint.obj"
\
...
...
src/bin/scripts/Makefile
View file @
63c4d156
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
# Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
# Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
# Portions Copyright (c) 1994, Regents of the University of California
# Portions Copyright (c) 1994, Regents of the University of California
#
#
# $Header: /cvsroot/pgsql/src/bin/scripts/Makefile,v 1.2
1 2003/06/18 12:19:11 petere
Exp $
# $Header: /cvsroot/pgsql/src/bin/scripts/Makefile,v 1.2
2 2003/08/08 04:52:21 momjian
Exp $
#
#
#-------------------------------------------------------------------------
#-------------------------------------------------------------------------
...
@@ -17,22 +17,21 @@ PROGRAMS = createdb createlang createuser dropdb droplang dropuser clusterdb vac
...
@@ -17,22 +17,21 @@ PROGRAMS = createdb createlang createuser dropdb droplang dropuser clusterdb vac
override CPPFLAGS
:
= -I$(top_srcdir)/src/bin/pg_dump -I$(top_srcdir)/src/bin/psql -I$(libpq_srcdir) $(CPPFLAGS)
override CPPFLAGS
:
= -I$(top_srcdir)/src/bin/pg_dump -I$(top_srcdir)/src/bin/psql -I$(libpq_srcdir) $(CPPFLAGS)
all
:
submake-libpq submake-backend $(PROGRAMS)
all
:
submake-libpq submake-backend $(PROGRAMS)
%
:
%.o
%
:
%.o
$(CC)
$(CFLAGS)
$^
$(libpq)
$(LDFLAGS)
$(LIBS)
-o
$@
$(CC)
$(CFLAGS)
$^
$(libpq)
$(LDFLAGS)
$(LIBS)
-o
$@
createdb
:
createdb.o common.o dumputils.o
sprompt.o
$(top_builddir)/src/backend/parser/keywords.o
createdb
:
createdb.o common.o dumputils.o $(top_builddir)/src/backend/parser/keywords.o
createlang
:
createlang.o common.o
sprompt.o
print.o mbprint.o
createlang
:
createlang.o common.o print.o mbprint.o
createuser
:
createuser.o common.o dumputils.o
sprompt.o
$(top_builddir)/src/backend/parser/keywords.o
createuser
:
createuser.o common.o dumputils.o $(top_builddir)/src/backend/parser/keywords.o
dropdb
:
dropdb.o common.o dumputils.o
sprompt.o
$(top_builddir)/src/backend/parser/keywords.o
dropdb
:
dropdb.o common.o dumputils.o $(top_builddir)/src/backend/parser/keywords.o
droplang
:
droplang.o common.o
sprompt.o
print.o mbprint.o
droplang
:
droplang.o common.o print.o mbprint.o
dropuser
:
dropuser.o common.o dumputils.o
sprompt.o
$(top_builddir)/src/backend/parser/keywords.o
dropuser
:
dropuser.o common.o dumputils.o $(top_builddir)/src/backend/parser/keywords.o
clusterdb
:
clusterdb.o common.o dumputils.o
sprompt.o
$(top_builddir)/src/backend/parser/keywords.o
clusterdb
:
clusterdb.o common.o dumputils.o $(top_builddir)/src/backend/parser/keywords.o
vacuumdb
:
vacuumdb.o common.o
sprompt.o
vacuumdb
:
vacuumdb.o common.o
dumputils.c
sprompt.c
:
% : $(top_srcdir)/src/bin/pg_dump/%
dumputils.c
:
% : $(top_srcdir)/src/bin/pg_dump/%
rm
-f
$@
&&
$(LN_S)
$<
.
rm
-f
$@
&&
$(LN_S)
$<
.
print.c mbprint.c
:
% : $(top_srcdir)/src/bin/psql/%
print.c mbprint.c
:
% : $(top_srcdir)/src/bin/psql/%
...
@@ -61,4 +60,4 @@ uninstall:
...
@@ -61,4 +60,4 @@ uninstall:
clean distclean maintainer-clean
:
clean distclean maintainer-clean
:
rm
-f
$(
addsuffix
$(X)
,
$(PROGRAMS)
)
$(
addsuffix
.o,
$(PROGRAMS)
)
common.o dumputils.o
sprompt.o print.o mbprint.o dumputils.c sprompt
.c print.c mbprint.c
rm
-f
$(
addsuffix
$(X)
,
$(PROGRAMS)
)
$(
addsuffix
.o,
$(PROGRAMS)
)
common.o dumputils.o
print.o mbprint.o dumputils
.c print.c mbprint.c
src/bin/scripts/common.h
View file @
63c4d156
...
@@ -17,8 +17,6 @@ typedef void (*help_handler) (const char *);
...
@@ -17,8 +17,6 @@ typedef void (*help_handler) (const char *);
void
handle_help_version_opts
(
int
argc
,
char
*
argv
[],
const
char
*
fixed_progname
,
help_handler
hlp
);
void
handle_help_version_opts
(
int
argc
,
char
*
argv
[],
const
char
*
fixed_progname
,
help_handler
hlp
);
extern
char
*
simple_prompt
(
const
char
*
prompt
,
int
maxlen
,
bool
echo
);
PGconn
*
connectDatabase
(
const
char
*
dbname
,
const
char
*
pghost
,
const
char
*
pgport
,
PGconn
*
connectDatabase
(
const
char
*
dbname
,
const
char
*
pghost
,
const
char
*
pgport
,
const
char
*
pguser
,
bool
require_password
,
const
char
*
progname
);
const
char
*
pguser
,
bool
require_password
,
const
char
*
progname
);
...
...
src/include/port.h
View file @
63c4d156
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* $Id: port.h,v 1.1
0 2003/08/04 02:40:10
momjian Exp $
* $Id: port.h,v 1.1
1 2003/08/08 04:52:22
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -18,14 +18,16 @@
...
@@ -18,14 +18,16 @@
#endif
#endif
/* Portable path handling for Unix/Win32 */
/* Portable path handling for Unix/Win32 */
bool
is_absolute_path
(
const
char
*
filename
);
extern
bool
is_absolute_path
(
const
char
*
filename
);
char
*
first_path_separator
(
const
char
*
filename
);
extern
char
*
first_path_separator
(
const
char
*
filename
);
char
*
last_path_separator
(
const
char
*
filename
);
extern
char
*
last_path_separator
(
const
char
*
filename
);
char
*
get_progname
(
char
*
argv0
);
extern
char
*
get_progname
(
char
*
argv0
);
extern
char
*
simple_prompt
(
const
char
*
prompt
,
int
maxlen
,
bool
echo
);
#if defined(bsdi) || defined(netbsd)
#if defined(bsdi) || defined(netbsd)
int
fseeko
(
FILE
*
stream
,
off_t
offset
,
int
whence
);
extern
int
fseeko
(
FILE
*
stream
,
off_t
offset
,
int
whence
);
off_t
ftello
(
FILE
*
stream
);
extern
off_t
ftello
(
FILE
*
stream
);
#endif
#endif
#ifdef WIN32
#ifdef WIN32
...
@@ -33,8 +35,8 @@ off_t ftello(FILE *stream);
...
@@ -33,8 +35,8 @@ off_t ftello(FILE *stream);
* Win32 doesn't have reliable rename/unlink during concurrent access
* Win32 doesn't have reliable rename/unlink during concurrent access
*/
*/
#ifndef FRONTEND
#ifndef FRONTEND
int
pgrename
(
const
char
*
from
,
const
char
*
to
);
extern
int
pgrename
(
const
char
*
from
,
const
char
*
to
);
int
pgunlink
(
const
char
*
path
);
extern
int
pgunlink
(
const
char
*
path
);
#define rename(from, to) pgrename(from, to)
#define rename(from, to) pgrename(from, to)
#define unlink(path) pgunlink(path)
#define unlink(path) pgunlink(path)
...
...
src/interfaces/libpq/Makefile
View file @
63c4d156
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
#
#
# Copyright (c) 1994, Regents of the University of California
# Copyright (c) 1994, Regents of the University of California
#
#
# $Header: /cvsroot/pgsql/src/interfaces/libpq/Makefile,v 1.
89 2003/08/08 03:22:24
momjian Exp $
# $Header: /cvsroot/pgsql/src/interfaces/libpq/Makefile,v 1.
90 2003/08/08 04:52:22
momjian Exp $
#
#
#-------------------------------------------------------------------------
#-------------------------------------------------------------------------
...
@@ -23,7 +23,7 @@ override CPPFLAGS := -I$(srcdir) $(CPPFLAGS) $(THREAD_CFLAGS) -DFRONTEND -DSYSCO
...
@@ -23,7 +23,7 @@ override CPPFLAGS := -I$(srcdir) $(CPPFLAGS) $(THREAD_CFLAGS) -DFRONTEND -DSYSCO
OBJS
=
fe-auth.o fe-connect.o fe-exec.o fe-misc.o fe-print.o fe-lobj.o
\
OBJS
=
fe-auth.o fe-connect.o fe-exec.o fe-misc.o fe-print.o fe-lobj.o
\
fe-protocol2.o fe-protocol3.o pqexpbuffer.o pqsignal.o fe-secure.o
\
fe-protocol2.o fe-protocol3.o pqexpbuffer.o pqsignal.o fe-secure.o
\
dllist.o md5.o ip.o wchar.o encnames.o
\
dllist.o md5.o ip.o wchar.o encnames.o
\
$(
filter
crypt.o getaddrinfo.o inet_aton.o snprintf.o strerror.o path.o thread.o,
$(LIBOBJS)
)
$(
filter
crypt.o getaddrinfo.o inet_aton.o snprintf.o s
prompt.o s
trerror.o path.o thread.o,
$(LIBOBJS)
)
# Add libraries that libpq depends (or might depend) on into the
# Add libraries that libpq depends (or might depend) on into the
...
@@ -46,7 +46,7 @@ backend_src = $(top_srcdir)/src/backend
...
@@ -46,7 +46,7 @@ backend_src = $(top_srcdir)/src/backend
# For port modules, this only happens if configure decides the module
# For port modules, this only happens if configure decides the module
# is needed (see filter hack in OBJS, above).
# is needed (see filter hack in OBJS, above).
crypt.c getaddrinfo.c inet_aton.c snprintf.c strerror.c path.c thread.c
:
% : $(top_srcdir)/src/port/%
crypt.c getaddrinfo.c inet_aton.c snprintf.c s
prompt.c s
trerror.c path.c thread.c
:
% : $(top_srcdir)/src/port/%
rm
-f
$@
&&
$(LN_S)
$<
.
rm
-f
$@
&&
$(LN_S)
$<
.
md5.c ip.c
:
% : $(backend_src)/libpq/%
md5.c ip.c
:
% : $(backend_src)/libpq/%
...
...
src/
bin/psql
/sprompt.c
→
src/
port
/sprompt.c
View file @
63c4d156
...
@@ -3,13 +3,10 @@
...
@@ -3,13 +3,10 @@
*
*
* Copyright 2000 by PostgreSQL Global Development Group
* Copyright 2000 by PostgreSQL Global Development Group
*
*
* $Header: /cvsroot/pgsql/src/
bin/psql/Attic/sprompt.c,v 1.6 2003/08/04 00:43:29
momjian Exp $
* $Header: /cvsroot/pgsql/src/
port/sprompt.c,v 1.1 2003/08/08 04:52:22
momjian Exp $
*/
*/
/* This file is shared by psql and pg_dump. */
/*
/*
* simple_prompt
* simple_prompt
*
*
...
@@ -22,7 +19,7 @@
...
@@ -22,7 +19,7 @@
*
*
* Returns a malloc()'ed string with the input (w/o trailing newline).
* Returns a malloc()'ed string with the input (w/o trailing newline).
*/
*/
#include "postgres
_fe
.h"
#include "postgres.h"
#ifdef HAVE_TERMIOS_H
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#include <termios.h>
...
...
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