java-tree.h: Don't use PARAMS.
authorTom Tromey <tromey@redhat.com>
Thu, 23 Jan 2003 02:38:57 +0000 (02:38 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Thu, 23 Jan 2003 02:38:57 +0000 (02:38 +0000)
* 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

gcc/java/ChangeLog
gcc/java/java-tree.h
gcc/java/resource.c

index 93dd5c766c47d89ff622d87d42df1c5751e1ccad..cf9ce67e6c9c5bcf87fadaf414eae4811e926336 100644 (file)
@@ -1,3 +1,10 @@
+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>
 
        * jcf-parse.c (process_zip_dir): Remove unused variable.
index ccedb9a2e6d460b1aba1593ab50162bdf3acd6c8..e541e2d3c22f634e40c088aa412e7aa79d76d9f4 100644 (file)
@@ -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_map_static_initializers (tree, void *);
 
-extern void compile_resource_data PARAMS ((char *name, const char *buffer,
-                                          int length));
-extern void write_resource_constructor PARAMS ((void));
-extern void compile_resource_file PARAMS ((char *name, const char *filename));
-extern void init_resource_processing PARAMS ((void));
+extern void compile_resource_data (char *name, const char *buffer, int length);
+extern void write_resource_constructor (void);
+extern void compile_resource_file (char *name, const char *filename);
+extern void init_resource_processing (void);
 
 
 #define DECL_FINAL(DECL) DECL_LANG_FLAG_3 (DECL)
index 3362cc8932244dc5ca6a9014f08232d7acaa13b7..e58a5a5ac20feae836c5b4ddbc5baa5e516afef7 100644 (file)
@@ -56,10 +56,7 @@ static GTY(()) rtx registerResource_libfunc;
 static int Jr_count = 0;
 
 void
-compile_resource_data (name, buffer, length)
-     char *name;
-     const char *buffer;
-     int length;
+compile_resource_data (char *name, const char *buffer, int length)
 {
   tree rtype, field = NULL_TREE, data_type, rinit, data, decl;
   char buf[60];
@@ -102,7 +99,7 @@ compile_resource_data (name, buffer, length)
 }
 
 void
-write_resource_constructor ()
+write_resource_constructor (void)
 {
   tree init_name, init_type, init_decl;
   tree iter;
@@ -134,7 +131,7 @@ write_resource_constructor ()
   for (iter = nreverse (resources); iter != NULL_TREE;
        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,
                         gen_rtx (SYMBOL_REF, Pmode, name),
                         Pmode);
@@ -160,9 +157,7 @@ write_resource_constructor ()
    compiled Java resource, which is accessed by the runtime using
    NAME.  */
 void
-compile_resource_file (name, filename)
-     char *name;
-     const char *filename;
+compile_resource_file (char *name, const char *filename)
 {
   struct stat stat_buf;
   int fd;
@@ -190,7 +185,7 @@ compile_resource_file (name, filename)
 }
 
 void
-init_resource_processing ()
+init_resource_processing (void)
 {
   registerResource_libfunc =
     gen_rtx_SYMBOL_REF (Pmode, "_Jv_RegisterResource");