diff options
author | Douglas B Rupp <rupp@gnat.com> | 2002-06-18 02:04:33 +0000 |
---|---|---|
committer | Douglas Rupp <rupp@gcc.gnu.org> | 2002-06-18 02:04:33 +0000 |
commit | 53309d5c8ab668bfad5b0dd9691142cb73d613fe (patch) | |
tree | 3b677927528a21c6523eb0f9cbbcaf3d8b5e90f1 /libiberty/lbasename.c | |
parent | 820d4b1b9ef90c0f7f5ffb9767571ed0da52ab2e (diff) | |
download | gcc-53309d5c8ab668bfad5b0dd9691142cb73d613fe.zip gcc-53309d5c8ab668bfad5b0dd9691142cb73d613fe.tar.gz gcc-53309d5c8ab668bfad5b0dd9691142cb73d613fe.tar.bz2 |
lbasename.c: Add 2002 to copyright.
2002-06-17 Douglas Rupp <rupp@gnat.com>
* lbasename.c: Add 2002 to copyright.
(IS_DIR_SEPARATOR): Remove VMS junk.
From-SVN: r54729
Diffstat (limited to 'libiberty/lbasename.c')
-rw-r--r-- | libiberty/lbasename.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/libiberty/lbasename.c b/libiberty/lbasename.c index cea0253..43cb73f 100644 --- a/libiberty/lbasename.c +++ b/libiberty/lbasename.c @@ -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 * |