]> gcc.gnu.org Git - gcc.git/commitdiff
jcf-io.c (find_class): use DIR_SEPARATOR instead of '/' when computing java source...
authorMohan Embar <gnustuff@thisiscool.com>
Sun, 20 Apr 2003 22:45:02 +0000 (22:45 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Sun, 20 Apr 2003 22:45:02 +0000 (22:45 +0000)
2003-04-20  Mohan Embar  <gnustuff@thisiscool.com>

* jcf-io.c (find_class): use DIR_SEPARATOR instead of
'/' when computing java source filename

From-SVN: r65867

gcc/java/ChangeLog
gcc/java/jcf-io.c

index 342974960718ce8808532840497b110be07ad2e3..369765d1c57970fbf9d421c598cd10cab863b10f 100644 (file)
@@ -1,3 +1,8 @@
+2003-04-20  Mohan Embar  <gnustuff@thisiscool.com>
+
+       * jcf-io.c (find_class): use DIR_SEPARATOR instead of
+       '/' when computing java source filename
+
 2003-04-13  Tom Tromey  <tromey@redhat.com>
 
        * gjavah.c (print_c_decl): Indentation fix.
index d673ec8c7cc346ee0d8cfd93301e959ed1165bf5..fb8d00fa9fbca66bf847fe38d0ea1fc0707e86f1 100644 (file)
@@ -514,7 +514,8 @@ find_class (const char *classname, int classname_length, JCF *jcf,
          strcpy (java_buffer, path_name);
          l = strlen (java_buffer);
          for (m = 0; m < classname_length; ++m)
-           java_buffer[m + l] = (classname[m] == '.' ? '/' : classname[m]);
+           java_buffer[m + l] = (classname[m] == '.'
+                                 ? DIR_SEPARATOR : classname[m]);
          strcpy (java_buffer + m + l, ".java");
          java = caching_stat (java_buffer, &java_buf);
          if (java == 0)
This page took 0.078251 seconds and 5 git commands to generate.