Removed non-standard and undocumented MCAppPath feature
This commit is contained in:
parent
be0eb1df9e
commit
57e2aaa1a7
@ -31,7 +31,7 @@ up-to-date. Many thanks.
|
||||
******************************************************************/
|
||||
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
static char *rcsid = "$Id: msgcat.c,v 1.4 1994/05/29 22:14:33 jtc Exp $";
|
||||
static char *rcsid = "$Id: msgcat.c,v 1.5 1994/10/05 17:33:50 jtc Exp $";
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
/* Edit History
|
||||
@ -76,8 +76,6 @@ static char *rcsid = "$Id: msgcat.c,v 1.4 1994/05/29 22:14:33 jtc Exp $";
|
||||
|
||||
#define NLERR ((nl_catd) -1)
|
||||
|
||||
char *MCAppPath = NULL;
|
||||
|
||||
static nl_catd loadCat();
|
||||
static nl_catd loadSet();
|
||||
|
||||
@ -102,15 +100,6 @@ int type;
|
||||
if ((nlspath = (char *) getenv("NLSPATH")) == NULL) {
|
||||
nlspath = "/usr/share/nls/%L/%N.cat:/usr/share/nls/%N/%L";
|
||||
}
|
||||
if (MCAppPath) {
|
||||
tmppath = (char *) malloc(strlen(nlspath) + strlen(MCAppPath) + 3);
|
||||
if (!tmppath) return(NLERR);
|
||||
strcpy(tmppath, nlspath);
|
||||
if (tmppath[strlen(tmppath)-1] != ':' && *MCAppPath != ':')
|
||||
strcat(tmppath, ":");
|
||||
strcat(tmppath, MCAppPath);
|
||||
nlspath = tmppath;
|
||||
}
|
||||
|
||||
len = strlen(nlspath);
|
||||
base = cptr = (char *) malloc(len + 2);
|
||||
|
@ -99,8 +99,6 @@ up-to-date. Many thanks.
|
||||
#define MCLoadBySet 0 /* Load entire sets as they are used */
|
||||
#define MCLoadAll 1 /* Load entire DB on catopen */
|
||||
|
||||
extern char *MCAppPath; /* Additional search path for strings (appended) */
|
||||
|
||||
/*
|
||||
* MCOffsetT - Union to handle both disk and runtime pointers
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user