diff options
author | Perl 5 Porters <perl5-porters.nicoh.com> | 1996-01-02 23:21:55 +0000 |
---|---|---|
committer | Andy Dougherty <doughera.lafayette.edu> | 1996-01-02 23:21:55 +0000 |
commit | 84ea024ac9cdf20f21223e686dddea82d5eceb4f (patch) | |
tree | 8dc237c68734a16a91d4bcf085b4fb2e03f848ce /perl.h | |
parent | 4550b24a9adfb75d9c081ae699e54700e1a9add2 (diff) | |
download | perl-84ea024ac9cdf20f21223e686dddea82d5eceb4f.tar.gz |
perl 5.002beta1h patch: perl.h
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).
Diffstat (limited to 'perl.h')
-rw-r--r-- | perl.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -9,6 +9,7 @@ #ifndef H_PERL #define H_PERL 1 #define OVERLOAD +#define STRANGE_MALLOC #include "embed.h" @@ -854,6 +855,7 @@ EXT U32 sub_generation; /* inc to force methods to be looked up again */ 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 */ |