Commit 850ccfae by Tom Tromey Committed by Tom Tromey

java-tree.h: Don't use PARAMS.

	* java-tree.h: Don't use PARAMS.
	* resource.c: Add prototypes for all functions.
	(write_resource_constructor): Use `const char *' to avoid
	warning.

From-SVN: r61640
parent bab0b43b
2003-01-22 Tom Tromey <tromey@redhat.com>
* java-tree.h: Don't use PARAMS.
* resource.c: Add prototypes for all functions.
(write_resource_constructor): Use `const char *' to avoid
warning.
2003-01-22 Nathanael Nerode <neroden@gcc.gnu.org> 2003-01-22 Nathanael Nerode <neroden@gcc.gnu.org>
* jcf-parse.c (process_zip_dir): Remove unused variable. * jcf-parse.c (process_zip_dir): Remove unused variable.
......
...@@ -1299,11 +1299,10 @@ struct rtx_def * java_expand_expr (tree, rtx, enum machine_mode, int); ...@@ -1299,11 +1299,10 @@ struct rtx_def * java_expand_expr (tree, rtx, enum machine_mode, int);
extern void java_inlining_merge_static_initializers (tree, void *); extern void java_inlining_merge_static_initializers (tree, void *);
extern void java_inlining_map_static_initializers (tree, void *); extern void java_inlining_map_static_initializers (tree, void *);
extern void compile_resource_data PARAMS ((char *name, const char *buffer, extern void compile_resource_data (char *name, const char *buffer, int length);
int length)); extern void write_resource_constructor (void);
extern void write_resource_constructor PARAMS ((void)); extern void compile_resource_file (char *name, const char *filename);
extern void compile_resource_file PARAMS ((char *name, const char *filename)); extern void init_resource_processing (void);
extern void init_resource_processing PARAMS ((void));
#define DECL_FINAL(DECL) DECL_LANG_FLAG_3 (DECL) #define DECL_FINAL(DECL) DECL_LANG_FLAG_3 (DECL)
......
...@@ -56,10 +56,7 @@ static GTY(()) rtx registerResource_libfunc; ...@@ -56,10 +56,7 @@ static GTY(()) rtx registerResource_libfunc;
static int Jr_count = 0; static int Jr_count = 0;
void void
compile_resource_data (name, buffer, length) compile_resource_data (char *name, const char *buffer, int length)
char *name;
const char *buffer;
int length;
{ {
tree rtype, field = NULL_TREE, data_type, rinit, data, decl; tree rtype, field = NULL_TREE, data_type, rinit, data, decl;
char buf[60]; char buf[60];
...@@ -102,7 +99,7 @@ compile_resource_data (name, buffer, length) ...@@ -102,7 +99,7 @@ compile_resource_data (name, buffer, length)
} }
void void
write_resource_constructor () write_resource_constructor (void)
{ {
tree init_name, init_type, init_decl; tree init_name, init_type, init_decl;
tree iter; tree iter;
...@@ -134,7 +131,7 @@ write_resource_constructor () ...@@ -134,7 +131,7 @@ write_resource_constructor ()
for (iter = nreverse (resources); iter != NULL_TREE; for (iter = nreverse (resources); iter != NULL_TREE;
iter = TREE_CHAIN (iter)) iter = TREE_CHAIN (iter))
{ {
char *name = IDENTIFIER_POINTER (DECL_NAME (TREE_VALUE (iter))); const char *name = IDENTIFIER_POINTER (DECL_NAME (TREE_VALUE (iter)));
emit_library_call (registerResource_libfunc, 0, VOIDmode, 1, emit_library_call (registerResource_libfunc, 0, VOIDmode, 1,
gen_rtx (SYMBOL_REF, Pmode, name), gen_rtx (SYMBOL_REF, Pmode, name),
Pmode); Pmode);
...@@ -160,9 +157,7 @@ write_resource_constructor () ...@@ -160,9 +157,7 @@ write_resource_constructor ()
compiled Java resource, which is accessed by the runtime using compiled Java resource, which is accessed by the runtime using
NAME. */ NAME. */
void void
compile_resource_file (name, filename) compile_resource_file (char *name, const char *filename)
char *name;
const char *filename;
{ {
struct stat stat_buf; struct stat stat_buf;
int fd; int fd;
...@@ -190,7 +185,7 @@ compile_resource_file (name, filename) ...@@ -190,7 +185,7 @@ compile_resource_file (name, filename)
} }
void void
init_resource_processing () init_resource_processing (void)
{ {
registerResource_libfunc = registerResource_libfunc =
gen_rtx_SYMBOL_REF (Pmode, "_Jv_RegisterResource"); gen_rtx_SYMBOL_REF (Pmode, "_Jv_RegisterResource");
......
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