diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1995-04-10 09:22:19 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1995-04-10 09:22:19 -0400 |
commit | 52112c7c0a527d1ae7da235b96fc2afe77d7f880 (patch) | |
tree | bff449003a66c26e3cef3778a9f1a4f8f0fa8a5e /gcc/cppexp.c | |
parent | 800f087e3442509a59463b436548d07ccb101f0a (diff) | |
download | gcc-52112c7c0a527d1ae7da235b96fc2afe77d7f880.zip gcc-52112c7c0a527d1ae7da235b96fc2afe77d7f880.tar.gz gcc-52112c7c0a527d1ae7da235b96fc2afe77d7f880.tar.bz2 |
Add declarations of xmalloc and xrealloc.
(cpp_parse_expr): Cast args to bcopy to char *.
From-SVN: r9350
Diffstat (limited to 'gcc/cppexp.c')
-rw-r--r-- | gcc/cppexp.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/cppexp.c b/gcc/cppexp.c index 80a9269..e35690c 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); |