From 4440ffc4a58889d19c880deaad57664edbbe4732 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sun, 9 Dec 2001 01:26:30 +0000 Subject: [PATCH] gjavah.c (print_namelet): Clear subnamelets. * gjavah.c (print_namelet): Clear subnamelets. (HANDLE_METHOD): Set `method_printed' earlier. From-SVN: r47801 --- gcc/java/ChangeLog | 5 +++++ gcc/java/gjavah.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index b244d2cee6a..ddba50c7955 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,8 @@ +2001-12-08 Tom Tromey + + * gjavah.c (print_namelet): Clear subnamelets. + (HANDLE_METHOD): Set `method_printed' earlier. + 2001-12-07 Tom Tromey * lang.c (lang_f_options): Added diff --git a/gcc/java/gjavah.c b/gcc/java/gjavah.c index 8b91549d12e..00f29f6ad6a 100644 --- a/gcc/java/gjavah.c +++ b/gcc/java/gjavah.c @@ -193,6 +193,7 @@ static int method_signature = 0; #define HANDLE_METHOD(ACCESS_FLAGS, NAME, SIGNATURE, ATTRIBUTE_COUNT) \ { \ method_synthetic = 0; \ + method_printed = 0; \ method_signature = SIGNATURE; \ if (ATTRIBUTE_COUNT) \ method_synthetic = peek_attribute (jcf, ATTRIBUTE_COUNT, \ @@ -208,7 +209,7 @@ static int method_signature = 0; } \ if (method_pass && !method_synthetic) \ { \ - decompiled = 0; method_printed = 0; \ + decompiled = 0; \ if (out) \ print_method_info (out, jcf, NAME, SIGNATURE, \ ACCESS_FLAGS); \ @@ -1757,6 +1758,7 @@ print_namelet (out, name, depth) print_namelet (out, c, depth + 2); c = next; } + name->subnamelets = NULL; if (name->name) {