+1999-09-07 Tom Tromey <tromey@cygnus.com>
+
+ * gjavah.c (add_class_decl): Generate include for gcj/array.h, not
+ java-array.h.
+ (decode_signature_piece): Don't emit "::" in JArray<>.
+ (print_namelet): Only print trailing `;' when printing a class.
+
Fri Sep 10 10:32:32 1999 Bernd Schmidt <bernds@cygnus.co.uk>
* java-tree.h: Delete declarations for all tree nodes now moved to
/* We have to generate a reference to JArray here, so that
our output matches what the compiler does. */
++signature;
- fputs ("JArray<::", stream);
+ fputs ("JArray<", stream);
while (signature < limit && *signature != ';')
{
int ch = UTF8_GET (signature, limit);
{
for (i = 0; i < depth; ++i)
fputc (' ', out);
- fputs ("};\n", out);
+ fputs ("}\n", out);
+ /* Only print a `;' when printing a class. C++ is evil. */
+ if (name->is_class)
+ fputs (";", out);
}
free (name->name);
/* If we see an array, then we include the array header. */
if (s[i] == '[')
{
- print_include (out, "java-array", -1);
+ print_include (out, "gcj/array", -1);
continue;
}