summaryrefslogtreecommitdiff
path: root/gcc/cppinit.c
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.co.uk>2002-07-21 21:59:03 +0000
committerNeil Booth <neil@gcc.gnu.org>2002-07-21 21:59:03 +0000
commit2f8dd115d2bf15e3866cbe0b98c73145853681f8 (patch)
treebe763ce5fbb67290826f0a1e1d85a628e5409dca /gcc/cppinit.c
parent565083069d08d22e1c8882948fba1e90dcde1388 (diff)
downloadgcc-2f8dd115d2bf15e3866cbe0b98c73145853681f8.tar.gz
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/cppinit.c')
-rw-r--r--gcc/cppinit.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/gcc/cppinit.c b/gcc/cppinit.c
index 72e26ce87de..a6be4aa6736 100644
--- a/gcc/cppinit.c
+++ b/gcc/cppinit.c
@@ -29,12 +29,6 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "mkdeps.h"
#include "cppdefault.h"
-/* Predefined symbols, built-in macros, and the default include path. */
-
-#ifndef GET_ENV_PATH_LIST
-#define GET_ENV_PATH_LIST(VAR,NAME) do { (VAR) = getenv (NAME); } while (0)
-#endif
-
/* Windows does not natively support inodes, and neither does MSDOS.
Cygwin's emulation can generate non-unique inodes, so don't use it.
VMS has non-numeric inodes. */
@@ -729,23 +723,23 @@ init_standard_includes (pfile)
etc. specify an additional list of directories to be searched as
if specified with -isystem, for the language indicated. */
- GET_ENV_PATH_LIST (path, "CPATH");
+ GET_ENVIRONMENT (path, "CPATH");
if (path != 0 && *path != 0)
path_include (pfile, path, BRACKET);
switch ((CPP_OPTION (pfile, objc) << 1) + CPP_OPTION (pfile, cplusplus))
{
case 0:
- GET_ENV_PATH_LIST (path, "C_INCLUDE_PATH");
+ GET_ENVIRONMENT (path, "C_INCLUDE_PATH");
break;
case 1:
- GET_ENV_PATH_LIST (path, "CPLUS_INCLUDE_PATH");
+ GET_ENVIRONMENT (path, "CPLUS_INCLUDE_PATH");
break;
case 2:
- GET_ENV_PATH_LIST (path, "OBJC_INCLUDE_PATH");
+ GET_ENVIRONMENT (path, "OBJC_INCLUDE_PATH");
break;
case 3:
- GET_ENV_PATH_LIST (path, "OBJCPLUS_INCLUDE_PATH");
+ GET_ENVIRONMENT (path, "OBJCPLUS_INCLUDE_PATH");
break;
}
if (path != 0 && *path != 0)