From: Tom Tromey Date: Fri, 18 Dec 1998 10:01:34 +0000 (+0000) Subject: parse.y (check_class_interface_creation): Use DIR_SEPARATOR consistently. X-Git-Tag: prereleases/libgcj-0.1~1582 X-Git-Url: https://gcc.gnu.org/git/?a=commitdiff_plain;h=847fe79126aff98c81d1c6c4e281954c172a74de;p=gcc.git parse.y (check_class_interface_creation): Use DIR_SEPARATOR consistently. * parse.y (check_class_interface_creation): Use DIR_SEPARATOR consistently. From-SVN: r24370 --- diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 300fba5b3589..9126aaa82bb3 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,8 @@ +1998-12-18 Tom Tromey + + * parse.y (check_class_interface_creation): Use DIR_SEPARATOR + consistently. + 1998-12-17 Tom Tromey * parse.y (DIR_SEPARATOR): New define. diff --git a/gcc/java/parse.c b/gcc/java/parse.c index ce9f557ac088..9230323cf107 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 41d9f919b785..e21e905cb424 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)) ||