diff options
author | Mohan Embar <gnustuff@thisiscool.com> | 2003-04-20 22:45:02 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2003-04-20 22:45:02 +0000 |
commit | ef963bc8a17d341114bde2cbc082830f92455f0f (patch) | |
tree | 5c604c64bf79db6ce0671ba2230c9fa32a759b0f | |
parent | b20cbca237158906c7d24b32a4e77babbebf9a1c (diff) | |
download | gcc-ef963bc8a17d341114bde2cbc082830f92455f0f.zip gcc-ef963bc8a17d341114bde2cbc082830f92455f0f.tar.gz gcc-ef963bc8a17d341114bde2cbc082830f92455f0f.tar.bz2 |
jcf-io.c (find_class): use DIR_SEPARATOR instead of '/' when computing java source filename
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
-rw-r--r-- | gcc/java/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/java/jcf-io.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 3429749..369765d 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -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. diff --git a/gcc/java/jcf-io.c b/gcc/java/jcf-io.c index d673ec8..fb8d00f 100644 --- a/gcc/java/jcf-io.c +++ b/gcc/java/jcf-io.c @@ -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) |