This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Give a better error if malloc.c is used without MYMALLOC
authorJarkko Hietaniemi <jhi@iki.fi>
Sat, 8 Aug 2015 20:39:25 +0000 (16:39 -0400)
committerJarkko Hietaniemi <jhi@iki.fi>
Mon, 10 Aug 2015 12:35:14 +0000 (08:35 -0400)
commit7029c034081ee56d907a835ba9e4a94c935c7b1b
tree1e9457c268a1afb0856a43e1b5e44e7cb14fab1a
parent6147b0088faa521d6b4bc8bb97279ad46f5365a0
Give a better error if malloc.c is used without MYMALLOC

The build will die already on errors because of the missing ASSERT
macros (plus get warnings on the implicit declarations, i.e. missing
prototypes), but better to give a clear error.

FWIW, looking at hints/*, only HP-UX of the even remotely
common/current systems seems to use Perl's malloc anymore,
and then only if perlio is NOT being used.

(Other platforms that seemingly use Perl's malloc include ancient
SysVs like SCO 2.3.4, NCR Tower, Tektronix' UTek V, then Unicos and
Unicos/mk of Cray, and NEC's SUPER-UX.)  (OS/2 still probably does
use it, given all the work ilyaz used to pour on it.)
malloc.c