diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 1999-03-21 06:09:25 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 1999-03-21 06:09:25 +0000 |
commit | 4bcde32e86ac492878fe06625c7c67139c9c85cc (patch) | |
tree | 9f1d36a20bdefbffdac55462d09c82614184fc52 /gcc/java/java-tree.h | |
parent | 9f12f2f3d923f0374f41cf1b90c256bc6afd21e4 (diff) | |
download | gcc-4bcde32e86ac492878fe06625c7c67139c9c85cc.zip gcc-4bcde32e86ac492878fe06625c7c67139c9c85cc.tar.gz gcc-4bcde32e86ac492878fe06625c7c67139c9c85cc.tar.bz2 |
Makefile.in (jcf-dump.o): Depend on $(CONFIG_H) $(srcdir)/../system.h and $(JAVA_TREE_H).
* Makefile.in (jcf-dump.o): Depend on $(CONFIG_H)
$(srcdir)/../system.h and $(JAVA_TREE_H).
(jcf-io.o): Depend on $(JAVA_TREE_H).
(mangle.o): Likewise.
* check-init.c (check_cond_init): Add static prototype.
* class.c (build_java_method_type, hashUtf8String,
make_field_value, get_dispatch_vector, get_dispatch_table,
append_gpp_mangled_type, mangle_static_field): Likewise.
(strLengthUtf8): Hide unused definition.
(hashUtf8String): Const-ify.
(make_field_value): Un-ANSI-fy.
* constants.c: Move inclusion of jcf.h above java-tree.h.
(set_constant_entry, find_class_or_string_constant,
find_name_and_type_constant, get_tag_node,
build_constant_data_ref): Add static prototype.
* decl.c (push_jvm_slot, builtin_function,
lookup_name_current_level): Likewise.
(builtin_function): Const-ify.
* except.c (expand_start_java_handler, expand_end_java_handler):
Add static prototype.
* expr.c (flush_quick_stack, push_value, pop_value,
java_stack_swap, java_stack_dup, build_java_athrow,
build_java_jsr, build_java_ret, expand_java_multianewarray,
expand_java_arraystore, expand_java_arrayload,
expand_java_array_length, build_java_monitor, expand_java_pushc,
expand_java_return, expand_java_NEW, expand_java_INSTANCEOF,
expand_java_CHECKCAST, expand_iinc, expand_java_binop, note_label,
expand_compare, expand_test, expand_cond, expand_java_goto,
expand_java_call, expand_java_ret, pop_arguments, expand_invoke,
expand_java_field_op, java_push_constant_from_pool): Likewise.
(decode_newarray_type, expand_iinc): Un-ANSI-fy.
(build_java_arraynull_check): Mark parameters `node' and `type'
with ATTRIBUTE_UNUSED.
(note_label): Likewise for parameter `current_pc'.
(expand_java_call, expand_java_ret): Hide unused definition.
* java-tree.h (make_class, build_constants_constructor,
java_set_exception_lang_code, pop_labeled_block, emit_handlers,
init_outgoing_cpool, register_class, emit_register_classes,
java_layout_seen_class_methods): Prototype.
(unicode_mangling_length): Const-ify.
(append_gpp_mangled_name, append_gpp_mangled_classtype,
emit_unicode_mangled_name, format_int, format_uint,
jcf_trim_old_input, jcf_print_utf8, jcf_print_char,
jcf_print_utf8_replace, open_class): Prototype.
* jcf-dump.c: Include "config.h", not <config.h>. Don't include
<stdio.h>. Include tree.h/java-tree.h.
(utf8_equal_string usage, process_class): Add static prototype.
(open_class): Don't prototype this here.
(utf8_equal_string): Match arguments to format specifiers.
(HANDLE_CODE_ATTRIBUTE, BRANCH, JSR, RET, LOOKUP_SWITCH,
TABLE_SWITCH, disassemble_method): Likewise.
* jcf-io.c: Include tree.h/java-tree.h.
(open_class, find_classfile, jcf_print_utf8,
jcf_print_utf8_replace): Const-ify.
* jcf-parse.c (parse_zip_file_entries, process_zip_dir,
parse_class_file): Add static prototype.
(find_in_current_zip): Match definition to existing static
prototype.
* jcf-write.c: Include jcf.h before tree.h/java-tree.h.
(alloc_chunk, append_chunk, append_chunk_copy, gen_jcf_label,
finish_jcf_block, define_jcf_label, get_jcf_label_here,
put_linenumber, localvar_alloc, localvar_free, get_access_flags,
write_chunks, adjust_typed_op, generate_bytecode_conditional,
generate_bytecode_return, perform_relocations, init_jcf_state,
init_jcf_method, release_jcf_state, generate_classfile):
Add static prototype.
(emit_unop): Mark parameter `type' with ATTRIBUTE_UNUSED.
(make_class_file_name): Const-ify.
* jcf.h (find_classfile): Const-ify.
* jv-scan.c (reset_report): Remove prototype.
* jvgenmain.c: Include jcf.h/tree.h/java-tree.h.
(error): Rewrite to allow varargs.
* lang.c (lang_f_options): Const-ify.
* lex.c (java_parse_escape_sequence): Add static prototype.
(java_allocate_new_line): Match definition to existing static
prototype.
* mangle.c Include tree.h/java-tree.h.
(unicode_mangling_length, emit_unicode_mangled_name,
append_gpp_mangled_name, append_gpp_mangled_classtype): Const-ify.
* parse.h (jdep_code): Remove trailing comma in enumeration.
(java_get_line_col): Move prototype outside of !JC1_LITE test.
(reset_report): Add prototype.
* verify.c (push_pending_label, merge_types): Add static
prototypes.
* zipfile.h (opendir_in_zip, open_in_zip): Prototype.
From-SVN: r25878
Diffstat (limited to 'gcc/java/java-tree.h')
-rw-r--r-- | gcc/java/java-tree.h | 42 |
1 files changed, 29 insertions, 13 deletions
diff --git a/gcc/java/java-tree.h b/gcc/java/java-tree.h index 62b69f4..b9501ad 100644 --- a/gcc/java/java-tree.h +++ b/gcc/java/java-tree.h @@ -482,7 +482,7 @@ extern void jcf_parse PROTO ((struct JCF*)); extern tree add_field PROTO ((tree, tree, tree, int)); extern tree add_method PROTO ((tree, int, tree, tree)); extern tree add_method_1 PROTO ((tree, int, tree, tree)); -extern tree make_class (); +extern tree make_class PROTO ((void)); extern tree push_class PROTO ((tree, tree)); extern tree unmangle_classname PROTO ((const char *name, int name_length)); extern tree parse_signature_string PROTO ((const unsigned char *, int)); @@ -490,11 +490,10 @@ extern tree get_type_from_signature PROTO ((tree)); extern void layout_class PROTO ((tree)); extern tree layout_class_method PROTO ((tree, tree, tree, tree)); extern void layout_class_methods PROTO ((tree)); -extern tree make_class (); extern tree build_class_ref PROTO ((tree)); extern tree build_dtable_decl PROTO ((tree)); extern tree build_internal_class_name PROTO ((tree)); -extern tree build_constants_constructor (); +extern tree build_constants_constructor PROTO ((void)); extern tree build_ref_from_constant_pool PROTO ((int)); extern tree build_utf8_ref PROTO ((tree)); extern tree ident_subst PROTO ((const char*, int, @@ -541,9 +540,9 @@ extern tree build_java_arraynull_check PROTO ((tree, tree, tree)); extern tree create_label_decl PROTO ((tree)); extern void push_labeled_block PROTO ((tree)); extern tree prepare_eh_table_type PROTO ((tree)); -extern void java_set_exception_lang_code PROTO (()); +extern void java_set_exception_lang_code PROTO ((void)); extern tree generate_name PROTO ((void)); -extern void pop_labeled_block PROTO (()); +extern void pop_labeled_block PROTO ((void)); extern char *lang_printable_name PROTO ((tree, int)); extern tree maybe_add_interface PROTO ((tree, tree)); extern void set_super_info PROTO ((int, tree, tree, int)); @@ -552,12 +551,12 @@ extern int interface_of_p PROTO ((tree, tree)); extern int inherits_from_p PROTO ((tree, tree)); extern void complete_start_java_method PROTO ((tree)); extern tree build_result_decl PROTO ((tree)); -extern void emit_handlers PROTO (()); -extern void init_outgoing_cpool PROTO (()); +extern void emit_handlers PROTO ((void)); +extern void init_outgoing_cpool PROTO ((void)); extern void make_class_data PROTO ((tree)); -extern void register_class PROTO (()); +extern void register_class PROTO ((void)); extern int alloc_name_constant PROTO ((int, tree)); -extern void emit_register_classes PROTO (()); +extern void emit_register_classes PROTO ((void)); extern void lang_init_source PROTO ((int)); extern void write_classfile PROTO ((tree)); extern char *print_int_node PROTO ((tree)); @@ -566,12 +565,12 @@ extern void parse_error_context PVPROTO ((tree cl, const char *, ...)) extern tree build_primtype_type_ref PROTO ((char *)); extern tree java_get_real_method_name PROTO ((tree)); extern void finish_class PROTO ((tree)); -extern void java_layout_seen_class_methods PROTO (()); +extern void java_layout_seen_class_methods PROTO ((void)); extern void check_for_initialization PROTO ((tree)); extern tree pushdecl_top_level PROTO ((tree)); extern int alloc_class_constant PROTO ((tree)); -extern int unicode_mangling_length PROTO ((char *, int)); +extern int unicode_mangling_length PROTO ((const char *, int)); extern void init_expr_processing PROTO ((void)); extern void push_super_field PROTO ((tree, tree)); extern void init_class_processing PROTO ((void)); @@ -586,8 +585,9 @@ extern int merge_type_state PROTO ((tree)); extern void push_type PROTO ((tree)); extern void load_type_state PROTO ((tree)); extern void add_interface PROTO ((tree, tree)); -extern void append_gpp_mangled_classtype PROTO ((struct obstack *, char *)); -extern void emit_unicode_mangled_name PROTO ((struct obstack *, char *, int)); +extern void append_gpp_mangled_name PROTO ((struct obstack *, const char *, int)); +extern void append_gpp_mangled_classtype PROTO ((struct obstack *, const char *)); +extern void emit_unicode_mangled_name PROTO ((struct obstack *, const char *, int)); extern tree force_evaluation_order PROTO ((tree)); extern int verify_constant_pool PROTO ((struct JCF *)); extern void start_java_method PROTO ((tree)); @@ -608,6 +608,22 @@ extern int find_methodref_index PROTO ((struct CPool *, tree)); extern void write_constant_pool PROTO ((struct CPool *, unsigned char *, int)); extern int count_constant_pool_bytes PROTO ((struct CPool *)); extern int encode_newarray_type PROTO ((tree)); +#ifdef uint64 +extern void format_int PROTO ((char *, jlong, int)); +extern void format_uint PROTO ((char *, uint64, int)); +#endif +extern void jcf_trim_old_input PROTO ((struct JCF *)); +#ifdef BUFSIZ +extern void jcf_print_utf8 PROTO ((FILE *, const unsigned char *, int)); +extern void jcf_print_char PROTO ((FILE *, int)); +extern void jcf_print_utf8_replace PROTO ((FILE *, const unsigned char *, + int, int, int)); +# if JCF_USE_STDIO +extern char* open_class PROTO ((char *, struct JCF *, FILE *, const char *)); +# else +extern char* open_class PROTO ((char *, struct JCF *, int, const char *)); +# endif /* JCF_USE_STDIO */ +#endif /* Access flags etc for a method (a FUNCTION_DECL): */ |