aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppfiles.c
diff options
context:
space:
mode:
authorZack Weinberg <zack@gcc.gnu.org>2003-07-03 04:24:01 +0000
committerZack Weinberg <zack@gcc.gnu.org>2003-07-03 04:24:01 +0000
commit3dce14083fc35cc2b60906577cf797e0ae49f1b8 (patch)
tree37ea22037f920e97ce155abc8dd8f4290af8dba6 /gcc/cppfiles.c
parentbacb96b24f038ebc8072abfcdb145ff6568a8554 (diff)
downloadgcc-3dce14083fc35cc2b60906577cf797e0ae49f1b8.zip
gcc-3dce14083fc35cc2b60906577cf797e0ae49f1b8.tar.gz
gcc-3dce14083fc35cc2b60906577cf797e0ae49f1b8.tar.bz2
system.h: Include filenames.h.
* system.h: Include filenames.h. (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define. (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined, define based on HAVE_DOS_BASED_FILE_SYSTEM. * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h * config/i386/xm-mingw32.h: Don't define HAVE_DOS_BASED_FILE_SYSTEM, DIR_SEPARATOR, or DIR_SEPARATOR_2. * doc/hostconfig.texi: Update to match. * cppfiles.c, gcc.c, gensupport.c, protoize.c, config/i386/cygwin.h: Use IS_ABSOLUTE_PATH throughout. * gcc.c (DIR_UP): Delete, unused. * protoize.c (IS_SAME_PATH): Define in terms of FILENAME_CMP. (is_abspath): Delete. java: * jcf-path.c: Don't default-define PATH_SEPARATOR nor DIR_SEPARATOR. Use FILENAME_CMP. * jcf-write.c: Don't default-define DIR_SEPARATOR. * jcf.h: Delete COMPARE_FILENAMES definition. From-SVN: r68863
Diffstat (limited to 'gcc/cppfiles.c')
-rw-r--r--gcc/cppfiles.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/cppfiles.c b/gcc/cppfiles.c
index ceb6413..019b005 100644
--- a/gcc/cppfiles.c
+++ b/gcc/cppfiles.c
@@ -547,7 +547,7 @@ cpp_included (cpp_reader *pfile, const char *fname)
char *name, *n;
splay_tree_node nd;
- if (IS_ABSOLUTE_PATHNAME (fname))
+ if (IS_ABSOLUTE_PATH (fname))
{
/* Just look it up. */
nd = splay_tree_lookup (pfile->all_include_files, (splay_tree_key) fname);
@@ -592,7 +592,7 @@ find_include_file (cpp_reader *pfile, const char *fname, int angle_brackets,
return NO_INCLUDE_PATH;
}
- if (IS_ABSOLUTE_PATHNAME (fname))
+ if (IS_ABSOLUTE_PATH (fname))
return open_file_pch (pfile, fname);
/* For #include_next, skip in the search path past the dir in which
@@ -962,7 +962,7 @@ read_name_map (cpp_reader *pfile, const char *dirname)
ptr->map_from = from;
/* Make the real filename absolute. */
- if (IS_ABSOLUTE_PATHNAME (to))
+ if (IS_ABSOLUTE_PATH (to))
ptr->map_to = to;
else
{