aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/lex.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1999-04-05 13:04:38 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1999-04-05 13:04:38 +0000
commit4504ead1db50e758e107f9b3a42975afbe1e8106 (patch)
tree02f0a041c4f9169cbd8607135939b4e843e232ba /gcc/java/lex.c
parent908c4e83161c7166e0d86864b88d29115b003c5a (diff)
downloadgcc-4504ead1db50e758e107f9b3a42975afbe1e8106.zip
gcc-4504ead1db50e758e107f9b3a42975afbe1e8106.tar.gz
gcc-4504ead1db50e758e107f9b3a42975afbe1e8106.tar.bz2
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
Diffstat (limited to 'gcc/java/lex.c')
-rw-r--r--gcc/java/lex.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/gcc/java/lex.c b/gcc/java/lex.c
index dae7ce7..aca3d88 100644
--- a/gcc/java/lex.c
+++ b/gcc/java/lex.c
@@ -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