aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/gjavah.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2001-12-09 01:26:30 +0000
committerTom Tromey <tromey@gcc.gnu.org>2001-12-09 01:26:30 +0000
commit4440ffc4a58889d19c880deaad57664edbbe4732 (patch)
tree1b0dfa876caa98fc29cceb05c4acf385d8e2276a /gcc/java/gjavah.c
parent91c6dda6c7acfeb8d9896557da02316109b0d05c (diff)
downloadgcc-4440ffc4a58889d19c880deaad57664edbbe4732.zip
gcc-4440ffc4a58889d19c880deaad57664edbbe4732.tar.gz
gcc-4440ffc4a58889d19c880deaad57664edbbe4732.tar.bz2
gjavah.c (print_namelet): Clear subnamelets.
* gjavah.c (print_namelet): Clear subnamelets. (HANDLE_METHOD): Set `method_printed' earlier. From-SVN: r47801
Diffstat (limited to 'gcc/java/gjavah.c')
-rw-r--r--gcc/java/gjavah.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/java/gjavah.c b/gcc/java/gjavah.c
index 8b91549..00f29f6 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)
{