OSDN Git Service

* gjavah.c (print_namelet): Clear subnamelets.
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 9 Dec 2001 01:26:30 +0000 (01:26 +0000)
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 9 Dec 2001 01:26:30 +0000 (01:26 +0000)
(HANDLE_METHOD): Set `method_printed' earlier.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47801 138bc75d-0d04-0410-961f-82ee72b054a4

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

index b244d2c..ddba50c 100644 (file)
@@ -1,3 +1,8 @@
+2001-12-08  Tom Tromey  <tromey@redhat.com>
+
+       * gjavah.c (print_namelet): Clear subnamelets.
+       (HANDLE_METHOD): Set `method_printed' earlier.
+
 2001-12-07  Tom Tromey  <tromey@redhat.com>
 
        * lang.c (lang_f_options): Added
index 8b91549..00f29f6 100644 (file)
@@ -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)
     {