Commit 0e45ccbd by Richard Kenner

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
parent 097d85a8
...@@ -66,8 +66,6 @@ Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. ...@@ -66,8 +66,6 @@ Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
#define PATH_SEPARATOR ':' #define PATH_SEPARATOR ':'
#endif #endif
#include <sys/types.h>
#include <sys/stat.h>
#include <ctype.h> #include <ctype.h>
#include <stdio.h> #include <stdio.h>
#include <signal.h> #include <signal.h>
...@@ -600,7 +598,7 @@ cpp_grow_buffer (pfile, n) ...@@ -600,7 +598,7 @@ cpp_grow_buffer (pfile, n)
{ {
long old_written = CPP_WRITTEN (pfile); long old_written = CPP_WRITTEN (pfile);
pfile->token_buffer_size = n + 2 * pfile->token_buffer_size; 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); xrealloc(pfile->token_buffer, pfile->token_buffer_size);
CPP_SET_WRITTEN (pfile, old_written); CPP_SET_WRITTEN (pfile, old_written);
} }
...@@ -6246,7 +6244,7 @@ init_parse_file (pfile) ...@@ -6246,7 +6244,7 @@ init_parse_file (pfile)
pfile->get_token = cpp_get_token; pfile->get_token = cpp_get_token;
pfile->token_buffer_size = 200; 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); CPP_SET_WRITTEN (pfile, 0);
pfile->system_include_depth = 0; pfile->system_include_depth = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment