mirror of
https://github.com/python/cpython.git
synced 2026-01-04 14:32:21 +00:00
gh-107211: No longer export internal functions (7) (#108425)
No longer export _PyUnicode_FromId() internal C API function. Change comment style to "// comment" and add comment explaining why other functions have to be exported. Update Tools/build/generate_token.py to update Include/internal/pycore_token.h comments.
This commit is contained in:
parent
52c6a6e48a
commit
f1ae706ca5
10 changed files with 69 additions and 46 deletions
|
|
@ -8,17 +8,17 @@ extern "C" {
|
|||
# error "this header requires Py_BUILD_CORE define"
|
||||
#endif
|
||||
|
||||
// Export for 'pickle' shared extension
|
||||
// Export for '_pickle' shared extension
|
||||
PyAPI_FUNC(int) _PySet_NextEntry(
|
||||
PyObject *set,
|
||||
Py_ssize_t *pos,
|
||||
PyObject **key,
|
||||
Py_hash_t *hash);
|
||||
|
||||
// Export for 'pickle' shared extension
|
||||
// Export for '_pickle' shared extension
|
||||
PyAPI_FUNC(int) _PySet_Update(PyObject *set, PyObject *iterable);
|
||||
|
||||
// Export _PySet_Dummy for the gdb plugin's benefit
|
||||
// Export for the gdb plugin's (python-gdb.py) benefit
|
||||
PyAPI_DATA(PyObject *) _PySet_Dummy;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue