A patch to perl5.003_02/malloc to give a sensible error abort() message
in ANSI C, and to give it to stderr instead of stdout.
Use config_h's STRINGIFY macro instead of pre-ANSI "p".
#endif
#ifdef DEBUGGING
-#define ASSERT(p) if (!(p)) botch("p"); else
+#define ASSERT(p) if (!(p)) botch(STRINGIFY(p)); else
static void
botch(s)
char *s;
{
-
- printf("assertion botched: %s\n", s);
+ PerlIO_printf(PerlIO_stderr(), "assertion botched: %s\n", s);
abort();
}
#else