diff options
author | Neil Booth <neil@daikokuya.co.uk> | 2002-07-21 21:59:03 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2002-07-21 21:59:03 +0000 |
commit | 2f8dd115d2bf15e3866cbe0b98c73145853681f8 (patch) | |
tree | be763ce5fbb67290826f0a1e1d85a628e5409dca /gcc/java/jcf-path.c | |
parent | 565083069d08d22e1c8882948fba1e90dcde1388 (diff) | |
download | gcc-2f8dd115d2bf15e3866cbe0b98c73145853681f8.zip gcc-2f8dd115d2bf15e3866cbe0b98c73145853681f8.tar.gz gcc-2f8dd115d2bf15e3866cbe0b98c73145853681f8.tar.bz2 |
c-lex.c (GET_ENVIRONMENT): Remove.
* c-lex.c (GET_ENVIRONMENT): Remove.
* collect2.c (GET_ENV_PATH_LIST): Remove.
(prefix_from_env): Use GET_ENVIRONMENT.
* cppinit.c (GET_ENV_PATH_LIST): Remove.
(init_standard_includes): Use GET_ENVIRONMENT.
* defaults.h (GET_ENVIRONMENT): Define here if not already.
* gcc.c (GET_ENV_PATH_LIST): Remove.
(make_relative_prefix, process_command): Update.
* protoize.c (GET_ENV_PATH_LIST): Remove.
(do_processing): Update.
java:
* jcf-path.c (GET_ENV_PATH_LIST): Remove.
(jcf_path_init): Use GET_ENVIRONMENT.
From-SVN: r55630
Diffstat (limited to 'gcc/java/jcf-path.c')
-rw-r--r-- | gcc/java/jcf-path.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/gcc/java/jcf-path.c b/gcc/java/jcf-path.c index b68a538..ce05088 100644 --- a/gcc/java/jcf-path.c +++ b/gcc/java/jcf-path.c @@ -30,12 +30,6 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */ #include "jcf.h" -/* Some boilerplate that really belongs in a header. */ - -#ifndef GET_ENV_PATH_LIST -#define GET_ENV_PATH_LIST(VAR,NAME) do { (VAR) = getenv (NAME); } while (0) -#endif - /* By default, colon separates directories in a path. */ #ifndef PATH_SEPARATOR #define PATH_SEPARATOR ':' @@ -244,7 +238,7 @@ jcf_path_init () sep[0] = DIR_SEPARATOR; sep[1] = '\0'; - GET_ENV_PATH_LIST (cp, "GCC_EXEC_PREFIX"); + GET_ENVIRONMENT (cp, "GCC_EXEC_PREFIX"); if (cp) { try = alloca (strlen (cp) + 50); @@ -315,7 +309,7 @@ jcf_path_init () jcf_path_extdirs_arg (extdirs); } - GET_ENV_PATH_LIST (cp, "CLASSPATH"); + GET_ENVIRONMENT (cp, "CLASSPATH"); add_path (&classpath_env, cp, 0); } |