gjavah.c (struct namelet): New structure.
authorTom Tromey <tromey@cygnus.com>
Wed, 24 Feb 1999 13:47:39 +0000 (13:47 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Wed, 24 Feb 1999 13:47:39 +0000 (13:47 +0000)
commitbdb59aec775c4ea43a980efa6ccacdc3c9540d12
treed69df26a5c83842fd59c5587dfe4b063f95c6466
parent46f40127a279a44341defa54a2410d7a95738346
gjavah.c (struct namelet): New structure.

* gjavah.c (struct namelet): New structure.
(add_namelet): New function.
(print_namelet): New function.
(print_class_decls): Use add_namelet and print_namelet to generate
namespaces and not classes.
(method_printed): New global.
(HANDLE_END_METHOD): Examine method_printed.
(print_method_info): Set method_printed when required.  Print
error if function to be ignored is marked virtual.  Handle $finit$
method.
(METHOD_IS_FINAL): New macro.
(print_field_info): Use it.
(HANDLE_METHOD): Clear method_printed.
(method_pass): New global.
(HANDLE_END_FIELD): Call add_class_decl on the first pass.
(process_file): Do two passes over both fields and methods.
(HANDLE_METHOD): Examine method_pass.
(root): New global.
(add_class_decl): New function.
(print_class_decls): Don't scan over entire constant pool.

From-SVN: r25403
gcc/java/ChangeLog
gcc/java/gjavah.c