]> gcc.gnu.org Git - gcc.git/commitdiff
Add declarations of xmalloc and xrealloc.
authorRichard Kenner <kenner@gcc.gnu.org>
Mon, 10 Apr 1995 13:22:19 +0000 (09:22 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Mon, 10 Apr 1995 13:22:19 +0000 (09:22 -0400)
(cpp_parse_expr): Cast args to bcopy to char *.

From-SVN: r9350

gcc/cppexp.c

index 80a926989da653bef0d8864005ee802a9ceb9641..e35690c41646f9ea30cf6ecd1ef600d326ce7c15 100644 (file)
@@ -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);
This page took 0.062902 seconds and 5 git commands to generate.