]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
class.c (add_method_1): Cast the argument of `bzero' to PTR.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Mon, 5 Apr 1999 13:04:38 +0000 (13:04 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Mon, 5 Apr 1999 13:04:38 +0000 (13:04 +0000)
        * class.c (add_method_1): Cast the argument of `bzero' to PTR.
        * decl.c (copy_lang_decl): Likewise for `bcopy'.
        * jcf-depend.c: Include "config.h", not <config.h>.
        * jcf-parse.c (jcf_figure_file_type): Cast the arguments of
        `bcopy' to PTR.
        * jcf-path.c: Include "config.h", not <config.h>.
        * lex.c: Don't include various system header files.
        (java_init_lex): Cast the argument of `bzero' to PTR
        * parse-scan.y (java_push_parser_context): Likewise.
        * parse.y (java_push_parser_context): Likewise.
        * xref.c: Don't include <stdio.h>.

From-SVN: r26203

12 files changed:
gcc/java/ChangeLog
gcc/java/class.c
gcc/java/decl.c
gcc/java/jcf-depend.c
gcc/java/jcf-parse.c
gcc/java/jcf-path.c
gcc/java/lex.c
gcc/java/parse-scan.c
gcc/java/parse-scan.y
gcc/java/parse.c
gcc/java/parse.y
gcc/java/xref.c

index 737a03b292f9a83a614d21bac76b0e94b5582f2b..22eb0a6054b284617385834780b67fcfb2f6ef48 100644 (file)
@@ -1,3 +1,26 @@
+Mon Apr  5 15:43:51 1999  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+        * class.c (add_method_1): Cast the argument of `bzero' to PTR.
+
+        * decl.c (copy_lang_decl): Likewise for `bcopy'.
+
+        * jcf-depend.c: Include "config.h", not <config.h>.
+
+        * jcf-parse.c (jcf_figure_file_type): Cast the arguments of
+       `bcopy' to PTR.
+
+        * jcf-path.c: Include "config.h", not <config.h>.
+
+        * lex.c: Don't include various system header files.
+       (java_init_lex): Cast the argument of `bzero' to PTR
+
+        * parse-scan.y (java_push_parser_context): Likewise.
+
+        * parse.y (java_push_parser_context): Likewise.
+       (patch_bc_statement): Match format specifier to variable argument.
+
+        * xref.c: Don't include <stdio.h>.
+
 Mon Apr  5 11:24:19 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>
 
        * parse.y (struct parser_ctxt *ctxp): Now global.
index 4c924d063ab92ce1d4eade54b9412e9c820eb5e6..f785d0f0076e47acea8414f951d8988dcf36fa4c 100644 (file)
@@ -417,7 +417,7 @@ add_method_1 (handle_class, access_flags, name, function_type)
 
   DECL_LANG_SPECIFIC (fndecl)
     = (struct lang_decl *) permalloc (sizeof (struct lang_decl));
-  bzero (DECL_LANG_SPECIFIC (fndecl), sizeof (struct lang_decl));
+  bzero ((PTR) DECL_LANG_SPECIFIC (fndecl), sizeof (struct lang_decl));
 
   TREE_CHAIN (fndecl) = TYPE_METHODS (handle_class);
   TYPE_METHODS (handle_class) = fndecl;
index e98fb51429af153470cd354fa50632bfc3c0252b..110945460d1784ed6bdfeef21cf5457eced43291 100644 (file)
@@ -1373,7 +1373,7 @@ copy_lang_decl (node)
     = TREE_CODE (node) == VAR_DECL ? sizeof (struct lang_decl_var)
     : sizeof (struct lang_decl);
   struct lang_decl *x = (struct lang_decl *) oballoc (lang_decl_size);
-  bcopy (DECL_LANG_SPECIFIC (node), x, lang_decl_size);
+  bcopy ((PTR) DECL_LANG_SPECIFIC (node), (PTR) x, lang_decl_size);
   DECL_LANG_SPECIFIC (node) = x;
 }
 
index 9adbdb4eec025adb32cb084ba0e569dd961d5353..86b9d7722fe811503a7beef3eb5d4a1d553bca03 100644 (file)
@@ -23,7 +23,7 @@ The Free Software Foundation is independent of Sun Microsystems, Inc.  */
 
 /* Written by Tom Tromey <tromey@cygnus.com>, October 1998.  */
 
-#include <config.h>
+#include "config.h"
 #include "system.h"
 
 #include <assert.h>
index 58dd7223fac151cb4a3ce198c89043c6992d7a93..1b9db4ec2f6f999a9ec08f67d6ee4cf9692e687c 100644 (file)
@@ -1002,7 +1002,7 @@ DEFUN(jcf_figure_file_type, (jcf),
       && !open_in_zip (jcf, input_filename, NULL, 0))
     {
       localToFile = ALLOC (sizeof (struct ZipFileCache));
-      bcopy (SeenZipFiles, localToFile, sizeof (struct ZipFileCache));
+      bcopy ((PTR) SeenZipFiles, (PTR) localToFile, sizeof (struct ZipFileCache));
       process_zip_dir ();      /* Register all the class defined there */
       return JCF_ZIP;
     }
index bdd951506f47ce164ad92cf07e9713a954fbe6c8..67dd02e2fffa1859e217d25abe6b100d0c4fe65f 100644 (file)
@@ -23,7 +23,7 @@ The Free Software Foundation is independent of Sun Microsystems, Inc.  */
 
 /* Written by Tom Tromey <tromey@cygnus.com>, October 1998.  */
 
-#include <config.h>
+#include "config.h"
 #include "system.h"
 
 #include "jcf.h"
index dae7ce7ead54f6680252134bf3d5d55ff7496fbe..aca3d88a8ae47cd6899e46febfd50a64a784c074 100644 (file)
@@ -34,20 +34,8 @@ The lexical analysis conforms to the Java grammar described in "The
 Java(TM) Language Specification. J. Gosling, B. Joy, G. Steele.
 Addison Wesley 1996" (http://java.sun.com/docs/books/jls/html/3.doc.html)  */
 
-#include <stdio.h>
-#include <string.h>
-#include <strings.h>
-
-#ifdef JAVA_LEX_DEBUG
-#include <ctype.h>
-#endif
-
 #include "keyword.h"
 
-#ifndef SEEK_SET
-#include <unistd.h>
-#endif
-
 #ifndef JC1_LITE
 extern struct obstack *expression_obstack;
 #endif
@@ -110,8 +98,8 @@ java_init_lex ()
   ctxp->static_initialized = ctxp->non_static_initialized = 
     ctxp->incomplete_class = NULL_TREE;
   
-  bzero (ctxp->modifier_ctx, 11*sizeof (ctxp->modifier_ctx[0]));
-  bzero (current_jcf, sizeof (JCF));
+  bzero ((PTR) ctxp->modifier_ctx, 11*sizeof (ctxp->modifier_ctx[0]));
+  bzero ((PTR) current_jcf, sizeof (JCF));
   ctxp->current_parsed_class = NULL;
   ctxp->package = NULL_TREE;
 #endif
index 654efcfc3fc7bacfbf9981816b4ce50a7a82f5ea..5c036af5b05e2d5ecfa36ac6d8eb1357da340ede 100644 (file)
@@ -2357,7 +2357,7 @@ java_push_parser_context ()
   struct parser_ctxt *new = 
     (struct parser_ctxt *)xmalloc(sizeof (struct parser_ctxt));
 
-  bzero (new, sizeof (struct parser_ctxt));
+  bzero ((PTR) new, sizeof (struct parser_ctxt));
   new->next = ctxp;
   ctxp = new;
 }  
index a8f6df645a921b70f65eb583de989481897820f3..dcebc3a091c93abed3b3ae0b6b265e47a7d07fbe 100644 (file)
@@ -1112,7 +1112,7 @@ java_push_parser_context ()
   struct parser_ctxt *new = 
     (struct parser_ctxt *)xmalloc(sizeof (struct parser_ctxt));
 
-  bzero (new, sizeof (struct parser_ctxt));
+  bzero ((PTR) new, sizeof (struct parser_ctxt));
   new->next = ctxp;
   ctxp = new;
 }  
index 5a9e85670b3c206612f6c33f2ee82f8f3787eb23..c402f12a7c51ba1db536984ab9373d19ca695590 100644 (file)
@@ -4892,7 +4892,7 @@ java_push_parser_context ()
   struct parser_ctxt *new = 
     (struct parser_ctxt *)xmalloc(sizeof (struct parser_ctxt));
 
-  bzero (new, sizeof (struct parser_ctxt));
+  bzero ((PTR) new, sizeof (struct parser_ctxt));
   new->next = ctxp;
   ctxp = new;
   if (ctxp->next)
index 2afbddee3ad60b648d061355017a7d798fc2a9fe..72eccbffaf39f8de92f622fa469dbb105609f249 100644 (file)
@@ -2291,7 +2291,7 @@ java_push_parser_context ()
   struct parser_ctxt *new = 
     (struct parser_ctxt *)xmalloc(sizeof (struct parser_ctxt));
 
-  bzero (new, sizeof (struct parser_ctxt));
+  bzero ((PTR) new, sizeof (struct parser_ctxt));
   new->next = ctxp;
   ctxp = new;
   if (ctxp->next)
index 906dfedbc584c260d614af418d33d0cbfc9de523..6f570d7f42b8ff6a4d4f154100001aed61ca1c95 100644 (file)
@@ -24,7 +24,6 @@ Java and all Java-based marks are trademarks or registered trademarks
 of Sun Microsystems, Inc. in the United States and other countries.
 The Free Software Foundation is independent of Sun Microsystems, Inc.  */
 
-#include <stdio.h>
 #include "config.h"
 #include "system.h"
 #include "tree.h"