aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorFelix Lee <flee@cygnus.com>1998-09-21 00:57:11 +0000
committerJeff Law <law@gcc.gnu.org>1998-09-20 18:57:11 -0600
commit3e81ad1642ae0e630417fa435723cee7cd5d58c2 (patch)
treee06bf05542b30094971c869d653a7c4c66d3551a /gcc
parentb2a1e45827eae56662a02276a9db842d525740c6 (diff)
downloadgcc-3e81ad1642ae0e630417fa435723cee7cd5d58c2.zip
gcc-3e81ad1642ae0e630417fa435723cee7cd5d58c2.tar.gz
gcc-3e81ad1642ae0e630417fa435723cee7cd5d58c2.tar.bz2
* lex.c (init_lex): Use getenv ("LANG"), not GET_ENVIRONMENT ().
From-SVN: r22512
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/lex.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index dcbb93b..df110e7 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,7 @@
+Mon Sep 21 01:53:05 1998 Felix Lee <flee@cygnus.com>
+
+ * lex.c (init_lex): Use getenv ("LANG"), not GET_ENVIRONMENT ().
+
1998-09-20 Mark Mitchell <mark@markmitchell.com>
* class.c (maybe_warn_about_overly_private_class): Reformat.
diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c
index e2ab945..46d26ae 100644
--- a/gcc/cp/lex.c
+++ b/gcc/cp/lex.c
@@ -42,10 +42,6 @@ Boston, MA 02111-1307, USA. */
#ifdef MULTIBYTE_CHARS
#include "mbchar.h"
#include <locale.h>
-
-#ifndef GET_ENVIRONMENT
-#define GET_ENVIRONMENT(ENV_VALUE,ENV_NAME) ((ENV_VALUE) = getenv (ENV_NAME))
-#endif
#endif
#define obstack_chunk_alloc xmalloc
@@ -475,7 +471,7 @@ init_parse (filename)
#ifdef MULTIBYTE_CHARS
/* Change to the native locale for multibyte conversions. */
setlocale (LC_CTYPE, "");
- GET_ENVIRONMENT (literal_codeset, "LANG");
+ literal_codeset = getenv ("LANG");
#endif
#if USE_CPPLIB