GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||
GeezerVison is showing github.com — [WIP] bpo-35134: Create Include/pycapi/ subdirectory by vstinner · Pull Request #10285 · python/cpython Conversation
|
| #ifdef __cplusplus | ||
| extern "C" { | ||
| #endif | ||
|
|
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I wanted to add:
#ifdef Py_LIMITED_API
# error "Py_LIMITED_API must not be defined to include this header"
#endif
But this header should be include if Py_LIMITED_API is defined with a value.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
If you don't move PyObject_Calloc (because it's in the stable ABI in 3.5+), then you can add that guard to the unstable ABI header.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| */ | ||
| PyAPI_FUNC(void *) PyObject_Malloc(size_t size); | ||
| #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03050000 | ||
| PyAPI_FUNC(void *) PyObject_Calloc(size_t nelem, size_t elsize); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
It is in the stable API (since version 3.5). It should not be moved.
The same is for other functions, added to the stable API after 3.2.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I abandon this PR: moving PyObject_Calloc() was wrong, and "pycapi" name is too generic: I created a new PR #10624. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.