消息 [190534]
"""
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. |
|
| 日期 |
用户 |
动作 |
参数 |
| 2013-06-03 10:25:02 | vstinner | 修改 | 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 | 修改 | messageid: <1370255102.96.0.643435881551.issue3329@psf.upfronthosting.co.za> |
| 2013-06-03 10:25:02 | vstinner | 链接 | issue3329 messages |
| 2013-06-03 10:25:02 | vstinner | 创建 | |
|