about summary refs log tree commit diff stats
path: root/src/UCdomap.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>1998-11-21 16:40:42 -0500
committerThomas E. Dickey <dickey@invisible-island.net>1998-11-21 16:40:42 -0500
commitd4a8ec3c8922a91d418bb9bc130c256c4e00d030 (patch)
treecfbc95b0f99be65ea5ffa312c9055552db804dfc /src/UCdomap.c
parent6d7ee0488b037f002a9fec0d060cc9842d5f8acd (diff)
downloadlynx-snapshots-d4a8ec3c8922a91d418bb9bc130c256c4e00d030.tar.gz
snapshot of project "lynx", label v2-8-2dev_5
Diffstat (limited to 'src/UCdomap.c')
-rw-r--r--src/UCdomap.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/UCdomap.c b/src/UCdomap.c
index 49599e74..2ce2ac2c 100644
--- a/src/UCdomap.c
+++ b/src/UCdomap.c
@@ -25,6 +25,8 @@
 #include <LYCharSets.h>
 #include <LYStrings.h>
 
+#include <LYLeaks.h>
+
 /*
  *  Include tables & parameters.
  */
@@ -67,6 +69,8 @@
 #include <mnem_suni.h>
 #endif /* NOTDEFINED */
 
+PUBLIC  char *UC_TEMPcharset = 0;	/* temporary in UCGetLYhndl_byMIME */
+
 /*
  *  Some of the code below, and some of the comments, are left in for
  *  historical reasons.  Not all those tables below are currently
@@ -1017,11 +1021,6 @@ PRIVATE void UCconsole_map_init NOARGS
 /*
  *  OK now, finally, some stuff that is more specifically for Lynx: - KW
  */
-#ifdef NOTDEFINED
-PUBLIC int UCGetcharset_byMIMEname PARAMS((CONST char * UC_MIMEcharset));
-PUBLIC int UCGetcharset_byLYNXname PARAMS((CONST char * UC_LYNXcharset));
-#endif /* NOTDEFINED */
-
 PUBLIC int UCTransUniChar ARGS2(
 	long,		unicode,
 	int,		charset_out)
@@ -1510,9 +1509,9 @@ PUBLIC int UCGetRawUniMode_byLYhndl ARGS1(
 PUBLIC int UCGetLYhndl_byMIME ARGS1(
 	CONST char *,	value)
 {
-  int i;
-  int LYhndl = -1;
-  char *UC_MIMEcharset = NULL;
+#define UC_MIMEcharset UC_TEMPcharset
+    int i;
+    int LYhndl = -1;
 
     if (!value || !(*value)) {
 	CTRACE(tfp, "UCGetLYhndl_byMIME: NULL argument instead of MIME name.\n");
@@ -1639,6 +1638,7 @@ PUBLIC int UCGetLYhndl_byMIME ARGS1(
 
     CTRACE(tfp, "UCGetLYhndl_byMIME: unrecognized MIME name \"%s\"\n", value);
     return -1;	/* returns -1 if no charset found by that MIME name */
+#undef UC_MIMEcharset
 }
 
 /*