summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>1999-08-26 18:23:33 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>1999-08-26 18:23:33 +0000
commit64eae71abd805931730934e0d5fbf830eb949b09 (patch)
tree01e44addc08e287796c74c82878ade08fd8791e6
parent9ddb4deaca9e4109f0e50951ab033be8bec027d9 (diff)
downloadgcc-64eae71abd805931730934e0d5fbf830eb949b09.tar.gz
* gjavah.c (print_cxx_classname): Print "::" before qualified
name. http://sourceware.cygnus.com/cgi-bin/gnatsweb.pl?cmd=view&database=java&pr=36 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28902 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/java/ChangeLog5
-rw-r--r--gcc/java/gjavah.c6
2 files changed, 11 insertions, 0 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index 6abba840dbd..bfcfb1665e9 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,8 @@
+1999-08-26 Tom Tromey <tromey@cygnus.com>
+
+ * gjavah.c (print_cxx_classname): Print "::" before qualified
+ name.
+
Thu Aug 26 09:10:58 1999 Alexandre Petit-Bianco <apbianco@cygnus.com>
* parse.y (lookup_cl): Changed leading comment. Now does its best
diff --git a/gcc/java/gjavah.c b/gcc/java/gjavah.c
index 7f0d223d8a8..25747541157 100644
--- a/gcc/java/gjavah.c
+++ b/gcc/java/gjavah.c
@@ -753,6 +753,8 @@ decode_signature_piece (stream, signature, limit, need_space)
case 'Z': ctype = "jboolean"; goto printit;
case 'V': ctype = "void"; goto printit;
case 'L':
+ /* Print a leading "::" so we look in the right namespace. */
+ fputs ("::", stream);
++signature;
while (*signature && *signature != ';')
{
@@ -988,6 +990,10 @@ print_cxx_classname (stream, prefix, jcf, index)
return 0;
fputs (prefix, stream);
+
+ /* Print a leading "::" so we look in the right namespace. */
+ fputs ("::", stream);
+
while (s < limit)
{
c = UTF8_GET (s, limit);