summaryrefslogtreecommitdiff
path: root/gcc/c-lex.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-09-21 00:56:50 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-09-21 00:56:50 +0000
commitfc8214eabd19bdf486dbb5214ca2a55aed7bad13 (patch)
tree355b6cb7f3bebc6ed20e9e68836094752eaeaae6 /gcc/c-lex.c
parentd83ffa05f4b229643c5e91e2e5cc97ea57b7ab8b (diff)
downloadgcc-fc8214eabd19bdf486dbb5214ca2a55aed7bad13.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22511 138bc75d-0d04-0410-961f-82ee72b054a4
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 a90d3b58f11..e361f5bbe09 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;