From 64eae71abd805931730934e0d5fbf830eb949b09 Mon Sep 17 00:00:00 2001 From: tromey Date: Thu, 26 Aug 1999 18:23:33 +0000 Subject: * 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 --- gcc/java/ChangeLog | 5 +++++ gcc/java/gjavah.c | 6 ++++++ 2 files changed, 11 insertions(+) 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 + + * gjavah.c (print_cxx_classname): Print "::" before qualified + name. + Thu Aug 26 09:10:58 1999 Alexandre Petit-Bianco * 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); -- cgit v1.2.1