mirror of git://gcc.gnu.org/git/gcc.git
gjavah.c (add_class_decl): Generate include for gcj/array.h, not java-array.h.
* 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. From-SVN: r29277
This commit is contained in:
parent
973a648b87
commit
512d594b4f
|
|
@ -1,3 +1,10 @@
|
||||||
|
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>
|
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
|
* java-tree.h: Delete declarations for all tree nodes now moved to
|
||||||
|
|
|
||||||
|
|
@ -726,7 +726,7 @@ decode_signature_piece (stream, signature, limit, need_space)
|
||||||
/* We have to generate a reference to JArray here, so that
|
/* We have to generate a reference to JArray here, so that
|
||||||
our output matches what the compiler does. */
|
our output matches what the compiler does. */
|
||||||
++signature;
|
++signature;
|
||||||
fputs ("JArray<::", stream);
|
fputs ("JArray<", stream);
|
||||||
while (signature < limit && *signature != ';')
|
while (signature < limit && *signature != ';')
|
||||||
{
|
{
|
||||||
int ch = UTF8_GET (signature, limit);
|
int ch = UTF8_GET (signature, limit);
|
||||||
|
|
@ -1215,7 +1215,10 @@ print_namelet (out, name, depth)
|
||||||
{
|
{
|
||||||
for (i = 0; i < depth; ++i)
|
for (i = 0; i < depth; ++i)
|
||||||
fputc (' ', out);
|
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);
|
free (name->name);
|
||||||
|
|
@ -1247,7 +1250,7 @@ add_class_decl (out, jcf, signature)
|
||||||
/* If we see an array, then we include the array header. */
|
/* If we see an array, then we include the array header. */
|
||||||
if (s[i] == '[')
|
if (s[i] == '[')
|
||||||
{
|
{
|
||||||
print_include (out, "java-array", -1);
|
print_include (out, "gcj/array", -1);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue