mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +03:00
Remove GetDatabaseName/Path and use globals. Make consts later.
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/init/miscinit.c,v 1.13 1998/04/05 05:51:58 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/init/miscinit.c,v 1.14 1998/04/05 21:04:36 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -47,9 +47,7 @@
|
||||
extern char *getenv(const char *name); /* XXX STDLIB */
|
||||
|
||||
/* from globals.c */
|
||||
extern char *DatabaseName;
|
||||
extern char *UserName;
|
||||
extern char *DatabasePath;
|
||||
|
||||
#ifdef CYR_RECODE
|
||||
unsigned char RecodeForwTable[128];
|
||||
@ -224,27 +222,6 @@ GetProcessingMode()
|
||||
* ----------------------------------------------------------------
|
||||
*/
|
||||
|
||||
/*
|
||||
* GetDatabasePath --
|
||||
* Returns path to database.
|
||||
*
|
||||
*/
|
||||
const char *
|
||||
GetDatabasePath()
|
||||
{
|
||||
return DatabasePath;
|
||||
}
|
||||
|
||||
/*
|
||||
* GetDatabaseName --
|
||||
* Returns name of database.
|
||||
*/
|
||||
const char *
|
||||
GetDatabaseName()
|
||||
{
|
||||
return DatabaseName;
|
||||
}
|
||||
|
||||
void
|
||||
SetDatabasePath(char *path)
|
||||
{
|
||||
|
Reference in New Issue
Block a user