merge from gcc
authorDJ Delorie <dj@redhat.com>
Tue, 18 Jun 2002 03:01:43 +0000 (03:01 +0000)
committerDJ Delorie <dj@redhat.com>
Tue, 18 Jun 2002 03:01:43 +0000 (03:01 +0000)
libiberty/ChangeLog
libiberty/lbasename.c

index 916995e5b12429398437af77c57bc6d11625b2da..06cb89f4b0e81d1c72e914194d34834b541858b2 100644 (file)
@@ -1,3 +1,8 @@
+2002-06-17  Douglas Rupp  <rupp@gnat.com>
+
+       * lbasename.c: Add 2002 to copyright.
+       (IS_DIR_SEPARATOR): Remove VMS junk.
+
 2002-06-05  Geoffrey Keating  <geoffk@redhat.com>
 
        * hashtab.c (htab_create): New stub function for backward
index cea0253887b89a34690f76c65fa8be3f7e59a79f..43cb73f0a1d736122e92d6bca2035bd69f4db045 100644 (file)
@@ -1,6 +1,6 @@
 /* Libiberty basename.  Like basename, but is not overridden by the
    system C library.
-   Copyright (C) 2001 Free Software Foundation, Inc.
+   Copyright (C) 2001, 2002 Free Software Foundation, Inc.
 
 This file is part of the libiberty library.
 Libiberty is free software; you can redistribute it and/or
@@ -53,19 +53,11 @@ and a path ending in @code{/} returns the empty string after it.
 #  endif
 #endif
 
-/* Define IS_DIR_SEPARATOR. VMS uses '::', ':', '[...]' and '<...>' to
-   separate the different components of a file specification.  It's a
-   bit of a stretch to call ':', ']' and '>' directory separators, so
-   just define the test to find the file name component.  */
-#ifdef VMS
-#  define IS_DIR_SEPARATOR(ch) ((ch) == ':' || (ch) == ']' || (ch) == '>')
+#ifndef DIR_SEPARATOR_2
+#  define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
 #else
-#  ifndef DIR_SEPARATOR_2
-#    define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
-#  else
-#    define IS_DIR_SEPARATOR(ch) \
+#  define IS_DIR_SEPARATOR(ch) \
        (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
-#  endif
 #endif
 
 const char *
This page took 0.027686 seconds and 4 git commands to generate.