diff options
author | Tom Tromey <tromey@cygnus.com> | 1998-12-18 10:01:34 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 1998-12-18 10:01:34 +0000 |
commit | 847fe79126aff98c81d1c6c4e281954c172a74de (patch) | |
tree | f55535224453b1a4afd5a46525b3a98d89afafd2 /gcc | |
parent | 31f7273860e06d33208c493bed7c6be5c4a02db8 (diff) | |
download | gcc-847fe79126aff98c81d1c6c4e281954c172a74de.zip gcc-847fe79126aff98c81d1c6c4e281954c172a74de.tar.gz gcc-847fe79126aff98c81d1c6c4e281954c172a74de.tar.bz2 |
parse.y (check_class_interface_creation): Use DIR_SEPARATOR consistently.
* parse.y (check_class_interface_creation): Use DIR_SEPARATOR
consistently.
From-SVN: r24370
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/java/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/java/parse.c | 2 | ||||
-rw-r--r-- | gcc/java/parse.y | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 300fba5..9126aaa 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,8 @@ +1998-12-18 Tom Tromey <tromey@cygnus.com> + + * parse.y (check_class_interface_creation): Use DIR_SEPARATOR + consistently. + 1998-12-17 Tom Tromey <tromey@cygnus.com> * parse.y (DIR_SEPARATOR): New define. diff --git a/gcc/java/parse.c b/gcc/java/parse.c index ce9f557..9230323 100644 --- a/gcc/java/parse.c +++ b/gcc/java/parse.c @@ -5423,7 +5423,7 @@ check_class_interface_creation (is_interface, flags, raw_name, qualified_name, d f != input_filename && f[0] != '/' && f[0] != DIR_SEPARATOR; f--) ; - if (f[0] == '/') + if (f[0] == '/' || f[0] == DIR_SEPARATOR) f++; if (strncmp (IDENTIFIER_POINTER (raw_name), f , IDENTIFIER_LENGTH (raw_name)) || diff --git a/gcc/java/parse.y b/gcc/java/parse.y index 41d9f91..e21e905 100644 --- a/gcc/java/parse.y +++ b/gcc/java/parse.y @@ -2785,7 +2785,7 @@ check_class_interface_creation (is_interface, flags, raw_name, qualified_name, d f != input_filename && f[0] != '/' && f[0] != DIR_SEPARATOR; f--) ; - if (f[0] == '/') + if (f[0] == '/' || f[0] == DIR_SEPARATOR) f++; if (strncmp (IDENTIFIER_POINTER (raw_name), f , IDENTIFIER_LENGTH (raw_name)) || |