Reverse out const to libpq interface from D'Arcy.

This commit is contained in:
Bruce Momjian 1999-02-05 04:25:55 +00:00
parent d3a85108c2
commit f962514403
3 changed files with 22 additions and 22 deletions

View File

@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.90 1999/02/04 03:20:39 momjian Exp $ * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.91 1999/02/05 04:25:54 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -48,7 +48,7 @@ static PGconn *makeEmptyPGconn(void);
static void freePGconn(PGconn *conn); static void freePGconn(PGconn *conn);
static void closePGconn(PGconn *conn); static void closePGconn(PGconn *conn);
static int conninfo_parse(const char *conninfo, char *errorMessage); static int conninfo_parse(const char *conninfo, char *errorMessage);
static const char *conninfo_getval(const char *keyword); static char *conninfo_getval(char *keyword);
static void conninfo_free(void); static void conninfo_free(void);
static void defaultNoticeProcessor(void *arg, const char *message); static void defaultNoticeProcessor(void *arg, const char *message);
@ -172,8 +172,8 @@ static struct EnvironmentOptions
PGconn * PGconn *
PQconnectdb(const char *conninfo) PQconnectdb(const char *conninfo)
{ {
PGconn *conn; PGconn *conn;
const char *tmp; char *tmp;
/* ---------- /* ----------
* Allocate memory for the conn structure * Allocate memory for the conn structure
@ -284,8 +284,8 @@ PQconndefaults(void)
PGconn * PGconn *
PQsetdbLogin(const char *pghost, const char *pgport, const char *pgoptions, const char *pgtty, const char *dbName, const char *login, const char *pwd) PQsetdbLogin(const char *pghost, const char *pgport, const char *pgoptions, const char *pgtty, const char *dbName, const char *login, const char *pwd)
{ {
PGconn *conn; PGconn *conn;
const char *tmp; char *tmp;
/* An error message from some service we call. */ /* An error message from some service we call. */
bool error = FALSE; bool error = FALSE;
@ -1137,7 +1137,7 @@ conninfo_parse(const char *conninfo, char *errorMessage)
char *pname; char *pname;
char *pval; char *pval;
char *buf; char *buf;
const char *tmp; char *tmp;
char *cp; char *cp;
char *cp2; char *cp2;
PQconninfoOption *option; PQconninfoOption *option;
@ -1343,8 +1343,8 @@ conninfo_parse(const char *conninfo, char *errorMessage)
} }
static const char * static char *
conninfo_getval(const char *keyword) conninfo_getval(char *keyword)
{ {
PQconninfoOption *option; PQconninfoOption *option;

View File

@ -9,7 +9,7 @@
* didn't really belong there. * didn't really belong there.
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-print.c,v 1.18 1999/02/04 03:20:39 momjian Exp $ * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-print.c,v 1.19 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; p = border;
if (po->standard) if (po->standard)
{ {
const char *fs = po->fieldSep; char *fs = po->fieldSep;
while (*fs++) while (*fs++)
*p++ = '+'; *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++ = '-'); for (len = fieldMax[j] + (po->standard ? 2 : 0); len--; *p++ = '-');
if (po->standard || (j + 1) < nFields) if (po->standard || (j + 1) < nFields)
{ {
const char *fs = po->fieldSep; char *fs = po->fieldSep;
while (*fs++) while (*fs++)
*p++ = '+'; *p++ = '+';

View File

@ -6,7 +6,7 @@
* *
* Copyright (c) 1994, Regents of the University of California * Copyright (c) 1994, Regents of the University of California
* *
* $Id: libpq-fe.h,v 1.46 1999/02/04 03:20:39 momjian Exp $ * $Id: libpq-fe.h,v 1.47 1999/02/05 04:25:55 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -100,9 +100,9 @@ extern "C"
pqbool html3; /* output html tables */ pqbool html3; /* output html tables */
pqbool expanded; /* expand tables */ pqbool expanded; /* expand tables */
pqbool pager; /* use pager for output if needed */ pqbool pager; /* use pager for output if needed */
const char *fieldSep; /* field separator */ char *fieldSep; /* field separator */
const char *tableOpt; /* insert to HTML <table ...> */ char *tableOpt; /* insert to HTML <table ...> */
const char *caption; /* HTML <caption> */ char *caption; /* HTML <caption> */
char **fieldName; /* null terminated array of repalcement char **fieldName; /* null terminated array of repalcement
* field names */ * field names */
} PQprintOpt; } PQprintOpt;
@ -113,12 +113,12 @@ extern "C"
*/ */
typedef struct _PQconninfoOption typedef struct _PQconninfoOption
{ {
const char *keyword; /* The keyword of the option */ char *keyword; /* The keyword of the option */
const char *envvar; /* Fallback environment variable name */ char *envvar; /* Fallback environment variable name */
const char *compiled; /* Fallback compiled in default value */ char *compiled; /* Fallback compiled in default value */
char *val; /* Options value */ char *val; /* Options value */
const char *label; /* Label for field in connect dialog */ char *label; /* Label for field in connect dialog */
const char *dispchar; /* Character to display for this field */ char *dispchar; /* Character to display for this field */
/* in a connect dialog. Values are: */ /* in a connect dialog. Values are: */
/* "" Display entered value as is */ /* "" Display entered value as is */
/* "*" Password field - hide value */ /* "*" Password field - hide value */