mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +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
|
@ -98,16 +98,20 @@ extern int _Py_FdIsInteractive(FILE *fp, PyObject *filename);
|
|||
extern const char* _Py_gitidentifier(void);
|
||||
extern const char* _Py_gitversion(void);
|
||||
|
||||
// Export for '_asyncio' shared extension
|
||||
PyAPI_FUNC(int) _Py_IsInterpreterFinalizing(PyInterpreterState *interp);
|
||||
|
||||
/* Random */
|
||||
extern int _PyOS_URandom(void *buffer, Py_ssize_t size);
|
||||
|
||||
// Export for '_random' shared extension
|
||||
PyAPI_FUNC(int) _PyOS_URandomNonblock(void *buffer, Py_ssize_t size);
|
||||
|
||||
/* Legacy locale support */
|
||||
extern int _Py_CoerceLegacyLocale(int warn);
|
||||
extern int _Py_LegacyLocaleDetected(int warn);
|
||||
|
||||
// Export for 'readline' shared extension
|
||||
PyAPI_FUNC(char*) _Py_SetLocaleFromEnv(int category);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue