]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
parse.y (DIR_SEPARATOR): Don't define.
authorRanjit Mathew <rmathew@hotmail.com>
Mon, 9 Sep 2002 17:56:37 +0000 (17:56 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Mon, 9 Sep 2002 17:56:37 +0000 (17:56 +0000)
2002-09-09  Ranjit Mathew  <rmathew@hotmail.com>

* parse.y (DIR_SEPARATOR): Don't define.
(check_class_interface_creation): Use IS_DIR_SEPARATOR.

From-SVN: r56973

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

index 2eb6a9d2d92c8f0cc2c84e8564fab24f5327f53b..b95e8aec40b07c594007b620a9e5dd9d32cbea04 100644 (file)
@@ -1,3 +1,8 @@
+2002-09-09  Ranjit Mathew  <rmathew@hotmail.com>
+
+       * parse.y (DIR_SEPARATOR): Don't define.
+       (check_class_interface_creation): Use IS_DIR_SEPARATOR.
+
 2002-08-28  Andrew Haley  <aph@redhat.com>
 
        * verify.c (verify_jvm_instructions): Allow exception handler
index 30a2dce28ac8089e0f42d68c19934ccc9e3f47f8..aa593f9f072d2664a666d45a60c47dc5d4e35a3b 100644 (file)
@@ -69,10 +69,6 @@ definitions and other extensions.  */
 #include "debug.h"
 #include "tree-inline.h"
 
-#ifndef DIR_SEPARATOR
-#define DIR_SEPARATOR '/'
-#endif
-
 /* Local function prototypes */
 static char *java_accstring_lookup PARAMS ((int));
 static void  classitf_redefinition_error PARAMS ((const char *,tree, tree, tree));
@@ -3449,12 +3445,11 @@ check_class_interface_creation (is_interface, flags, raw_name, qualified_name, d
     {
       const char *f;
 
-      /* Contains OS dependent assumption on path separator. FIXME */
       for (f = &input_filename [strlen (input_filename)];
-          f != input_filename && f[0] != '/' && f[0] != DIR_SEPARATOR;
+          f != input_filename && ! IS_DIR_SEPARATOR (f[0]);
           f--)
        ;
-      if (f[0] == '/' || f[0] == DIR_SEPARATOR)
+      if (IS_DIR_SEPARATOR (f[0]))
        f++;
       if (strncmp (IDENTIFIER_POINTER (raw_name),
                   f , IDENTIFIER_LENGTH (raw_name)) ||
@@ -12916,7 +12911,7 @@ try_builtin_assignconv (wfl_op1, lhs_type, rhs)
 
   /* Try a narrowing primitive conversion (5.1.3):
        - expression is a constant expression of type byte, short, char,
-         or int, AND
+         or int, AND
        - variable is byte, short or char AND
        - The value of the expression is representable in the type of the
          variable */