Commit 4504ead1 by Kaveh R. Ghazi Committed by Kaveh Ghazi

class.c (add_method_1): Cast the argument of `bzero' to PTR.

        * 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
parent 908c4e83
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> Mon Apr 5 11:24:19 1999 Alexandre Petit-Bianco <apbianco@cygnus.com>
* parse.y (struct parser_ctxt *ctxp): Now global. * parse.y (struct parser_ctxt *ctxp): Now global.
......
...@@ -417,7 +417,7 @@ add_method_1 (handle_class, access_flags, name, function_type) ...@@ -417,7 +417,7 @@ add_method_1 (handle_class, access_flags, name, function_type)
DECL_LANG_SPECIFIC (fndecl) DECL_LANG_SPECIFIC (fndecl)
= (struct lang_decl *) permalloc (sizeof (struct lang_decl)); = (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); TREE_CHAIN (fndecl) = TYPE_METHODS (handle_class);
TYPE_METHODS (handle_class) = fndecl; TYPE_METHODS (handle_class) = fndecl;
......
...@@ -1373,7 +1373,7 @@ copy_lang_decl (node) ...@@ -1373,7 +1373,7 @@ copy_lang_decl (node)
= TREE_CODE (node) == VAR_DECL ? sizeof (struct lang_decl_var) = TREE_CODE (node) == VAR_DECL ? sizeof (struct lang_decl_var)
: sizeof (struct lang_decl); : sizeof (struct lang_decl);
struct lang_decl *x = (struct lang_decl *) oballoc (lang_decl_size); 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; DECL_LANG_SPECIFIC (node) = x;
} }
......
...@@ -23,7 +23,7 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */ ...@@ -23,7 +23,7 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
/* Written by Tom Tromey <tromey@cygnus.com>, October 1998. */ /* Written by Tom Tromey <tromey@cygnus.com>, October 1998. */
#include <config.h> #include "config.h"
#include "system.h" #include "system.h"
#include <assert.h> #include <assert.h>
......
...@@ -1002,7 +1002,7 @@ DEFUN(jcf_figure_file_type, (jcf), ...@@ -1002,7 +1002,7 @@ DEFUN(jcf_figure_file_type, (jcf),
&& !open_in_zip (jcf, input_filename, NULL, 0)) && !open_in_zip (jcf, input_filename, NULL, 0))
{ {
localToFile = ALLOC (sizeof (struct ZipFileCache)); 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 */ process_zip_dir (); /* Register all the class defined there */
return JCF_ZIP; return JCF_ZIP;
} }
......
...@@ -23,7 +23,7 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */ ...@@ -23,7 +23,7 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
/* Written by Tom Tromey <tromey@cygnus.com>, October 1998. */ /* Written by Tom Tromey <tromey@cygnus.com>, October 1998. */
#include <config.h> #include "config.h"
#include "system.h" #include "system.h"
#include "jcf.h" #include "jcf.h"
......
...@@ -34,20 +34,8 @@ The lexical analysis conforms to the Java grammar described in "The ...@@ -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. Java(TM) Language Specification. J. Gosling, B. Joy, G. Steele.
Addison Wesley 1996" (http://java.sun.com/docs/books/jls/html/3.doc.html) */ 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" #include "keyword.h"
#ifndef SEEK_SET
#include <unistd.h>
#endif
#ifndef JC1_LITE #ifndef JC1_LITE
extern struct obstack *expression_obstack; extern struct obstack *expression_obstack;
#endif #endif
...@@ -110,8 +98,8 @@ java_init_lex () ...@@ -110,8 +98,8 @@ java_init_lex ()
ctxp->static_initialized = ctxp->non_static_initialized = ctxp->static_initialized = ctxp->non_static_initialized =
ctxp->incomplete_class = NULL_TREE; ctxp->incomplete_class = NULL_TREE;
bzero (ctxp->modifier_ctx, 11*sizeof (ctxp->modifier_ctx[0])); bzero ((PTR) ctxp->modifier_ctx, 11*sizeof (ctxp->modifier_ctx[0]));
bzero (current_jcf, sizeof (JCF)); bzero ((PTR) current_jcf, sizeof (JCF));
ctxp->current_parsed_class = NULL; ctxp->current_parsed_class = NULL;
ctxp->package = NULL_TREE; ctxp->package = NULL_TREE;
#endif #endif
......
...@@ -2357,7 +2357,7 @@ java_push_parser_context () ...@@ -2357,7 +2357,7 @@ java_push_parser_context ()
struct parser_ctxt *new = struct parser_ctxt *new =
(struct parser_ctxt *)xmalloc(sizeof (struct parser_ctxt)); (struct parser_ctxt *)xmalloc(sizeof (struct parser_ctxt));
bzero (new, sizeof (struct parser_ctxt)); bzero ((PTR) new, sizeof (struct parser_ctxt));
new->next = ctxp; new->next = ctxp;
ctxp = new; ctxp = new;
} }
......
...@@ -1112,7 +1112,7 @@ java_push_parser_context () ...@@ -1112,7 +1112,7 @@ java_push_parser_context ()
struct parser_ctxt *new = struct parser_ctxt *new =
(struct parser_ctxt *)xmalloc(sizeof (struct parser_ctxt)); (struct parser_ctxt *)xmalloc(sizeof (struct parser_ctxt));
bzero (new, sizeof (struct parser_ctxt)); bzero ((PTR) new, sizeof (struct parser_ctxt));
new->next = ctxp; new->next = ctxp;
ctxp = new; ctxp = new;
} }
......
...@@ -4892,7 +4892,7 @@ java_push_parser_context () ...@@ -4892,7 +4892,7 @@ java_push_parser_context ()
struct parser_ctxt *new = struct parser_ctxt *new =
(struct parser_ctxt *)xmalloc(sizeof (struct parser_ctxt)); (struct parser_ctxt *)xmalloc(sizeof (struct parser_ctxt));
bzero (new, sizeof (struct parser_ctxt)); bzero ((PTR) new, sizeof (struct parser_ctxt));
new->next = ctxp; new->next = ctxp;
ctxp = new; ctxp = new;
if (ctxp->next) if (ctxp->next)
......
...@@ -2291,7 +2291,7 @@ java_push_parser_context () ...@@ -2291,7 +2291,7 @@ java_push_parser_context ()
struct parser_ctxt *new = struct parser_ctxt *new =
(struct parser_ctxt *)xmalloc(sizeof (struct parser_ctxt)); (struct parser_ctxt *)xmalloc(sizeof (struct parser_ctxt));
bzero (new, sizeof (struct parser_ctxt)); bzero ((PTR) new, sizeof (struct parser_ctxt));
new->next = ctxp; new->next = ctxp;
ctxp = new; ctxp = new;
if (ctxp->next) if (ctxp->next)
......
...@@ -24,7 +24,6 @@ Java and all Java-based marks are trademarks or registered trademarks ...@@ -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. 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. */
#include <stdio.h>
#include "config.h" #include "config.h"
#include "system.h" #include "system.h"
#include "tree.h" #include "tree.h"
......
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