From eeb37698dbfd6d4bd3f0667aca2c630d9433cc3c Mon Sep 17 00:00:00 2001
From: tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Fri, 17 Dec 1999 20:25:59 +0000
Subject: [PATCH] 	* 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
---
 gcc/java/ChangeLog |  6 ++++++
 gcc/java/gjavah.c  | 13 +++++++------
 2 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index 2f8941dcc5b8..e02385767900 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,9 @@
+1999-12-17  Tom Tromey  <tromey@cygnus.com>
+
+	* gjavah.c (decode_signature_piece): Print "::" in JArray<>.  This
+	fixes PR gcj/119.
+	(process_file): Use `\n\' at end of each line in string.
+
 Tue Dec 14 14:20:16 1999  Per Bothner  <per@bothner.com>
 
 	* class.c (make_class_data): flag_keep_inline_functions to keep
diff --git a/gcc/java/gjavah.c b/gcc/java/gjavah.c
index a29cb62b87a5..12cb72b0f059 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);
 	}
     }
-- 
GitLab