diff options
author | Tom Tromey <tromey@cygnus.com> | 1999-08-26 18:23:33 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 1999-08-26 18:23:33 +0000 |
commit | 12207a8790726fab1c993fefa1a17f38e6813d40 (patch) | |
tree | 01e44addc08e287796c74c82878ade08fd8791e6 /gcc/java/gjavah.c | |
parent | 21e3a717241e4b6f70b933212278db63c239563a (diff) | |
download | gcc-12207a8790726fab1c993fefa1a17f38e6813d40.zip gcc-12207a8790726fab1c993fefa1a17f38e6813d40.tar.gz gcc-12207a8790726fab1c993fefa1a17f38e6813d40.tar.bz2 |
gjavah.c (print_cxx_classname): Print "::" before qualified name.
* 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
Diffstat (limited to 'gcc/java/gjavah.c')
-rw-r--r-- | gcc/java/gjavah.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/java/gjavah.c b/gcc/java/gjavah.c index 7f0d223..2574754 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); |