Commit 52112c7c by Richard Kenner

Add declarations of xmalloc and xrealloc.

(cpp_parse_expr): Cast args to bcopy to char *.

From-SVN: r9350
parent 800f087e
...@@ -26,6 +26,9 @@ Written by Per Bothner 1994. */ ...@@ -26,6 +26,9 @@ Written by Per Bothner 1994. */
#include "config.h" #include "config.h"
#include "cpplib.h" #include "cpplib.h"
extern char *xmalloc PARAMS ((unsigned));
extern char *xrealloc PARAMS ((char *, unsigned));
#ifdef MULTIBYTE_CHARS #ifdef MULTIBYTE_CHARS
#include <stdlib.h> #include <stdlib.h>
#include <locale.h> #include <locale.h>
...@@ -981,7 +984,7 @@ cpp_parse_expr (pfile) ...@@ -981,7 +984,7 @@ cpp_parse_expr (pfile)
else else
{ {
new_stack = (struct operation*) xmalloc (new_size); new_stack = (struct operation*) xmalloc (new_size);
bcopy (stack, new_stack, old_size); bcopy ((char *) stack, (char *) new_stack, old_size);
} }
stack = new_stack; stack = new_stack;
top = (struct operation*)((char*) new_stack + old_size); top = (struct operation*)((char*) new_stack + old_size);
......
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