From 0e45ccbdb6f1cc9770162580703c862337f8e232 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Thu, 27 Apr 1995 11:43:23 -0400 Subject: Don't include twice. (cpp_grow_buffer, init_parse_file): Cast {xmalloc,xrealloc} for token_buffer to U_CHAR* instead of char*. From-SVN: r9507 --- gcc/cpplib.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'gcc/cpplib.c') diff --git a/gcc/cpplib.c b/gcc/cpplib.c index a05a0c02ef9..19ec3f7801f 100644 --- a/gcc/cpplib.c +++ b/gcc/cpplib.c @@ -66,8 +66,6 @@ Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. #define PATH_SEPARATOR ':' #endif -#include -#include #include #include #include @@ -600,7 +598,7 @@ cpp_grow_buffer (pfile, n) { long old_written = CPP_WRITTEN (pfile); pfile->token_buffer_size = n + 2 * pfile->token_buffer_size; - pfile->token_buffer = (char*) + pfile->token_buffer = (U_CHAR*) xrealloc(pfile->token_buffer, pfile->token_buffer_size); CPP_SET_WRITTEN (pfile, old_written); } @@ -6246,7 +6244,7 @@ init_parse_file (pfile) pfile->get_token = cpp_get_token; pfile->token_buffer_size = 200; - pfile->token_buffer = (char*)xmalloc (pfile->token_buffer_size); + pfile->token_buffer = (U_CHAR*)xmalloc (pfile->token_buffer_size); CPP_SET_WRITTEN (pfile, 0); pfile->system_include_depth = 0; -- cgit v1.2.1