U_CHAR* when assigning to one. Ensure the values of a ?: operator
have the same type.
* cppinit.c (initialize_char_syntax): Use K&R function definition.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@25054
138bc75d-0d04-0410-961f-
82ee72b054a4
+Sat Feb 6 10:18:01 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * cppfiles.c (read_and_prescan): Cast the result of `xrealloc' to
+ U_CHAR* when assigning to one. Ensure the values of a ?: operator
+ have the same type.
+
+ * cppinit.c (initialize_char_syntax): Use K&R function definition.
+
Sat Feb 6 11:17:03 1999 Richard Earnshaw <rearnsha@arm.com>
Support for ARM9
delta_op = op - buf;
delta_line_base = line_base - buf;
- buf = xrealloc (buf, len);
+ buf = (U_CHAR *) xrealloc (buf, len);
op = buf + delta_op;
line_base = buf + delta_line_base;
}
len += 2;
if (offset + 2 > len)
goto too_big;
- buf = xrealloc (buf, len);
+ buf = (U_CHAR *) xrealloc (buf, len);
op = buf + offset;
}
if (op[-1] == '\\')
*op++ = '\n';
}
- fp->buf = (len - offset < 20) ? buf : xrealloc (buf, op - buf);
+ fp->buf =
+ (U_CHAR *) ((len - offset < 20) ? (PTR) buf : xrealloc (buf, op - buf));
return op - buf;
too_big:
/* Initialize syntactic classifications of characters. */
void
-initialize_char_syntax (int dollar_in_ident)
+initialize_char_syntax (dollar_in_ident)
+ int dollar_in_ident;
{
is_idstart['a'] = 1; is_idstart['b'] = 1; is_idstart['c'] = 1;
is_idstart['d'] = 1; is_idstart['e'] = 1; is_idstart['f'] = 1;