[Patches] PyMem [2/8] - Include/mymalloc.h
Vladimir Marangozov
Vladimir.Marangozov@inrialpes.fr
Thu, 4 May 2000 19:00:56 +0200 (CEST)
Guido van Rossum wrote:
>
> Shall I just paste these into the comments in mymalloc.h?
Why not. Perhaps with small stylistic changes to the text (without 'we')
and by replacing the definition in Scenario B with
#define PyCore_MALLOC_FUNC (*malloc_hook)
...
#define NEED_TO_DECLARE_MALLOC_AND_FRIEND
This would declare the hook vars as extern and would make
PyCore_MALLOC(n) = (*malloc_hook)(n) in one shot
(I've tested this and it works well).
--
Vladimir MARANGOZOV | Vladimir.Marangozov@inrialpes.fr
http://sirac.inrialpes.fr/~marangoz | tel:(+33-4)76615277 fax:76615252