]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR other/13272 (libiberty/lbasename.c has incorrect DIR_SEPARATOR)
authorDaniel Jacobowitz <drow@mvista.com>
Mon, 22 Dec 2003 19:21:37 +0000 (19:21 +0000)
committerDaniel Jacobowitz <drow@gcc.gnu.org>
Mon, 22 Dec 2003 19:21:37 +0000 (19:21 +0000)
PR debug/13272
* Makefile.in (lbasename.o): Depend on filenames.h.
* lbasename.c: Include "filenames.h" instead of defining
its macros locally.

From-SVN: r74943

libiberty/ChangeLog
libiberty/Makefile.in
libiberty/lbasename.c

index c1de8dec4957beaa1505e3bf44db50103c36322c..05a9b9066ced31835a688c9644aff467eb946beb 100644 (file)
@@ -1,3 +1,10 @@
+2003-12-22  Daniel Jacobowitz  <drow@mvista.com>
+
+       PR debug/13272
+       * Makefile.in (lbasename.o): Depend on filenames.h.
+       * lbasename.c: Include "filenames.h" instead of defining
+       its macros locally.
+
 2003-12-22  Ian Lance Taylor  <ian@wasabisystems.com>
 
        * cp-demangle.c (CP_DYNAMIC_ARRAYS): Define if compiler supports
index 5fff39be8b832ce8ae197e44f590196c42bd9f92..f3ff338fa2df239954da4ad45ea21b70274d91de 100644 (file)
@@ -451,7 +451,7 @@ hashtab.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/hashtab.h \
 hex.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
        $(INCDIR)/safe-ctype.h
 lbasename.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
-       $(INCDIR)/safe-ctype.h
+       $(INCDIR)/safe-ctype.h $(INCDIR)/filenames.h
 lrealpath.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
 make-relative-prefix.o: config.h $(INCDIR)/ansidecl.h \
        $(INCDIR)/libiberty.h
index 43cb73f0a1d736122e92d6bca2035bd69f4db045..200a87f23871c2313b020fde2063bd4668f5957c 100644 (file)
@@ -40,25 +40,7 @@ and a path ending in @code{/} returns the empty string after it.
 #include "ansidecl.h"
 #include "libiberty.h"
 #include "safe-ctype.h"
-
-#ifndef DIR_SEPARATOR
-#  define DIR_SEPARATOR '/'
-#endif
-
-#if defined (_WIN32) || defined (__MSDOS__) \
-    || defined (__DJGPP__) || defined (__OS2__)
-#  define HAVE_DOS_BASED_FILE_SYSTEM
-#  ifndef DIR_SEPARATOR_2 
-#    define DIR_SEPARATOR_2 '\\'
-#  endif
-#endif
-
-#ifndef DIR_SEPARATOR_2
-#  define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
-#else
-#  define IS_DIR_SEPARATOR(ch) \
-       (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
-#endif
+#include "filenames.h"
 
 const char *
 lbasename (name)