gjavah.c (print_cxx_classname): Print "::" before qualified name.
authorTom Tromey <tromey@cygnus.com>
Thu, 26 Aug 1999 18:23:33 +0000 (18:23 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Thu, 26 Aug 1999 18:23:33 +0000 (18:23 +0000)
* gjavah.c (print_cxx_classname): Print "::" before qualified
name.

http://sourceware.cygnus.com/cgi-bin/gnatsweb.pl?cmd=view&database=java&pr=36

From-SVN: r28902

gcc/java/ChangeLog
gcc/java/gjavah.c

index 6abba840dbd550bbbb6ade70a10e012fe73ee9c7..bfcfb1665e922c03356624962ba6c2e825b33f86 100644 (file)
@@ -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
index 7f0d223d8a87c6e1a5b1d1273746fc5695878acb..25747541157bf2fb670327338ff47c1e3a66f1fe 100644 (file)
@@ -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);