aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-lex.c
diff options
context:
space:
mode:
authorFelix Lee <flee@cygnus.com>1998-09-21 00:56:50 +0000
committerJeff Law <law@gcc.gnu.org>1998-09-20 18:56:50 -0600
commitb2a1e45827eae56662a02276a9db842d525740c6 (patch)
tree355b6cb7f3bebc6ed20e9e68836094752eaeaae6 /gcc/c-lex.c
parent717f76d8fcfd3e6f4ba83fa18882e6b585835844 (diff)
downloadgcc-b2a1e45827eae56662a02276a9db842d525740c6.zip
gcc-b2a1e45827eae56662a02276a9db842d525740c6.tar.gz
gcc-b2a1e45827eae56662a02276a9db842d525740c6.tar.bz2
c-lex.c (init_lex): Use getenv ("LANG"), not GET_ENVIRONMENT ().
* c-lex.c (init_lex): Use getenv ("LANG"), not GET_ENVIRONMENT (). * cccp.c (main): Likewise. * gcc.c (process_command): Similarly for "GCC_EXEC_PREFIX". * cccp.c, collect2.c, cpplib.c, gcc.c, config/i386/xm-cygwin32.h: Rename GET_ENVIRONMENT to GET_ENV_PATH_LIST, and fix some macro-use bugs. From-SVN: r22511
Diffstat (limited to 'gcc/c-lex.c')
-rw-r--r--gcc/c-lex.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gcc/c-lex.c b/gcc/c-lex.c
index a90d3b5..e361f5b 100644
--- a/gcc/c-lex.c
+++ b/gcc/c-lex.c
@@ -36,10 +36,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 /* MULTIBYTE_CHARS */
#if USE_CPPLIB
@@ -230,7 +226,7 @@ init_lex ()
#ifdef MULTIBYTE_CHARS
/* Change to the native locale for multibyte conversions. */
setlocale (LC_CTYPE, "");
- GET_ENVIRONMENT (literal_codeset, "LANG");
+ literal_codeset = getenv ("LANG");
#endif
maxtoken = 40;