diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1995-04-27 11:43:23 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1995-04-27 11:43:23 -0400 |
commit | 0e45ccbdb6f1cc9770162580703c862337f8e232 (patch) | |
tree | 4576f76b95432c5fe9377e6921c6e12244f9541e /gcc/cpplib.c | |
parent | 097d85a82b0411624aafa56656c8e5764954638e (diff) | |
download | gcc-0e45ccbdb6f1cc9770162580703c862337f8e232.tar.gz |
Don't include <sys/stat.h> twice.
(cpp_grow_buffer, init_parse_file): Cast {xmalloc,xrealloc} for token_buffer
to U_CHAR* instead of char*.
From-SVN: r9507
Diffstat (limited to 'gcc/cpplib.c')
-rw-r--r-- | gcc/cpplib.c | 6 |
1 files changed, 2 insertions, 4 deletions
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 <sys/types.h> -#include <sys/stat.h> #include <ctype.h> #include <stdio.h> #include <signal.h> @@ -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; |