Message190534
"""
I'm happy with the api you provide, with a small addition:
PyAPI_FUNC(int) Py_SetAllocators(
char api,
void* (*malloc) (size_t size, void *data),
void* (*realloc) (void* ptr, size_t size, void *data),
void (*free) (void* ptr, void *data),
void *data
);
"""
Oops, I forgot "void *data". Yeah, each group of allocator functions (malloc, free and realloc) will get its own "data" pointer. |
|
Date |
User |
Action |
Args |
2013-06-03 10:25:02 | vstinner | set | recipients:
+ vstinner, barry, rhettinger, gregory.p.smith, amaury.forgeotdarc, ncoghlan, Rhamphoryncus, pitrou, kristjan.jonsson, jszakmeister, tlesher, jlaurila, neilo, pjmcnerney |
2013-06-03 10:25:02 | vstinner | set | messageid: <1370255102.96.0.643435881551.issue3329@psf.upfronthosting.co.za> |
2013-06-03 10:25:02 | vstinner | link | issue3329 messages |
2013-06-03 10:25:02 | vstinner | create | |
|