diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-09-16 15:45:15 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-09-16 15:45:15 +0000 |
commit | 1ab1061d6dd4e8679dc1cb8415d4b3c403872f9d (patch) | |
tree | 16053d5d21a42fd79947636788b0a774368e0381 /gcc/java/lex.c | |
parent | 06b02ef08ba7c8548185277739212ccd3bb55a72 (diff) | |
download | gcc-1ab1061d6dd4e8679dc1cb8415d4b3c403872f9d.tar.gz |
* gjavah.c (get_field_name, print_method_info, print_include,
add_namelet): Use xmalloc, not malloc.
* jcf-depend.c (add_entry): Likewise. Use xstrdup, not strdup.
(munge): Use xrealloc, not realloc, trust xrealloc to handle a
NULL pointer.
* jcf-io.c (open_in_zip, find_class): Use xstrdup, not strdup.
* jcf-parse.c (jcf_out_of_synch, yyparse): Likewise.
* jcf-path.c (add_entry): Likewise.
* jcf.h (ALLOC, REALLOC): Use xmalloc/xrealloc, not malloc/realloc.
* jv-scan.c (xmalloc): Remove definition.
* jvgenmain.c (xmalloc): Likewise.
* jvspec.c (lang_specific_driver): Use xcalloc, not xmalloc/bzero.
* lex.c (java_store_unicode): Use xrealloc, not realloc.
* parse-scan.y: Use concat, not of xmalloc/assign/strcpy. Use
concat, not xmalloc/sprintf.
(java_push_parser_context): Use xcalloc, not xmalloc/bzero.
(xstrdup): Remove definition.
* parse.y (duplicate_declaration_error_p,
constructor_circularity_msg, verify_constructor_circularity,
check_abstract_method_definitions, java_check_regular_methods,
java_check_abstract_methods, patch_method_invocation,
check_for_static_method_reference, patch_assignment, patch_binop,
patch_cast, array_constructor_check_entry, patch_return,
patch_conditional_expr): Use xstrdup, not strdup.
* zextract.c (ALLOC): Use xmalloc, not malloc.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29457 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/lex.c')
-rw-r--r-- | gcc/java/lex.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/java/lex.c b/gcc/java/lex.c index ebb1f0b02b8..814c8969429 100644 --- a/gcc/java/lex.c +++ b/gcc/java/lex.c @@ -252,9 +252,9 @@ java_store_unicode (l, c, unicode_escape_p) if (l->size == l->max) { l->max += JAVA_LINE_MAX; - l->line = (unicode_t *)realloc (l->line, sizeof (unicode_t)*l->max); - l->unicode_escape_p = (char *)realloc (l->unicode_escape_p, - sizeof (char)*l->max); + l->line = (unicode_t *) xrealloc (l->line, sizeof (unicode_t)*l->max); + l->unicode_escape_p = (char *) xrealloc (l->unicode_escape_p, + sizeof (char)*l->max); } l->line [l->size] = c; l->unicode_escape_p [l->size++] = unicode_escape_p; |