diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-07-21 21:59:03 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-07-21 21:59:03 +0000 |
commit | f16449b777f8405538f6aa75a6ce059e51bb5936 (patch) | |
tree | be763ce5fbb67290826f0a1e1d85a628e5409dca /gcc/java/jcf-path.c | |
parent | ba059ac08df083b778d3285145cf7158756e612b (diff) | |
download | gcc-f16449b777f8405538f6aa75a6ce059e51bb5936.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55630 138bc75d-0d04-0410-961f-82ee72b054a4
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 b68a538f45b..ce05088ba81 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); } |