From: Richard Kenner Date: Thu, 27 Apr 1995 15:43:23 +0000 (-0400) Subject: Don't include twice. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0e45ccbdb6f1cc9770162580703c862337f8e232;p=platform%2Fupstream%2Fgcc.git 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 --- diff --git a/gcc/cpplib.c b/gcc/cpplib.c index a05a0c0..19ec3f7 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;