5.002beta1 attempted some memory optimizations, but unfortunately
they can result in a memory leak problem. This can be
avoided by #define STRANGE_MALLOC. I do that here until
consensus is reached on a better strategy for handling the
memory optimizations.
Include maxo for the maximum number of operations (needed
for the Safe extension).
#ifndef H_PERL
#define H_PERL 1
#define OVERLOAD
+#define STRANGE_MALLOC
#include "embed.h"
EXT char ** origenviron;
EXT U32 origalen;
EXT U32 * profiledata;
+EXT int maxo INIT(MAXO);/* Number of ops */
EXT XPV* xiv_arenaroot; /* list of allocated xiv areas */
EXT IV ** xiv_root; /* free xiv list--shared by interpreters */