Commit df32d2ce by Kaveh R. Ghazi Committed by Kaveh Ghazi

buffer.h: PROTO -> PARAMS.

        * buffer.h: PROTO -> PARAMS.
        * check-init.c: Likewise.
        * class.c: Likewise.
        * constants.c: Likewise.
        * convert.h: Likewise.
        * decl.c: Likewise.
        * except.c: Likewise.
        * expr.c: Likewise.
        * gjavah.c: Likewise.
        * java-except.h: Likewise.
        * java-tree.h: Likewise.
        * jcf-depend.c: Likewise.
        * jcf-dump.c: Likewise.
        * jcf-parse.c: Likewise.
        * jcf-path.c: Likewise.
        * jcf-reader.c: Likewise.
        * jcf-write.c: Likewise.
        * jcf.h: Likewise.
        * jv-scan.c: Likewise.
        * jvgenmain.c: Likewise.
        * jvspec.c: Likewise.
        * lang.c: Likewise.
        * lex.c: Likewise.
        * lex.h: Likewise.
        * parse-scan.y: Likewise.
        * parse.h: Likewise.
        * parse.y: Likewise.
        * typeck.c: Likewise.
        * verify.c: Likewise.
        * xref.c: Likewise.
        * xref.h: Likewise.
        * zextract.c: Likewise.
        * zipfile.h: Likewise.

