diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-12-17 20:25:59 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-12-17 20:25:59 +0000 |
commit | eeb37698dbfd6d4bd3f0667aca2c630d9433cc3c (patch) | |
tree | 89f01c81a083befe0fad8721ab3c8b3687704455 /gcc/java/gjavah.c | |
parent | 67cd51b81ad8f3567a81e426786a8e59bde1984b (diff) | |
download | gcc-eeb37698dbfd6d4bd3f0667aca2c630d9433cc3c.tar.gz |
* gjavah.c (decode_signature_piece): Print "::" in JArray<>. This
fixes PR gcj/119.
(process_file): Use `\n\' at end of each line in string.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30997 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/gjavah.c')
-rw-r--r-- | gcc/java/gjavah.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gcc/java/gjavah.c b/gcc/java/gjavah.c index a29cb62b87a..12cb72b0f05 100644 --- a/gcc/java/gjavah.c +++ b/gcc/java/gjavah.c @@ -726,7 +726,8 @@ decode_signature_piece (stream, signature, limit, need_space) /* We have to generate a reference to JArray here, so that our output matches what the compiler does. */ ++signature; - fputs ("JArray<", stream); + /* Space between `<' and `:' to avoid C++ digraphs. */ + fputs ("JArray< ::", stream); while (signature < limit && *signature != ';') { int ch = UTF8_GET (signature, limit); @@ -1357,11 +1358,11 @@ DEFUN(process_file, (jcf, out), out); else { - fputs ("// This file was created by `gcjh -stubs'. It is -*- c++ -*-. -// -// This file is intended to give you a head start on implementing native -// methods using CNI. -// Be aware: running `gcjh -stubs' once more for this class may overwrite any + fputs ("// This file was created by `gcjh -stubs'. It is -*- c++ -*-.\n\ +//\n\ +// This file is intended to give you a head start on implementing native\n\ +// methods using CNI.\n\ +// Be aware: running `gcjh -stubs' once more for this class may overwrite any\n\ // edits you have made to this file.\n\n", out); } } |