Commit ef963bc8 by Mohan Embar Committed by Tom Tromey

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
parent b20cbca2
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.
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment