summaryrefslogtreecommitdiff
path: root/gcc/cppexp.c
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1995-04-10 13:22:19 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1995-04-10 13:22:19 +0000
commitbd8f41bdf0d7f39f96db79c155e13aebc1d08bee (patch)
treebff449003a66c26e3cef3778a9f1a4f8f0fa8a5e /gcc/cppexp.c
parente6c05c8efc1945f37bafd9797d9e92623692a8af (diff)
downloadgcc-bd8f41bdf0d7f39f96db79c155e13aebc1d08bee.tar.gz
Add declarations of xmalloc and xrealloc.
(cpp_parse_expr): Cast args to bcopy to char *. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9350 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cppexp.c')
-rw-r--r--gcc/cppexp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/cppexp.c b/gcc/cppexp.c
index 80a926989da..e35690c4164 100644
--- a/gcc/cppexp.c
+++ b/gcc/cppexp.c
@@ -26,6 +26,9 @@ Written by Per Bothner 1994. */
#include "config.h"
#include "cpplib.h"
+extern char *xmalloc PARAMS ((unsigned));
+extern char *xrealloc PARAMS ((char *, unsigned));
+
#ifdef MULTIBYTE_CHARS
#include <stdlib.h>
#include <locale.h>
@@ -981,7 +984,7 @@ cpp_parse_expr (pfile)
else
{
new_stack = (struct operation*) xmalloc (new_size);
- bcopy (stack, new_stack, old_size);
+ bcopy ((char *) stack, (char *) new_stack, old_size);
}
stack = new_stack;
top = (struct operation*)((char*) new_stack + old_size);