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
f9625144
Commit
f9625144
authored
Feb 05, 1999
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reverse out const to libpq interface from D'Arcy.
parent
d3a85108
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
22 deletions
+22
-22
src/interfaces/libpq/fe-connect.c
src/interfaces/libpq/fe-connect.c
+9
-9
src/interfaces/libpq/fe-print.c
src/interfaces/libpq/fe-print.c
+3
-3
src/interfaces/libpq/libpq-fe.h
src/interfaces/libpq/libpq-fe.h
+10
-10
No files found.
src/interfaces/libpq/fe-connect.c
View file @
f9625144
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.9
0 1999/02/04 03:20:39
momjian Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.9
1 1999/02/05 04:25:54
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -48,7 +48,7 @@ static PGconn *makeEmptyPGconn(void);
static
void
freePGconn
(
PGconn
*
conn
);
static
void
closePGconn
(
PGconn
*
conn
);
static
int
conninfo_parse
(
const
char
*
conninfo
,
char
*
errorMessage
);
static
c
onst
char
*
conninfo_getval
(
const
char
*
keyword
);
static
c
har
*
conninfo_getval
(
char
*
keyword
);
static
void
conninfo_free
(
void
);
static
void
defaultNoticeProcessor
(
void
*
arg
,
const
char
*
message
);
...
...
@@ -172,8 +172,8 @@ static struct EnvironmentOptions
PGconn
*
PQconnectdb
(
const
char
*
conninfo
)
{
PGconn
*
conn
;
c
onst
c
har
*
tmp
;
PGconn
*
conn
;
char
*
tmp
;
/* ----------
* Allocate memory for the conn structure
...
...
@@ -284,8 +284,8 @@ PQconndefaults(void)
PGconn
*
PQsetdbLogin
(
const
char
*
pghost
,
const
char
*
pgport
,
const
char
*
pgoptions
,
const
char
*
pgtty
,
const
char
*
dbName
,
const
char
*
login
,
const
char
*
pwd
)
{
PGconn
*
conn
;
c
onst
char
*
tmp
;
PGconn
*
conn
;
c
har
*
tmp
;
/* An error message from some service we call. */
bool
error
=
FALSE
;
...
...
@@ -1137,7 +1137,7 @@ conninfo_parse(const char *conninfo, char *errorMessage)
char
*
pname
;
char
*
pval
;
char
*
buf
;
c
onst
char
*
tmp
;
c
har
*
tmp
;
char
*
cp
;
char
*
cp2
;
PQconninfoOption
*
option
;
...
...
@@ -1343,8 +1343,8 @@ conninfo_parse(const char *conninfo, char *errorMessage)
}
static
c
onst
c
har
*
conninfo_getval
(
c
onst
c
har
*
keyword
)
static
char
*
conninfo_getval
(
char
*
keyword
)
{
PQconninfoOption
*
option
;
...
...
src/interfaces/libpq/fe-print.c
View file @
f9625144
...
...
@@ -9,7 +9,7 @@
* didn't really belong there.
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-print.c,v 1.1
8 1999/02/04 03:20:39
momjian Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-print.c,v 1.1
9 1999/02/05 04:25:54
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -679,7 +679,7 @@ do_header(FILE *fout, PQprintOpt *po, const int nFields, int *fieldMax,
p
=
border
;
if
(
po
->
standard
)
{
c
onst
c
har
*
fs
=
po
->
fieldSep
;
char
*
fs
=
po
->
fieldSep
;
while
(
*
fs
++
)
*
p
++
=
'+'
;
...
...
@@ -691,7 +691,7 @@ do_header(FILE *fout, PQprintOpt *po, const int nFields, int *fieldMax,
for
(
len
=
fieldMax
[
j
]
+
(
po
->
standard
?
2
:
0
);
len
--
;
*
p
++
=
'-'
);
if
(
po
->
standard
||
(
j
+
1
)
<
nFields
)
{
c
onst
c
har
*
fs
=
po
->
fieldSep
;
char
*
fs
=
po
->
fieldSep
;
while
(
*
fs
++
)
*
p
++
=
'+'
;
...
...
src/interfaces/libpq/libpq-fe.h
View file @
f9625144
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: libpq-fe.h,v 1.4
6 1999/02/04 03:20:39
momjian Exp $
* $Id: libpq-fe.h,v 1.4
7 1999/02/05 04:25:55
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -100,9 +100,9 @@ extern "C"
pqbool
html3
;
/* output html tables */
pqbool
expanded
;
/* expand tables */
pqbool
pager
;
/* use pager for output if needed */
c
onst
char
*
fieldSep
;
/* field separator */
c
onst
char
*
tableOpt
;
/* insert to HTML <table ...> */
c
onst
char
*
caption
;
/* HTML <caption> */
c
har
*
fieldSep
;
/* field separator */
c
har
*
tableOpt
;
/* insert to HTML <table ...> */
c
har
*
caption
;
/* HTML <caption> */
char
**
fieldName
;
/* null terminated array of repalcement
* field names */
}
PQprintOpt
;
...
...
@@ -113,12 +113,12 @@ extern "C"
*/
typedef
struct
_PQconninfoOption
{
c
onst
char
*
keyword
;
/* The keyword of the option */
c
onst
char
*
envvar
;
/* Fallback environment variable name */
c
onst
char
*
compiled
;
/* Fallback compiled in default value */
char
*
val
;
/* Options value */
c
onst
char
*
label
;
/* Label for field in connect dialog */
c
onst
char
*
dispchar
;
/* Character to display for this field */
c
har
*
keyword
;
/* The keyword of the option */
c
har
*
envvar
;
/* Fallback environment variable name */
c
har
*
compiled
;
/* Fallback compiled in default value */
char
*
val
;
/* Options value */
c
har
*
label
;
/* Label for field in connect dialog */
c
har
*
dispchar
;
/* Character to display for this field */
/* in a connect dialog. Values are: */
/* "" Display entered value as is */
/* "*" Password field - hide value */
...
...
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