From-SVN: r31550
parent 7652adb5
Fri Jan 21 15:37:29 2000 Kaveh R. Ghazi <ghazi@versicolor.rutgers.edu>
* buffer.h: PROTO -> PARAMS.
* check-init.c: Likewise.
* class.c: Likewise.
* constants.c: Likewise.
* convert.h: Likewise.
* decl.c: Likewise.
* except.c: Likewise.
* expr.c: Likewise.
* gjavah.c: Likewise.
* java-except.h: Likewise.
* java-tree.h: Likewise.
* jcf-depend.c: Likewise.
* jcf-dump.c: Likewise.
* jcf-parse.c: Likewise.
* jcf-path.c: Likewise.
* jcf-reader.c: Likewise.
* jcf-write.c: Likewise.
* jcf.h: Likewise.
* jv-scan.c: Likewise.
* jvgenmain.c: Likewise.
* jvspec.c: Likewise.
* lang.c: Likewise.
* lex.c: Likewise.
* lex.h: Likewise.
* parse-scan.y: Likewise.
* parse.h: Likewise.
* parse.y: Likewise.
* typeck.c: Likewise.
* verify.c: Likewise.
* xref.c: Likewise.
* xref.h: Likewise.
* zextract.c: Likewise.
* zipfile.h: Likewise.
Mon Jan 17 11:58:17 2000 Joerg Brunsmann <joerg.brunsmann@fernuni-hagen.de> Mon Jan 17 11:58:17 2000 Joerg Brunsmann <joerg.brunsmann@fernuni-hagen.de>
* parse.y (format_parameter:): Use final: rule instead of modifiers:. * parse.y (format_parameter:): Use final: rule instead of modifiers:.
......
/* A "buffer" utility type. /* A "buffer" utility type.
Copyright (C) 1998 Free Software Foundation, Inc. Copyright (C) 1998, 2000 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -43,4 +43,4 @@ struct buffer ...@@ -43,4 +43,4 @@ struct buffer
#define BUFFER_RESET(BUFP) ((BUFP)->ptr = (BUFP)->data) #define BUFFER_RESET(BUFP) ((BUFP)->ptr = (BUFP)->data)
extern void buffer_grow PROTO ((struct buffer*, int)); extern void buffer_grow PARAMS ((struct buffer*, int));
/* Code to test for "definitive assignment". /* Code to test for "definitive assignment".
Copyright (C) 1999 Free Software Foundation, Inc. Copyright (C) 1999, 2000 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
...@@ -97,12 +97,12 @@ static tree wfl; ...@@ -97,12 +97,12 @@ static tree wfl;
#define WORD_SIZE ((unsigned int)(sizeof(word) * 8)) #define WORD_SIZE ((unsigned int)(sizeof(word) * 8))
static void check_bool_init PROTO ((tree, words, words, words)); static void check_bool_init PARAMS ((tree, words, words, words));
static void check_init PROTO ((tree, words)); static void check_init PARAMS ((tree, words));
static void check_cond_init PROTO ((tree, tree, tree, words, words, words)); static void check_cond_init PARAMS ((tree, tree, tree, words, words, words));
static void check_bool2_init PROTO ((enum tree_code, tree, tree, words, words, words)); static void check_bool2_init PARAMS ((enum tree_code, tree, tree, words, words, words));
struct alternatives; struct alternatives;
static void done_alternative PROTO ((words, struct alternatives *)); static void done_alternative PARAMS ((words, struct alternatives *));
#if 0 #if 0
#define ALLOC_WORDS(NUM) ((word*) xmalloc ((NUM) * sizeof (word))) #define ALLOC_WORDS(NUM) ((word*) xmalloc ((NUM) * sizeof (word)))
......
/* Functions related to building classes and their related objects. /* Functions related to building classes and their related objects.
Copyright (C) 1996, 97-98, 1999 Free Software Foundation, Inc. Copyright (C) 1996, 97-99, 2000 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -36,18 +36,18 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */ ...@@ -36,18 +36,18 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
#include "output.h" #include "output.h"
#include "parse.h" #include "parse.h"
static tree mangle_class_field PROTO ((tree class)); static tree mangle_class_field PARAMS ((tree class));
static tree make_method_value PROTO ((tree)); static tree make_method_value PARAMS ((tree));
static tree build_java_method_type PROTO ((tree, tree, int)); static tree build_java_method_type PARAMS ((tree, tree, int));
static int32 hashUtf8String PROTO ((const char *, int)); static int32 hashUtf8String PARAMS ((const char *, int));
static tree make_field_value PROTO ((tree)); static tree make_field_value PARAMS ((tree));
static tree get_dispatch_vector PROTO ((tree)); static tree get_dispatch_vector PARAMS ((tree));
static tree get_dispatch_table PROTO ((tree, tree)); static tree get_dispatch_table PARAMS ((tree, tree));
static void append_gpp_mangled_type PROTO ((struct obstack *, tree)); static void append_gpp_mangled_type PARAMS ((struct obstack *, tree));
static tree mangle_static_field PROTO ((tree)); static tree mangle_static_field PARAMS ((tree));
static void add_interface_do PROTO ((tree, tree, int)); static void add_interface_do PARAMS ((tree, tree, int));
static tree maybe_layout_super_class PROTO ((tree, tree)); static tree maybe_layout_super_class PARAMS ((tree, tree));
static int assume_compiled PROTO ((const char *)); static int assume_compiled PARAMS ((const char *));
static rtx registerClass_libfunc; static rtx registerClass_libfunc;
...@@ -77,7 +77,7 @@ typedef struct assume_compiled_node_struct ...@@ -77,7 +77,7 @@ typedef struct assume_compiled_node_struct
} assume_compiled_node; } assume_compiled_node;
static assume_compiled_node *find_assume_compiled_node static assume_compiled_node *find_assume_compiled_node
PROTO ((assume_compiled_node *, const char *)); PARAMS ((assume_compiled_node *, const char *));
/* This is the root of the include/exclude tree. */ /* This is the root of the include/exclude tree. */
...@@ -1892,7 +1892,7 @@ register_class () ...@@ -1892,7 +1892,7 @@ register_class ()
void void
emit_register_classes () emit_register_classes ()
{ {
extern tree get_file_function_name PROTO((int)); extern tree get_file_function_name PARAMS ((int));
tree init_name = get_file_function_name ('I'); tree init_name = get_file_function_name ('I');
tree init_type = build_function_type (void_type_node, end_params_node); tree init_type = build_function_type (void_type_node, end_params_node);
tree init_decl; tree init_decl;
......
/* Handle the constant pool of the Java(TM) Virtual Machine. /* Handle the constant pool of the Java(TM) Virtual Machine.
Copyright (C) 1997 Free Software Foundation, Inc. Copyright (C) 1997, 98-99, 2000 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -30,11 +30,11 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */ ...@@ -30,11 +30,11 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
extern struct obstack permanent_obstack; extern struct obstack permanent_obstack;
static void set_constant_entry PROTO ((CPool *, int, int, jword)); static void set_constant_entry PARAMS ((CPool *, int, int, jword));
static int find_class_or_string_constant PROTO ((CPool *, int, tree)); static int find_class_or_string_constant PARAMS ((CPool *, int, tree));
static int find_name_and_type_constant PROTO ((CPool *, tree, tree)); static int find_name_and_type_constant PARAMS ((CPool *, tree, tree));
static tree get_tag_node PROTO ((int)); static tree get_tag_node PARAMS ((int));
static tree build_constant_data_ref PROTO ((void)); static tree build_constant_data_ref PARAMS ((void));
/* Set the INDEX'th constant in CPOOL to have the given TAG and VALUE. */ /* Set the INDEX'th constant in CPOOL to have the given TAG and VALUE. */
......
/* Definition of conversion functions. /* Definition of conversion functions.
Copyright (C) 1993 Free Software Foundation, Inc. Copyright (C) 1993, 1998, 2000 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -21,8 +21,8 @@ Boston, MA 02111-1307, USA. */ ...@@ -21,8 +21,8 @@ Boston, MA 02111-1307, USA. */
/* Written by Jeffrey Hsu <hsu@cygnus.com> */ /* Written by Jeffrey Hsu <hsu@cygnus.com> */
extern tree convert_to_boolean PROTO ((tree, tree)); extern tree convert_to_boolean PARAMS ((tree, tree));
extern tree convert_to_char PROTO ((tree, tree)); extern tree convert_to_char PARAMS ((tree, tree));
extern tree convert_to_integer PROTO ((tree type, tree expr)); extern tree convert_to_integer PARAMS ((tree type, tree expr));
extern tree convert_to_real PROTO ((tree type, tree expr)); extern tree convert_to_real PARAMS ((tree type, tree expr));
extern tree convert_to_pointer PROTO ((tree type, tree expr)); extern tree convert_to_pointer PARAMS ((tree type, tree expr));
/* Process declarations and variables for the GNU compiler for the /* Process declarations and variables for the GNU compiler for the
Java(TM) language. Java(TM) language.
Copyright (C) 1996, 97-98, 1999 Free Software Foundation, Inc. Copyright (C) 1996, 97-99, 2000 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -36,10 +36,10 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */ ...@@ -36,10 +36,10 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
#include "except.h" #include "except.h"
#include "defaults.h" #include "defaults.h"
static tree push_jvm_slot PROTO ((int, tree)); static tree push_jvm_slot PARAMS ((int, tree));
static tree lookup_name_current_level PROTO ((tree)); static tree lookup_name_current_level PARAMS ((tree));
static tree push_promoted_type PROTO ((const char *, tree)); static tree push_promoted_type PARAMS ((const char *, tree));
static struct binding_level *make_binding_level PROTO ((void)); static struct binding_level *make_binding_level PARAMS ((void));
#ifndef INT_TYPE_SIZE #ifndef INT_TYPE_SIZE
#define INT_TYPE_SIZE BITS_PER_WORD #define INT_TYPE_SIZE BITS_PER_WORD
......
/* Handle exceptions for GNU compiler for the Java(TM) language. /* Handle exceptions for GNU compiler for the Java(TM) language.
Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc. Copyright (C) 1997, 98-99, 2000 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -37,12 +37,12 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */ ...@@ -37,12 +37,12 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
#include "eh-common.h" #include "eh-common.h"
#include "toplev.h" #include "toplev.h"
static void expand_start_java_handler PROTO ((struct eh_range *)); static void expand_start_java_handler PARAMS ((struct eh_range *));
static void expand_end_java_handler PROTO ((struct eh_range *)); static void expand_end_java_handler PARAMS ((struct eh_range *));
static struct eh_range *find_handler_in_range PROTO ((int, struct eh_range *, static struct eh_range *find_handler_in_range PARAMS ((int, struct eh_range *,
struct eh_range *)); struct eh_range *));
static void link_handler PROTO ((struct eh_range *, struct eh_range *)); static void link_handler PARAMS ((struct eh_range *, struct eh_range *));
static void check_start_handlers PROTO ((struct eh_range *, int)); static void check_start_handlers PARAMS ((struct eh_range *, int));
extern struct obstack permanent_obstack; extern struct obstack permanent_obstack;
......
/* Process expressions for the GNU compiler for the Java(TM) language. /* Process expressions for the GNU compiler for the Java(TM) language.
Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc. Copyright (C) 1996, 97-99, 2000 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -41,44 +41,44 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */ ...@@ -41,44 +41,44 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
#include "except.h" #include "except.h"
#include "defaults.h" #include "defaults.h"
static void flush_quick_stack PROTO ((void)); static void flush_quick_stack PARAMS ((void));
static void push_value PROTO ((tree)); static void push_value PARAMS ((tree));
static tree pop_value PROTO ((tree)); static tree pop_value PARAMS ((tree));
static void java_stack_swap PROTO ((void)); static void java_stack_swap PARAMS ((void));
static void java_stack_dup PROTO ((int, int)); static void java_stack_dup PARAMS ((int, int));
static void build_java_athrow PROTO ((tree)); static void build_java_athrow PARAMS ((tree));
static void build_java_jsr PROTO ((tree, tree)); static void build_java_jsr PARAMS ((tree, tree));
static void build_java_ret PROTO ((tree)); static void build_java_ret PARAMS ((tree));
static void expand_java_multianewarray PROTO ((tree, int)); static void expand_java_multianewarray PARAMS ((tree, int));
static void expand_java_arraystore PROTO ((tree)); static void expand_java_arraystore PARAMS ((tree));
static void expand_java_arrayload PROTO ((tree)); static void expand_java_arrayload PARAMS ((tree));
static void expand_java_array_length PROTO ((void)); static void expand_java_array_length PARAMS ((void));
static tree build_java_monitor PROTO ((tree, tree)); static tree build_java_monitor PARAMS ((tree, tree));
static void expand_java_pushc PROTO ((int, tree)); static void expand_java_pushc PARAMS ((int, tree));
static void expand_java_return PROTO ((tree)); static void expand_java_return PARAMS ((tree));
static void expand_java_NEW PROTO ((tree)); static void expand_java_NEW PARAMS ((tree));
static void expand_java_INSTANCEOF PROTO ((tree)); static void expand_java_INSTANCEOF PARAMS ((tree));
static void expand_java_CHECKCAST PROTO ((tree)); static void expand_java_CHECKCAST PARAMS ((tree));
static void expand_iinc PROTO ((unsigned int, int, int)); static void expand_iinc PARAMS ((unsigned int, int, int));
static void expand_java_binop PROTO ((tree, enum tree_code)); static void expand_java_binop PARAMS ((tree, enum tree_code));
static void note_label PROTO ((int, int)); static void note_label PARAMS ((int, int));
static void expand_compare PROTO ((enum tree_code, tree, tree, int)); static void expand_compare PARAMS ((enum tree_code, tree, tree, int));
static void expand_test PROTO ((enum tree_code, tree, int)); static void expand_test PARAMS ((enum tree_code, tree, int));
static void expand_cond PROTO ((enum tree_code, tree, int)); static void expand_cond PARAMS ((enum tree_code, tree, int));
static void expand_java_goto PROTO ((int)); static void expand_java_goto PARAMS ((int));
#if 0 #if 0
static void expand_java_call PROTO ((int, int)); static void expand_java_call PARAMS ((int, int));
static void expand_java_ret PROTO ((tree)); static void expand_java_ret PARAMS ((tree));
#endif #endif
static tree pop_arguments PROTO ((tree)); static tree pop_arguments PARAMS ((tree));
static void expand_invoke PROTO ((int, int, int)); static void expand_invoke PARAMS ((int, int, int));
static void expand_java_field_op PROTO ((int, int, int)); static void expand_java_field_op PARAMS ((int, int, int));
static void java_push_constant_from_pool PROTO ((struct JCF *, int)); static void java_push_constant_from_pool PARAMS ((struct JCF *, int));
static void java_stack_pop PROTO ((int)); static void java_stack_pop PARAMS ((int));
static tree build_java_throw_out_of_bounds_exception PROTO ((tree)); static tree build_java_throw_out_of_bounds_exception PARAMS ((tree));
static tree build_java_check_indexed_type PROTO ((tree, tree)); static tree build_java_check_indexed_type PARAMS ((tree, tree));
static tree java_array_data_offset PROTO ((tree)); static tree java_array_data_offset PARAMS ((tree));
static tree case_identity PROTO ((tree, tree)); static tree case_identity PARAMS ((tree, tree));
static tree operand_type[59]; static tree operand_type[59];
extern struct obstack permanent_obstack; extern struct obstack permanent_obstack;
......
...@@ -107,35 +107,35 @@ struct method_name ...@@ -107,35 +107,35 @@ struct method_name
/* List of method names we've seen. */ /* List of method names we've seen. */
static struct method_name *method_name_list; static struct method_name *method_name_list;
static void print_field_info PROTO ((FILE*, JCF*, int, int, JCF_u2)); static void print_field_info PARAMS ((FILE*, JCF*, int, int, JCF_u2));
static void print_mangled_classname PROTO ((FILE*, JCF*, const char*, int)); static void print_mangled_classname PARAMS ((FILE*, JCF*, const char*, int));
static int print_cxx_classname PROTO ((FILE*, const char*, JCF*, int)); static int print_cxx_classname PARAMS ((FILE*, const char*, JCF*, int));
static void print_method_info PROTO ((FILE*, JCF*, int, int, JCF_u2)); static void print_method_info PARAMS ((FILE*, JCF*, int, int, JCF_u2));
static void print_c_decl PROTO ((FILE*, JCF*, int, int, int, const char *)); static void print_c_decl PARAMS ((FILE*, JCF*, int, int, int, const char *));
static void print_stub PROTO ((FILE*, JCF*, int, int, int, const char *)); static void print_stub PARAMS ((FILE*, JCF*, int, int, int, const char *));
static void print_full_cxx_name PROTO ((FILE*, JCF*, int, int, int, const char *)); static void print_full_cxx_name PARAMS ((FILE*, JCF*, int, int, int, const char *));
static void decompile_method PROTO ((FILE*, JCF*, int)); static void decompile_method PARAMS ((FILE*, JCF*, int));
static void add_class_decl PROTO ((FILE*, JCF*, JCF_u2)); static void add_class_decl PARAMS ((FILE*, JCF*, JCF_u2));
static int java_float_finite PROTO ((jfloat)); static int java_float_finite PARAMS ((jfloat));
static int java_double_finite PROTO ((jdouble)); static int java_double_finite PARAMS ((jdouble));
static void print_name PROTO ((FILE *, JCF *, int)); static void print_name PARAMS ((FILE *, JCF *, int));
static void print_base_classname PROTO ((FILE *, JCF *, int)); static void print_base_classname PARAMS ((FILE *, JCF *, int));
static int utf8_cmp PROTO ((const unsigned char *, int, const char *)); static int utf8_cmp PARAMS ((const unsigned char *, int, const char *));
static const char *cxx_keyword_subst PROTO ((const unsigned char *, int)); static const char *cxx_keyword_subst PARAMS ((const unsigned char *, int));
static void generate_access PROTO ((FILE *, JCF_u2)); static void generate_access PARAMS ((FILE *, JCF_u2));
static int name_is_method_p PROTO ((const unsigned char *, int)); static int name_is_method_p PARAMS ((const unsigned char *, int));
static char *get_field_name PROTO ((JCF *, int, JCF_u2)); static char *get_field_name PARAMS ((JCF *, int, JCF_u2));
static void print_field_name PROTO ((FILE *, JCF *, int, JCF_u2)); static void print_field_name PARAMS ((FILE *, JCF *, int, JCF_u2));
static const unsigned char *super_class_name PROTO ((JCF *, int *)); static const unsigned char *super_class_name PARAMS ((JCF *, int *));
static void print_include PROTO ((FILE *, const unsigned char *, int)); static void print_include PARAMS ((FILE *, const unsigned char *, int));
static const unsigned char *decode_signature_piece static const unsigned char *decode_signature_piece
PROTO ((FILE *, const unsigned char *, const unsigned char *, int *)); PARAMS ((FILE *, const unsigned char *, const unsigned char *, int *));
static void print_class_decls PROTO ((FILE *, JCF *, int)); static void print_class_decls PARAMS ((FILE *, JCF *, int));
static void usage PROTO ((void)) ATTRIBUTE_NORETURN; static void usage PARAMS ((void)) ATTRIBUTE_NORETURN;
static void help PROTO ((void)) ATTRIBUTE_NORETURN; static void help PARAMS ((void)) ATTRIBUTE_NORETURN;
static void java_no_argument PROTO ((const char *)) ATTRIBUTE_NORETURN; static void java_no_argument PARAMS ((const char *)) ATTRIBUTE_NORETURN;
static void version PROTO ((void)) ATTRIBUTE_NORETURN; static void version PARAMS ((void)) ATTRIBUTE_NORETURN;
JCF_u2 current_field_name; JCF_u2 current_field_name;
JCF_u2 current_field_value; JCF_u2 current_field_value;
...@@ -1100,9 +1100,9 @@ struct namelet ...@@ -1100,9 +1100,9 @@ struct namelet
struct namelet *next; struct namelet *next;
}; };
static void add_namelet PROTO ((const unsigned char *, static void add_namelet PARAMS ((const unsigned char *,
const unsigned char *, struct namelet *)); const unsigned char *, struct namelet *));
static void print_namelet PROTO ((FILE *, struct namelet *, int)); static void print_namelet PARAMS ((FILE *, struct namelet *, int));
/* The special root namelet. */ /* The special root namelet. */
static struct namelet root = static struct namelet root =
......
/* Definitions for exception handling for use by the GNU compiler /* Definitions for exception handling for use by the GNU compiler
for the Java(TM) language compiler. for the Java(TM) language compiler.
Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc. Copyright (C) 1997, 98-99, 2000 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -54,18 +54,18 @@ extern struct eh_range whole_range; ...@@ -54,18 +54,18 @@ extern struct eh_range whole_range;
#define NULL_EH_RANGE (&whole_range) #define NULL_EH_RANGE (&whole_range)
extern struct eh_range * find_handler PROTO ((int)); extern struct eh_range * find_handler PARAMS ((int));
extern void method_init_exceptions PROTO ((void)); extern void method_init_exceptions PARAMS ((void));
extern void emit_handlers PROTO ((void)); extern void emit_handlers PARAMS ((void));
extern void maybe_start_try PROTO ((int)); extern void maybe_start_try PARAMS ((int));
extern void maybe_end_try PROTO ((int)); extern void maybe_end_try PARAMS ((int));
extern void add_handler PROTO ((int, int, tree, tree)); extern void add_handler PARAMS ((int, int, tree, tree));
extern void handle_nested_ranges PROTO ((void)); extern void handle_nested_ranges PARAMS ((void));
extern void expand_resume_after_catch PROTO ((void)); extern void expand_resume_after_catch PARAMS ((void));
/* Functions for handling dependency tracking when reading .class files. /* Functions for handling dependency tracking when reading .class files.
Copyright (C) 1998 Free Software Foundation, Inc. Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
...@@ -39,10 +39,10 @@ struct entry ...@@ -39,10 +39,10 @@ struct entry
struct entry *next; struct entry *next;
}; };
static void free_entry PROTO ((struct entry **)); static void free_entry PARAMS ((struct entry **));
static void add_entry PROTO ((struct entry **, const char *)); static void add_entry PARAMS ((struct entry **, const char *));
static const char *munge PROTO ((const char *)); static const char *munge PARAMS ((const char *));
static int print_ents PROTO ((struct entry *, int)); static int print_ents PARAMS ((struct entry *, int));
/* List of files. */ /* List of files. */
static struct entry *dependencies = NULL; static struct entry *dependencies = NULL;
......
/* Program to dump out a Java(TM) .class file. /* Program to dump out a Java(TM) .class file.
Functionally similar to Sun's javap. Functionally similar to Sun's javap.
Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc. Copyright (C) 1996, 97-99, 2000 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
...@@ -78,18 +78,18 @@ int class_access_flags = 0; ...@@ -78,18 +78,18 @@ int class_access_flags = 0;
/* Print in format similar to javap. VERY IMCOMPLETE. */ /* Print in format similar to javap. VERY IMCOMPLETE. */
int flag_javap_compatible = 0; int flag_javap_compatible = 0;
static void print_access_flags PROTO ((FILE *, uint16, char)); static void print_access_flags PARAMS ((FILE *, uint16, char));
static void print_constant_terse PROTO ((FILE*, JCF*, int, int)); static void print_constant_terse PARAMS ((FILE*, JCF*, int, int));
static void print_constant PROTO ((FILE *, JCF *, int, int)); static void print_constant PARAMS ((FILE *, JCF *, int, int));
static void print_constant_ref PROTO ((FILE *, JCF *, int)); static void print_constant_ref PARAMS ((FILE *, JCF *, int));
static void disassemble_method PROTO ((JCF*, const unsigned char *, int)); static void disassemble_method PARAMS ((JCF*, const unsigned char *, int));
static void print_name PROTO ((FILE*, JCF*, int)); static void print_name PARAMS ((FILE*, JCF*, int));
static void print_signature PROTO ((FILE*, JCF*, int, int)); static void print_signature PARAMS ((FILE*, JCF*, int, int));
static int utf8_equal_string PROTO ((struct JCF*, int, const char *)); static int utf8_equal_string PARAMS ((struct JCF*, int, const char *));
static int usage PROTO ((void)) ATTRIBUTE_NORETURN; static int usage PARAMS ((void)) ATTRIBUTE_NORETURN;
static void process_class PROTO ((struct JCF *)); static void process_class PARAMS ((struct JCF *));
static void print_constant_pool PROTO ((struct JCF *)); static void print_constant_pool PARAMS ((struct JCF *));
static void print_exception_table PROTO ((struct JCF *, static void print_exception_table PARAMS ((struct JCF *,
const unsigned char *entries, int)); const unsigned char *entries, int));
#define PRINT_SIGNATURE_RESULT_ONLY 1 #define PRINT_SIGNATURE_RESULT_ONLY 1
......
/* Parser for Java(TM) .class files. /* Parser for Java(TM) .class files.
Copyright (C) 1996, 1998, 1999 Free Software Foundation, Inc. Copyright (C) 1996, 1998, 1999, 2000 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -76,16 +76,16 @@ static tree current_method = NULL_TREE; ...@@ -76,16 +76,16 @@ static tree current_method = NULL_TREE;
static struct JCF main_jcf[1]; static struct JCF main_jcf[1];
/* Declarations of some functions used here. */ /* Declarations of some functions used here. */
static tree give_name_to_class PROTO ((JCF *jcf, int index)); static tree give_name_to_class PARAMS ((JCF *jcf, int index));
static void parse_zip_file_entries PROTO ((void)); static void parse_zip_file_entries PARAMS ((void));
static void process_zip_dir PROTO ((void)); static void process_zip_dir PARAMS ((void));
static void parse_source_file PROTO ((tree)); static void parse_source_file PARAMS ((tree));
static void jcf_parse_source PROTO ((void)); static void jcf_parse_source PARAMS ((void));
static int jcf_figure_file_type PROTO ((JCF *)); static int jcf_figure_file_type PARAMS ((JCF *));
static int find_in_current_zip PROTO ((const char *, struct JCF **)); static int find_in_current_zip PARAMS ((const char *, struct JCF **));
static void parse_class_file PROTO ((void)); static void parse_class_file PARAMS ((void));
static void set_source_filename PROTO ((JCF *, int)); static void set_source_filename PARAMS ((JCF *, int));
static int predefined_filename_p PROTO ((tree)); static int predefined_filename_p PARAMS ((tree));
/* Handle "SourceFile" attribute. */ /* Handle "SourceFile" attribute. */
......
/* Handle CLASSPATH, -classpath, and path searching. /* Handle CLASSPATH, -classpath, and path searching.
Copyright (C) 1998, 1999 Free Software Foundation, Inc. Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
...@@ -53,10 +53,10 @@ struct entry ...@@ -53,10 +53,10 @@ struct entry
struct entry *next; struct entry *next;
}; };
static void free_entry PROTO ((struct entry **)); static void free_entry PARAMS ((struct entry **));
static void append_entry PROTO ((struct entry **, struct entry *)); static void append_entry PARAMS ((struct entry **, struct entry *));
static void add_entry PROTO ((struct entry **, const char *, int)); static void add_entry PARAMS ((struct entry **, const char *, int));
static void add_path PROTO ((struct entry **, const char *, int)); static void add_path PARAMS ((struct entry **, const char *, int));
/* We support several different ways to set the class path. /* We support several different ways to set the class path.
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
It is not stand-alone: It depends on tons of macros, and the It is not stand-alone: It depends on tons of macros, and the
intent is you #include this file after you've defined the macros. intent is you #include this file after you've defined the macros.
Copyright (C) 1996 Free Software Foundation, Inc. Copyright (C) 1996, 97-99, 2000 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
...@@ -26,14 +26,14 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */ ...@@ -26,14 +26,14 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
#include "jcf.h" #include "jcf.h"
#include "zipfile.h" #include "zipfile.h"
static int get_attribute PROTO((JCF *)); static int get_attribute PARAMS ((JCF *));
static int jcf_parse_preamble PROTO((JCF *)); static int jcf_parse_preamble PARAMS ((JCF *));
static int jcf_parse_constant_pool PROTO((JCF *)); static int jcf_parse_constant_pool PARAMS ((JCF *));
static void jcf_parse_class PROTO((JCF *)); static void jcf_parse_class PARAMS ((JCF *));
static int jcf_parse_fields PROTO((JCF *)); static int jcf_parse_fields PARAMS ((JCF *));
static int jcf_parse_one_method PROTO((JCF *)); static int jcf_parse_one_method PARAMS ((JCF *));
static int jcf_parse_methods PROTO((JCF *)); static int jcf_parse_methods PARAMS ((JCF *));
static int jcf_parse_final_attributes PROTO((JCF *)); static int jcf_parse_final_attributes PARAMS ((JCF *));
static int static int
DEFUN(get_attribute, (jcf), DEFUN(get_attribute, (jcf),
......
/* Write out a Java(TM) class file. /* Write out a Java(TM) class file.
Copyright (C) 1998, 1999 Free Software Foundation, Inc. Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -271,70 +271,70 @@ struct jcf_partial ...@@ -271,70 +271,70 @@ struct jcf_partial
struct jcf_switch_state *sw_state; struct jcf_switch_state *sw_state;
}; };
static void generate_bytecode_insns PROTO ((tree, int, struct jcf_partial *)); static void generate_bytecode_insns PARAMS ((tree, int, struct jcf_partial *));
static struct chunk * alloc_chunk PROTO ((struct chunk *, unsigned char *, static struct chunk * alloc_chunk PARAMS ((struct chunk *, unsigned char *,
int, struct obstack *)); int, struct obstack *));
static unsigned char * append_chunk PROTO ((unsigned char *, int, static unsigned char * append_chunk PARAMS ((unsigned char *, int,
struct jcf_partial *)); struct jcf_partial *));
static void append_chunk_copy PROTO ((unsigned char *, int, static void append_chunk_copy PARAMS ((unsigned char *, int,
struct jcf_partial *)); struct jcf_partial *));
static struct jcf_block * gen_jcf_label PROTO ((struct jcf_partial *)); static struct jcf_block * gen_jcf_label PARAMS ((struct jcf_partial *));
static void finish_jcf_block PROTO ((struct jcf_partial *)); static void finish_jcf_block PARAMS ((struct jcf_partial *));
static void define_jcf_label PROTO ((struct jcf_block *, static void define_jcf_label PARAMS ((struct jcf_block *,
struct jcf_partial *)); struct jcf_partial *));
static struct jcf_block * get_jcf_label_here PROTO ((struct jcf_partial *)); static struct jcf_block * get_jcf_label_here PARAMS ((struct jcf_partial *));
static void put_linenumber PROTO ((int, struct jcf_partial *)); static void put_linenumber PARAMS ((int, struct jcf_partial *));
static void localvar_alloc PROTO ((tree, struct jcf_partial *)); static void localvar_alloc PARAMS ((tree, struct jcf_partial *));
static void localvar_free PROTO ((tree, struct jcf_partial *)); static void localvar_free PARAMS ((tree, struct jcf_partial *));
static int get_access_flags PROTO ((tree)); static int get_access_flags PARAMS ((tree));
static void write_chunks PROTO ((FILE *, struct chunk *)); static void write_chunks PARAMS ((FILE *, struct chunk *));
static int adjust_typed_op PROTO ((tree, int)); static int adjust_typed_op PARAMS ((tree, int));
static void generate_bytecode_conditional PROTO ((tree, struct jcf_block *, static void generate_bytecode_conditional PARAMS ((tree, struct jcf_block *,
struct jcf_block *, int, struct jcf_block *, int,
struct jcf_partial *)); struct jcf_partial *));
static void generate_bytecode_return PROTO ((tree, struct jcf_partial *)); static void generate_bytecode_return PARAMS ((tree, struct jcf_partial *));
static void perform_relocations PROTO ((struct jcf_partial *)); static void perform_relocations PARAMS ((struct jcf_partial *));
static void init_jcf_state PROTO ((struct jcf_partial *, struct obstack *)); static void init_jcf_state PARAMS ((struct jcf_partial *, struct obstack *));
static void init_jcf_method PROTO ((struct jcf_partial *, tree)); static void init_jcf_method PARAMS ((struct jcf_partial *, tree));
static void release_jcf_state PROTO ((struct jcf_partial *)); static void release_jcf_state PARAMS ((struct jcf_partial *));
static struct chunk * generate_classfile PROTO ((tree, struct jcf_partial *)); static struct chunk * generate_classfile PARAMS ((tree, struct jcf_partial *));
static struct jcf_handler *alloc_handler PROTO ((struct jcf_block *, static struct jcf_handler *alloc_handler PARAMS ((struct jcf_block *,
struct jcf_block *, struct jcf_block *,
struct jcf_partial *)); struct jcf_partial *));
static void emit_iinc PROTO ((tree, HOST_WIDE_INT, struct jcf_partial *)); static void emit_iinc PARAMS ((tree, HOST_WIDE_INT, struct jcf_partial *));
static void emit_reloc PROTO ((HOST_WIDE_INT, int, struct jcf_block *, static void emit_reloc PARAMS ((HOST_WIDE_INT, int, struct jcf_block *,
struct jcf_partial *)); struct jcf_partial *));
static void push_constant1 PROTO ((HOST_WIDE_INT, struct jcf_partial *)); static void push_constant1 PARAMS ((HOST_WIDE_INT, struct jcf_partial *));
static void push_constant2 PROTO ((HOST_WIDE_INT, struct jcf_partial *)); static void push_constant2 PARAMS ((HOST_WIDE_INT, struct jcf_partial *));
static void push_int_const PROTO ((HOST_WIDE_INT, struct jcf_partial *)); static void push_int_const PARAMS ((HOST_WIDE_INT, struct jcf_partial *));
static int find_constant_wide PROTO ((HOST_WIDE_INT, HOST_WIDE_INT, static int find_constant_wide PARAMS ((HOST_WIDE_INT, HOST_WIDE_INT,
struct jcf_partial *)); struct jcf_partial *));
static void push_long_const PROTO ((HOST_WIDE_INT, HOST_WIDE_INT, static void push_long_const PARAMS ((HOST_WIDE_INT, HOST_WIDE_INT,
struct jcf_partial *)); struct jcf_partial *));
static int find_constant_index PROTO ((tree, struct jcf_partial *)); static int find_constant_index PARAMS ((tree, struct jcf_partial *));
static void push_long_const PROTO ((HOST_WIDE_INT, HOST_WIDE_INT, static void push_long_const PARAMS ((HOST_WIDE_INT, HOST_WIDE_INT,
struct jcf_partial *)); struct jcf_partial *));
static void field_op PROTO ((tree, int, struct jcf_partial *)); static void field_op PARAMS ((tree, int, struct jcf_partial *));
static void maybe_wide PROTO ((int, int, struct jcf_partial *)); static void maybe_wide PARAMS ((int, int, struct jcf_partial *));
static void emit_dup PROTO ((int, int, struct jcf_partial *)); static void emit_dup PARAMS ((int, int, struct jcf_partial *));
static void emit_pop PROTO ((int, struct jcf_partial *)); static void emit_pop PARAMS ((int, struct jcf_partial *));
static void emit_load_or_store PROTO ((tree, int, struct jcf_partial *)); static void emit_load_or_store PARAMS ((tree, int, struct jcf_partial *));
static void emit_load PROTO ((tree, struct jcf_partial *)); static void emit_load PARAMS ((tree, struct jcf_partial *));
static void emit_store PROTO ((tree, struct jcf_partial *)); static void emit_store PARAMS ((tree, struct jcf_partial *));
static void emit_unop PROTO ((enum java_opcode, tree, struct jcf_partial *)); static void emit_unop PARAMS ((enum java_opcode, tree, struct jcf_partial *));
static void emit_binop PROTO ((enum java_opcode, tree, struct jcf_partial *)); static void emit_binop PARAMS ((enum java_opcode, tree, struct jcf_partial *));
static void emit_reloc PROTO ((HOST_WIDE_INT, int, struct jcf_block *, static void emit_reloc PARAMS ((HOST_WIDE_INT, int, struct jcf_block *,
struct jcf_partial *)); struct jcf_partial *));
static void emit_switch_reloc PROTO ((struct jcf_block *, static void emit_switch_reloc PARAMS ((struct jcf_block *,
struct jcf_partial *)); struct jcf_partial *));
static void emit_case_reloc PROTO ((struct jcf_relocation *, static void emit_case_reloc PARAMS ((struct jcf_relocation *,
struct jcf_partial *)); struct jcf_partial *));
static void emit_if PROTO ((struct jcf_block *, int, int, static void emit_if PARAMS ((struct jcf_block *, int, int,
struct jcf_partial *)); struct jcf_partial *));
static void emit_goto PROTO ((struct jcf_block *, struct jcf_partial *)); static void emit_goto PARAMS ((struct jcf_block *, struct jcf_partial *));
static void emit_jsr PROTO ((struct jcf_block *, struct jcf_partial *)); static void emit_jsr PARAMS ((struct jcf_block *, struct jcf_partial *));
static void call_cleanups PROTO ((struct jcf_block *, struct jcf_partial *)); static void call_cleanups PARAMS ((struct jcf_block *, struct jcf_partial *));
static char *make_class_file_name PROTO ((tree)); static char *make_class_file_name PARAMS ((tree));
/* Utility macros for appending (big-endian) data to a buffer. /* Utility macros for appending (big-endian) data to a buffer.
We assume a local variable 'ptr' points into where we want to We assume a local variable 'ptr' points into where we want to
......
/* Utility macros to read Java(TM) .class files and byte codes. /* Utility macros to read Java(TM) .class files and byte codes.
Copyright (C) 1996, 97-98, 1999 Free Software Foundation, Inc. Copyright (C) 1996, 97-99, 2000 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
...@@ -38,11 +38,11 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */ ...@@ -38,11 +38,11 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
#endif #endif
#endif /* !DEFUN */ #endif /* !DEFUN */
#ifndef PROTO #ifndef PARAMS
#if defined (__STDC__) #if defined (__STDC__)
#define PROTO(paramlist) paramlist #define PARAMS (paramlist) paramlist
#else #else
#define PROTO(paramlist) () #define PARAMS (paramlist) ()
#endif #endif
#endif #endif
...@@ -68,7 +68,7 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */ ...@@ -68,7 +68,7 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
#define JCF_SOURCE 3 #define JCF_SOURCE 3
struct JCF; struct JCF;
typedef int (*jcf_filbuf_t) PROTO ((struct JCF*, int needed)); typedef int (*jcf_filbuf_t) PARAMS ((struct JCF*, int needed));
typedef struct CPool { typedef struct CPool {
/* Available number of elements in the constants array, before it /* Available number of elements in the constants array, before it
...@@ -221,10 +221,10 @@ typedef struct JCF { ...@@ -221,10 +221,10 @@ typedef struct JCF {
#define DEFAULT_CLASS_PATH "." #define DEFAULT_CLASS_PATH "."
extern const char *find_class PROTO ((const char *, int, JCF*, int)); extern const char *find_class PARAMS ((const char *, int, JCF*, int));
extern const char *find_classfile PROTO ((char *, JCF*, const char *)); extern const char *find_classfile PARAMS ((char *, JCF*, const char *));
extern int jcf_filbuf_from_stdio PROTO ((JCF *jcf, int count)); extern int jcf_filbuf_from_stdio PARAMS ((JCF *jcf, int count));
extern int jcf_unexpected_eof PROTO ((JCF*, int)) ATTRIBUTE_NORETURN; extern int jcf_unexpected_eof PARAMS ((JCF*, int)) ATTRIBUTE_NORETURN;
/* Extract a character from a Java-style Utf8 string. /* Extract a character from a Java-style Utf8 string.
* PTR points to the current character. * PTR points to the current character.
...@@ -255,25 +255,25 @@ extern int quiet_flag; ...@@ -255,25 +255,25 @@ extern int quiet_flag;
#endif #endif
/* Declarations for dependency code. */ /* Declarations for dependency code. */
extern void jcf_dependency_reset PROTO ((void)); extern void jcf_dependency_reset PARAMS ((void));
extern void jcf_dependency_set_target PROTO ((const char *)); extern void jcf_dependency_set_target PARAMS ((const char *));
extern void jcf_dependency_add_target PROTO ((const char *)); extern void jcf_dependency_add_target PARAMS ((const char *));
extern void jcf_dependency_set_dep_file PROTO ((const char *)); extern void jcf_dependency_set_dep_file PARAMS ((const char *));
extern void jcf_dependency_add_file PROTO ((const char *, int)); extern void jcf_dependency_add_file PARAMS ((const char *, int));
extern void jcf_dependency_write PROTO ((void)); extern void jcf_dependency_write PARAMS ((void));
extern void jcf_dependency_init PROTO ((int)); extern void jcf_dependency_init PARAMS ((int));
/* Declarations for path handling code. */ /* Declarations for path handling code. */
extern void jcf_path_init PROTO ((void)); extern void jcf_path_init PARAMS ((void));
extern void jcf_path_classpath_arg PROTO ((const char *)); extern void jcf_path_classpath_arg PARAMS ((const char *));
extern void jcf_path_CLASSPATH_arg PROTO ((const char *)); extern void jcf_path_CLASSPATH_arg PARAMS ((const char *));
extern void jcf_path_include_arg PROTO ((const char *)); extern void jcf_path_include_arg PARAMS ((const char *));
extern void jcf_path_seal PROTO ((void)); extern void jcf_path_seal PARAMS ((void));
extern void *jcf_path_start PROTO ((void)); extern void *jcf_path_start PARAMS ((void));
extern void *jcf_path_next PROTO ((void *)); extern void *jcf_path_next PARAMS ((void *));
extern char *jcf_path_name PROTO ((void *)); extern char *jcf_path_name PARAMS ((void *));
extern int jcf_path_is_zipfile PROTO ((void *)); extern int jcf_path_is_zipfile PARAMS ((void *));
extern int jcf_path_is_system PROTO ((void *)); extern int jcf_path_is_system PARAMS ((void *));
extern int jcf_path_max_len PROTO ((void)); extern int jcf_path_max_len PARAMS ((void));
#endif #endif
/* Main for jv-scan /* Main for jv-scan
Copyright (C) 1998, 1999 Free Software Foundation, Inc. Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
Contributed by Alexandre Petit-Bianco (apbianco@cygnus.com) Contributed by Alexandre Petit-Bianco (apbianco@cygnus.com)
This file is part of GNU CC. This file is part of GNU CC.
...@@ -24,9 +24,9 @@ Boston, MA 02111-1307, USA. */ ...@@ -24,9 +24,9 @@ Boston, MA 02111-1307, USA. */
#include "obstack.h" /* We use obstacks in lex.c */ #include "obstack.h" /* We use obstacks in lex.c */
void fatal VPROTO((const char *s, ...)) ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN; void fatal PARAMS ((const char *s, ...)) ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN;
void warning VPROTO((const char *s, ...)) ATTRIBUTE_PRINTF_1; void warning PARAMS ((const char *s, ...)) ATTRIBUTE_PRINTF_1;
void gcc_obstack_init PROTO ((struct obstack *obstack)); void gcc_obstack_init PARAMS ((struct obstack *obstack));
#define JC1_LITE #define JC1_LITE
#include "jcf.h" #include "jcf.h"
...@@ -140,7 +140,7 @@ DEFUN (main, (argc, argv), ...@@ -140,7 +140,7 @@ DEFUN (main, (argc, argv),
functions */ functions */
void void
fatal VPROTO((const char *s, ...)) fatal VPARAMS ((const char *s, ...))
{ {
#ifndef ANSI_PROTOTYPES #ifndef ANSI_PROTOTYPES
const char *s; const char *s;
...@@ -161,7 +161,7 @@ fatal VPROTO((const char *s, ...)) ...@@ -161,7 +161,7 @@ fatal VPROTO((const char *s, ...))
} }
void void
warning VPROTO((const char *s, ...)) warning VPARAMS ((const char *s, ...))
{ {
#ifndef ANSI_PROTOTYPES #ifndef ANSI_PROTOTYPES
const char *s; const char *s;
......
/* Program to generate "main" a Java(TM) class containing a main method. /* Program to generate "main" a Java(TM) class containing a main method.
Copyright (C) 1998, 1999 Free Software Foundation, Inc. Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -38,11 +38,11 @@ const char class_mangling_prefix[] = "_CL_"; ...@@ -38,11 +38,11 @@ const char class_mangling_prefix[] = "_CL_";
struct obstack name_obstack; struct obstack name_obstack;
extern void error PVPROTO ((const char *, ...)) extern void error PARAMS ((const char *, ...))
ATTRIBUTE_PRINTF_1; ATTRIBUTE_PRINTF_1;
void void
error VPROTO((const char *msgid, ...)) error VPARAMS ((const char *msgid, ...))
{ {
#ifndef ANSI_PROTOTYPES #ifndef ANSI_PROTOTYPES
const char *msgid; const char *msgid;
...@@ -75,8 +75,8 @@ gcc_obstack_init (obstack) ...@@ -75,8 +75,8 @@ gcc_obstack_init (obstack)
#define OBSTACK_CHUNK_FREE free #define OBSTACK_CHUNK_FREE free
#endif #endif
_obstack_begin (obstack, OBSTACK_CHUNK_SIZE, 0, _obstack_begin (obstack, OBSTACK_CHUNK_SIZE, 0,
(void *(*) PROTO((long))) OBSTACK_CHUNK_ALLOC, (void *(*) PARAMS ((long))) OBSTACK_CHUNK_ALLOC,
(void (*) PROTO((void *))) OBSTACK_CHUNK_FREE); (void (*) PARAMS ((void *))) OBSTACK_CHUNK_FREE);
} }
static void usage (const char *) ATTRIBUTE_NORETURN; static void usage (const char *) ATTRIBUTE_NORETURN;
......
/* Specific flags and argument handling of the front-end of the /* Specific flags and argument handling of the front-end of the
GNU compiler for the Java(TM) language. GNU compiler for the Java(TM) language.
Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc. Copyright (C) 1996, 97-99, 2000 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -39,7 +39,7 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */ ...@@ -39,7 +39,7 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
/* True if this arg is a .class input file name. */ /* True if this arg is a .class input file name. */
#define CLASS_FILE_ARG (1<<4) #define CLASS_FILE_ARG (1<<4)
static char *find_spec_file PROTO ((const char *)); static char *find_spec_file PARAMS ((const char *));
static const char *main_class_name = NULL; static const char *main_class_name = NULL;
int lang_specific_extra_outfiles = 0; int lang_specific_extra_outfiles = 0;
......
/* Java(TM) language-specific utility routines. /* Java(TM) language-specific utility routines.
Copyright (C) 1996, 97-98, 1999 Free Software Foundation, Inc. Copyright (C) 1996, 97-99, 2000 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -36,10 +36,10 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */ ...@@ -36,10 +36,10 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
#include "flags.h" #include "flags.h"
#include "xref.h" #include "xref.h"
static void put_decl_string PROTO ((const char *, int)); static void put_decl_string PARAMS ((const char *, int));
static void put_decl_node PROTO ((tree)); static void put_decl_node PARAMS ((tree));
static void java_dummy_print PROTO ((const char *)); static void java_dummy_print PARAMS ((const char *));
static void lang_print_error PROTO ((const char *)); static void lang_print_error PARAMS ((const char *));
#ifndef OBJECT_SUFFIX #ifndef OBJECT_SUFFIX
# define OBJECT_SUFFIX ".o" # define OBJECT_SUFFIX ".o"
......
/* Language lexer for the GNU compiler for the Java(TM) language. /* Language lexer for the GNU compiler for the Java(TM) language.
Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc. Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
Contributed by Alexandre Petit-Bianco (apbianco@cygnus.com) Contributed by Alexandre Petit-Bianco (apbianco@cygnus.com)
This file is part of GNU CC. This file is part of GNU CC.
...@@ -41,26 +41,26 @@ extern struct obstack *expression_obstack; ...@@ -41,26 +41,26 @@ extern struct obstack *expression_obstack;
#endif #endif
/* Function declaration */ /* Function declaration */
static int java_lineterminator PROTO ((unicode_t)); static int java_lineterminator PARAMS ((unicode_t));
static char *java_sprint_unicode PROTO ((struct java_line *, int)); static char *java_sprint_unicode PARAMS ((struct java_line *, int));
static void java_unicode_2_utf8 PROTO ((unicode_t)); static void java_unicode_2_utf8 PARAMS ((unicode_t));
static void java_lex_error PROTO ((const char *, int)); static void java_lex_error PARAMS ((const char *, int));
#ifndef JC1_LITE #ifndef JC1_LITE
static int java_is_eol PROTO ((FILE *, int)); static int java_is_eol PARAMS ((FILE *, int));
static tree build_wfl_node PROTO ((tree)); static tree build_wfl_node PARAMS ((tree));
#endif #endif
static void java_store_unicode PROTO ((struct java_line *, unicode_t, int)); static void java_store_unicode PARAMS ((struct java_line *, unicode_t, int));
static unicode_t java_parse_escape_sequence PROTO ((void)); static unicode_t java_parse_escape_sequence PARAMS ((void));
static int java_letter_or_digit_p PROTO ((unicode_t)); static int java_letter_or_digit_p PARAMS ((unicode_t));
static int java_parse_doc_section PROTO ((unicode_t)); static int java_parse_doc_section PARAMS ((unicode_t));
static void java_parse_end_comment PROTO ((unicode_t)); static void java_parse_end_comment PARAMS ((unicode_t));
static unicode_t java_get_unicode PROTO ((void)); static unicode_t java_get_unicode PARAMS ((void));
static unicode_t java_read_unicode PROTO ((int, int *)); static unicode_t java_read_unicode PARAMS ((int, int *));
static void java_store_unicode PROTO ((struct java_line *, unicode_t, int)); static void java_store_unicode PARAMS ((struct java_line *, unicode_t, int));
static unicode_t java_read_char PROTO ((void)); static unicode_t java_read_char PARAMS ((void));
static void java_allocate_new_line PROTO ((void)); static void java_allocate_new_line PARAMS ((void));
static void java_unget_unicode PROTO ((void)); static void java_unget_unicode PARAMS ((void));
static unicode_t java_sneak_unicode PROTO ((void)); static unicode_t java_sneak_unicode PARAMS ((void));
void void
java_init_lex () java_init_lex ()
......
/* Language lexer definitions for the GNU compiler for the Java(TM) language. /* Language lexer definitions for the GNU compiler for the Java(TM) language.
Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc. Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
Contributed by Alexandre Petit-Bianco (apbianco@cygnus.com) Contributed by Alexandre Petit-Bianco (apbianco@cygnus.com)
This file is part of GNU CC. This file is part of GNU CC.
...@@ -132,7 +132,7 @@ typedef struct _java_lc { ...@@ -132,7 +132,7 @@ typedef struct _java_lc {
#else #else
extern void set_float_handler PROTO((jmp_buf)); extern void set_float_handler PARAMS ((jmp_buf));
#define SET_FLOAT_HANDLER(H) set_float_handler ((H)) #define SET_FLOAT_HANDLER(H) set_float_handler ((H))
#define DCONST0 dconst0 #define DCONST0 dconst0
#define GET_IDENTIFIER(S) get_identifier ((S)) #define GET_IDENTIFIER(S) get_identifier ((S))
......
...@@ -170,8 +170,8 @@ struct method_declarator { ...@@ -170,8 +170,8 @@ struct method_declarator {
} }
/* Two actions for this grammar */ /* Two actions for this grammar */
static void report_class_declaration PROTO ((const char *)); static void report_class_declaration PARAMS ((const char *));
static void report_main_declaration PROTO ((struct method_declarator *)); static void report_main_declaration PARAMS ((struct method_declarator *));
#include "lex.h" #include "lex.h"
#include "parse.h" #include "parse.h"
......
/* Parser grammar for quick source code scan of Java(TM) language programs. /* Parser grammar for quick source code scan of Java(TM) language programs.
Copyright (C) 1998, 1999 Free Software Foundation, Inc. Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
Contributed by Alexandre Petit-Bianco (apbianco@cygnus.com) Contributed by Alexandre Petit-Bianco (apbianco@cygnus.com)
This file is part of GNU CC. This file is part of GNU CC.
...@@ -90,8 +90,8 @@ struct method_declarator { ...@@ -90,8 +90,8 @@ struct method_declarator {
} }
/* Two actions for this grammar */ /* Two actions for this grammar */
static void report_class_declaration PROTO ((const char *)); static void report_class_declaration PARAMS ((const char *));
static void report_main_declaration PROTO ((struct method_declarator *)); static void report_main_declaration PARAMS ((struct method_declarator *));
#include "lex.h" #include "lex.h"
#include "parse.h" #include "parse.h"
......
/* Language parser definitions for the GNU compiler for the Java(TM) language. /* Language parser definitions for the GNU compiler for the Java(TM) language.
Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc. Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
Contributed by Alexandre Petit-Bianco (apbianco@cygnus.com) Contributed by Alexandre Petit-Bianco (apbianco@cygnus.com)
This file is part of GNU CC. This file is part of GNU CC.
...@@ -36,8 +36,8 @@ extern int quiet_flag; ...@@ -36,8 +36,8 @@ extern int quiet_flag;
#ifndef JC1_LITE #ifndef JC1_LITE
/* Function extern to java/ */ /* Function extern to java/ */
extern int int_fits_type_p PROTO ((tree, tree)); extern int int_fits_type_p PARAMS ((tree, tree));
extern tree stabilize_reference PROTO ((tree)); extern tree stabilize_reference PARAMS ((tree));
#endif #endif
/* Macros for verbose debug info */ /* Macros for verbose debug info */
...@@ -671,28 +671,28 @@ struct parser_ctxt { ...@@ -671,28 +671,28 @@ struct parser_ctxt {
}; };
#ifndef JC1_LITE #ifndef JC1_LITE
void safe_layout_class PROTO ((tree)); void safe_layout_class PARAMS ((tree));
void java_complete_class PROTO ((void)); void java_complete_class PARAMS ((void));
void java_check_circular_reference PROTO ((void)); void java_check_circular_reference PARAMS ((void));
void java_fix_constructors PROTO ((void)); void java_fix_constructors PARAMS ((void));
void java_check_final PROTO ((void)); void java_check_final PARAMS ((void));
void java_layout_classes PROTO ((void)); void java_layout_classes PARAMS ((void));
tree java_method_add_stmt PROTO ((tree, tree)); tree java_method_add_stmt PARAMS ((tree, tree));
void java_expand_switch PROTO ((tree)); void java_expand_switch PARAMS ((tree));
int java_report_errors PROTO ((void)); int java_report_errors PARAMS ((void));
extern tree do_resolve_class PROTO ((tree, tree, tree)); extern tree do_resolve_class PARAMS ((tree, tree, tree));
#endif #endif
char *java_get_line_col PROTO ((char *, int, int)); char *java_get_line_col PARAMS ((char *, int, int));
extern void reset_report PROTO ((void)); extern void reset_report PARAMS ((void));
/* Always in use, no matter what you compile */ /* Always in use, no matter what you compile */
void java_push_parser_context PROTO ((void)); void java_push_parser_context PARAMS ((void));
void java_pop_parser_context PROTO ((int)); void java_pop_parser_context PARAMS ((int));
void java_init_lex PROTO ((void)); void java_init_lex PARAMS ((void));
extern void java_parser_context_save_global PROTO ((void)); extern void java_parser_context_save_global PARAMS ((void));
extern void java_parser_context_restore_global PROTO ((void)); extern void java_parser_context_restore_global PARAMS ((void));
int yyparse PROTO ((void)); int yyparse PARAMS ((void));
extern int java_parse PROTO ((void)); extern int java_parse PARAMS ((void));
void yyerror PROTO ((const char *)); void yyerror PARAMS ((const char *));
extern void java_expand_classes PROTO ((void)); extern void java_expand_classes PARAMS ((void));
#endif #endif
/* Handle types for the GNU compiler for the Java(TM) language. /* Handle types for the GNU compiler for the Java(TM) language.
Copyright (C) 1996, 97-98, 1999 Free Software Foundation, Inc. Copyright (C) 1996, 97-99, 2000 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -34,8 +34,8 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */ ...@@ -34,8 +34,8 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
#include "convert.h" #include "convert.h"
#include "toplev.h" #include "toplev.h"
static tree convert_ieee_real_to_integer PROTO ((tree, tree)); static tree convert_ieee_real_to_integer PARAMS ((tree, tree));
static tree parse_signature_type PROTO ((const unsigned char **, static tree parse_signature_type PARAMS ((const unsigned char **,
const unsigned char *)); const unsigned char *));
tree * type_map; tree * type_map;
......
/* Handle verification of bytecoded methods for the GNU compiler for /* Handle verification of bytecoded methods for the GNU compiler for
the Java(TM) language. the Java(TM) language.
Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc. Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -33,11 +33,11 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */ ...@@ -33,11 +33,11 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
#include "java-except.h" #include "java-except.h"
#include "toplev.h" #include "toplev.h"
static void push_pending_label PROTO ((tree)); static void push_pending_label PARAMS ((tree));
static tree merge_types PROTO ((tree, tree)); static tree merge_types PARAMS ((tree, tree));
static const char *check_pending_block PROTO ((tree)); static const char *check_pending_block PARAMS ((tree));
static void type_stack_dup PROTO ((int, int)); static void type_stack_dup PARAMS ((int, int));
static int start_pc_cmp PROTO ((const PTR, const PTR)); static int start_pc_cmp PARAMS ((const PTR, const PTR));
extern int stack_pointer; extern int stack_pointer;
......
/* Write cross reference information extracted from Java(TM) /* Write cross reference information extracted from Java(TM)
source and bytecode files, in one of formats documented below. source and bytecode files, in one of formats documented below.
Copyright (C) 1999 Free Software Foundation, Inc. Copyright (C) 1999, 2000 Free Software Foundation, Inc.
Contributed by Alexandre Petit-Bianco (apbianco@cygnus.com) Contributed by Alexandre Petit-Bianco (apbianco@cygnus.com)
This file is part of GNU CC. This file is part of GNU CC.
...@@ -81,7 +81,7 @@ expand_xref (node) ...@@ -81,7 +81,7 @@ expand_xref (node)
{ {
/* Maintain these two cached. */ /* Maintain these two cached. */
static FILE *fp = NULL; static FILE *fp = NULL;
static void (*current_expand) PROTO ((FILE *, tree)) = NULL; static void (*current_expand) PARAMS ((FILE *, tree)) = NULL;
if ( !flag_emit_xref ) if ( !flag_emit_xref )
return; return;
......
/* Definitions for the cross reference backend xref.c /* Definitions for the cross reference backend xref.c
Copyright (C) 1999 Free Software Foundation, Inc. Copyright (C) 1999, 2000 Free Software Foundation, Inc.
Contributed by Alexandre Petit-Bianco (apbianco@cygnus.com) Contributed by Alexandre Petit-Bianco (apbianco@cygnus.com)
This file is part of GNU CC. This file is part of GNU CC.
...@@ -24,11 +24,11 @@ of Sun Microsystems, Inc. in the United States and other countries. ...@@ -24,11 +24,11 @@ of Sun Microsystems, Inc. in the United States and other countries.
The Free Software Foundation is independent of Sun Microsystems, Inc. */ The Free Software Foundation is independent of Sun Microsystems, Inc. */
/* Exported functions. */ /* Exported functions. */
int xref_flag_value PROTO ((const char *)); int xref_flag_value PARAMS ((const char *));
void expand_xref PROTO ((tree)); void expand_xref PARAMS ((tree));
void xref_set_data PROTO ((int, void *)); void xref_set_data PARAMS ((int, void *));
void *xref_get_data PROTO ((int)); void *xref_get_data PARAMS ((int));
void xref_set_current_fp PROTO ((FILE *)); void xref_set_current_fp PARAMS ((FILE *));
/* flag_emit_xref range of possible values. */ /* flag_emit_xref range of possible values. */
...@@ -40,7 +40,7 @@ enum { ...@@ -40,7 +40,7 @@ enum {
typedef struct { typedef struct {
char *key; /* Activator in -fxref=<key> */ char *key; /* Activator in -fxref=<key> */
void (*expand) PROTO ((FILE *, tree)); /* Function to write xrefs out */ void (*expand) PARAMS ((FILE *, tree)); /* Function to write xrefs out */
FILE *fp; /* fp to use during the call. */ FILE *fp; /* fp to use during the call. */
void *data; /* Placeholder for additional data */ void *data; /* Placeholder for additional data */
} xref_flag_table; } xref_flag_table;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
This extracts a member from a .zip file, but does not handle This extracts a member from a .zip file, but does not handle
uncompression (since that is not needed for classes.zip). uncompression (since that is not needed for classes.zip).
Copyright (C) 1996, 97-98, 1999 Free Software Foundation, Inc. Copyright (C) 1996, 97-99, 2000 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
...@@ -210,8 +210,8 @@ typedef unsigned long ulg; /* predefined on some systems) & match zip */ ...@@ -210,8 +210,8 @@ typedef unsigned long ulg; /* predefined on some systems) & match zip */
/* Prototypes */ /* Prototypes */
/***********************/ /***********************/
static ush makeword PROTO ((const uch *)); static ush makeword PARAMS ((const uch *));
static ulg makelong PROTO ((const uch *)); static ulg makelong PARAMS ((const uch *));
/***********************/ /***********************/
/* Function makeword() */ /* Function makeword() */
......
/* Definitions for using a zipped' archive. /* Definitions for using a zipped' archive.
Copyright (C) 1996, 97-98, 1999 Free Software Foundation, Inc. Copyright (C) 1996, 97-99, 2000 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
...@@ -57,9 +57,9 @@ extern struct ZipFileCache *SeenZipFiles; ...@@ -57,9 +57,9 @@ extern struct ZipFileCache *SeenZipFiles;
((ZipDirectory*)((char*)(ZIPD)+(ZIPD)->direntry_size)) ((ZipDirectory*)((char*)(ZIPD)+(ZIPD)->direntry_size))
#define ZIPMAGIC 0x504b0304 #define ZIPMAGIC 0x504b0304
extern ZipFile * opendir_in_zip PROTO ((const char *, int)); extern ZipFile * opendir_in_zip PARAMS ((const char *, int));
extern int read_zip_archive PROTO ((ZipFile *)); extern int read_zip_archive PARAMS ((ZipFile *));
#ifdef JCF_ZIP #ifdef JCF_ZIP
extern int open_in_zip PROTO ((struct JCF *, const char *, extern int open_in_zip PARAMS ((struct JCF *, const char *,
const char *, int)); const char *, int));
#endif #endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment