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
This commit is contained in:
Richard Kenner 1995-04-27 11:43:23 -04:00
parent 097d85a82b
commit 0e45ccbdb6

View File

@ -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;