summaryrefslogtreecommitdiffstats
path: root/gcc/cppfiles.c
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2002-04-21 18:46:42 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2002-04-21 18:46:42 +0000
commitb6d18b0a8cdc63b7c3ad9e79b08ad01d7cb4294d (patch)
tree3ea24655d8eabfdaf624b6cb32ed7b761c98617f /gcc/cppfiles.c
parent7e2fc40e1287c0eb718f1f0f5921ead11593a829 (diff)
downloadppe42-gcc-b6d18b0a8cdc63b7c3ad9e79b08ad01d7cb4294d.tar.gz
ppe42-gcc-b6d18b0a8cdc63b7c3ad9e79b08ad01d7cb4294d.zip
* cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
* cppfiles.c (read_include_file): Similarly. * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen, uxstrdup ustrchr, ufputs): Similarly. * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly. * cpplex.c (parse_slow, unescaped_terminator_p, save_comment, cpp_ideq, parse_identifier, parse_number): Similarly. * cpplib.c (struct directive, dequote_string, D, run_directive, cpp_push_buffer): Similarly. * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string, _cpp_create_definition, check_trad_stringification, cpp_macro_definition): Similarly. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@52587 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cppfiles.c')
-rw-r--r--gcc/cppfiles.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/cppfiles.c b/gcc/cppfiles.c
index c1e6bfc6c17..38780ad24a1 100644
--- a/gcc/cppfiles.c
+++ b/gcc/cppfiles.c
@@ -375,7 +375,7 @@ read_include_file (pfile, inc)
struct include_file *inc;
{
ssize_t size, offset, count;
- U_CHAR *buf;
+ uchar *buf;
#if MMAP_THRESHOLD
static int pagesize = -1;
#endif
@@ -404,15 +404,15 @@ read_include_file (pfile, inc)
if (SHOULD_MMAP (size, pagesize))
{
- buf = (U_CHAR *) mmap (0, size, PROT_READ, MAP_PRIVATE, inc->fd, 0);
- if (buf == (U_CHAR *)-1)
+ buf = (uchar *) mmap (0, size, PROT_READ, MAP_PRIVATE, inc->fd, 0);
+ if (buf == (uchar *)-1)
goto perror_fail;
inc->mapped = 1;
}
else
#endif
{
- buf = (U_CHAR *) xmalloc (size + 1);
+ buf = (uchar *) xmalloc (size + 1);
offset = 0;
while (offset < size)
{
@@ -447,7 +447,7 @@ read_include_file (pfile, inc)
bigger than the majority of C source files. */
size = 8 * 1024;
- buf = (U_CHAR *) xmalloc (size + 1);
+ buf = (uchar *) xmalloc (size + 1);
offset = 0;
while ((count = read (inc->fd, buf + offset, size - offset)) > 0)
{
OpenPOWER on IntegriCloud