diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 1999-03-06 08:35:49 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 1999-03-06 08:35:49 +0000 |
commit | 8e1f2d4c56e3d43c878a6ffe5e5c4aa6409fa035 (patch) | |
tree | 486a4183689a6c011bf01289c6a0096cfcea6c5e /gcc/java/lex.c | |
parent | 158281d7a3e7b17ce77b9b4a64db4e6a400b66e0 (diff) | |
download | gcc-8e1f2d4c56e3d43c878a6ffe5e5c4aa6409fa035.zip gcc-8e1f2d4c56e3d43c878a6ffe5e5c4aa6409fa035.tar.gz gcc-8e1f2d4c56e3d43c878a6ffe5e5c4aa6409fa035.tar.bz2 |
Makefile.in (jcf-parse.o): Depend on $(PARSE_H).
* Makefile.in (jcf-parse.o): Depend on $(PARSE_H).
(parse-scan.o): Depend on toplev.h.
* class.c (make_method_value): Add prototype. Make it static.
Remove unused second argument, caller changed.
* expr.c (java_lang_expand_expr): Remove unused variable
`return_label'.
* java-tree.h: Don't prototype find_in_current_zip.
Add prototypes for verify_constant_pool, start_java_method,
end_java_method, give_name_to_locals, expand_byte_code,
open_in_zip, set_constant_value, find_constant1, find_constant2,
find_utf8_constant, find_string_constant, find_class_constant,
find_fieldref_index, find_methodref_index, write_constant_pool,
count_constant_pool_bytes and encode_newarray_type.
* jcf-dump.c: Remove unused variable `LONG_temp'.
* jcf-parse.c: Include parse.h.
(jcf_parse_source): Remove unused parameter, all callers changed.
(jcf_figure_file_type): Add static prototype.
(find_in_current_zip): Likewise. Also remove unused parameter,
all callers changed.
(read_class): Initialize variable `saved_pos'.
* jcf-reader.c (jcf_parse_preamble): Mark variables
`minor_version' and `major_version' with ATTRIBUTE_UNUSED.
* lex.c (java_is_eol): Wrap prototype and definition in !JC1_LITE.
(java_init_lex): Wrap variable `java_lang_imported' in !JC1_LITE.
(java_parse_doc_section): Initialize variable `seen_star'.
(java_lex): Wrap variable `number_beginning' in !JC1_LITE.
(java_lex_error): Mark parameters `msg' and `forward' with
ATTRIBUTE_UNUSED.
(java_get_line_col): Mark parameters `filename' and `line' with
ATTRIBUTE_UNUSED.
* parse-scan.y: Include toplev.h.
(yyerror): Mark parameter `msg' with ATTRIBUTE_UNUSED.
* parse.h: use `struct JCF', not plain `JCF'.
(java_parser_context_save_global, java_expand_classes
java_parser_context_restore_global, java_parse): Add prototypes.
* typeck.c (convert_ieee_real_to_integer): Remove unused variable
`node'.
From-SVN: r25616
Diffstat (limited to 'gcc/java/lex.c')
-rw-r--r-- | gcc/java/lex.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/gcc/java/lex.c b/gcc/java/lex.c index 98606cc..be5c849 100644 --- a/gcc/java/lex.c +++ b/gcc/java/lex.c @@ -57,7 +57,9 @@ static int java_lineterminator PROTO ((unicode_t)); static char *java_sprint_unicode PROTO ((struct java_line *, int)); static void java_unicode_2_utf8 PROTO ((unicode_t)); static void java_lex_error PROTO ((char *, int)); +#ifndef JC1_LITE static int java_is_eol PROTO ((FILE *, int)); +#endif static void java_store_unicode PROTO ((struct java_line *, unicode_t, int)); static unicode_t java_parse_escape_sequence PROTO (()); static int java_letter_or_digit_p PROTO ((unicode_t)); @@ -74,9 +76,9 @@ static unicode_t java_sneak_unicode PROTO (()); void java_init_lex () { +#ifndef JC1_LITE int java_lang_imported = 0; -#ifndef JC1_LITE if (!java_lang_id) java_lang_id = get_identifier ("java.lang"); if (!java_lang_cloneable) @@ -398,7 +400,7 @@ static int java_parse_doc_section (c) unicode_t c; { - int valid_tag = 0, seen_star; + int valid_tag = 0, seen_star = 0; while (JAVA_WHITE_SPACE_P (c) || (c == '*') || c == '\n') { @@ -604,7 +606,9 @@ java_lex (java_lval) char literal_token [256]; int literal_index = 0, radix = 10, long_suffix = 0, overflow = 0, bytes; int i; +#ifndef JC1_LITE int number_beginning = ctxp->c_line->current; +#endif /* We might have a . separator instead of a FP like .[0-9]* */ if (c == '.') @@ -1291,8 +1295,8 @@ build_wfl_node (node) static void java_lex_error (msg, forward) - char *msg; - int forward; + char *msg ATTRIBUTE_UNUSED; + int forward ATTRIBUTE_UNUSED; { #ifndef JC1_LITE ctxp->elc.line = ctxp->c_line->lineno; @@ -1305,6 +1309,7 @@ java_lex_error (msg, forward) #endif } +#ifndef JC1_LITE static int java_is_eol (fp, c) FILE *fp; @@ -1324,11 +1329,12 @@ java_is_eol (fp, c) return 0; } } +#endif char * java_get_line_col (filename, line, col) - char *filename; - int line, col; + char *filename ATTRIBUTE_UNUSED; + int line ATTRIBUTE_UNUSED, col ATTRIBUTE_UNUSED; { #ifdef JC1_LITE return 0; |