parse.y (check_class_interface_creation): Use DIR_SEPARATOR consistently.
authorTom Tromey <tromey@cygnus.com>
Fri, 18 Dec 1998 10:01:34 +0000 (10:01 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Fri, 18 Dec 1998 10:01:34 +0000 (10:01 +0000)
* parse.y (check_class_interface_creation): Use DIR_SEPARATOR
consistently.

From-SVN: r24370

gcc/java/ChangeLog
gcc/java/parse.c
gcc/java/parse.y

index 300fba5..9126aaa 100644 (file)
@@ -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.
index ce9f557..9230323 100644 (file)
@@ -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)) ||
index 41d9f91..e21e905 100644 (file)
@@ -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)) ||