diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2018-05-22 17:59:42 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-22 17:59:42 (GMT) |
commit | 4e29f566e8821c09d8274eadcdd355e8b1284b8b (patch) | |
tree | bb5d17d6b0bce38c722017a42ff1a18afcce53f7 /Include/intrcheck.h | |
parent | b2f5f59ae15564b991f3ca4850e6ad28d9faacbc (diff) | |
download | cpython-4e29f566e8821c09d8274eadcdd355e8b1284b8b.zip cpython-4e29f566e8821c09d8274eadcdd355e8b1284b8b.tar.gz cpython-4e29f566e8821c09d8274eadcdd355e8b1284b8b.tar.bz2 |
Add missed details of the C API introduced in 3.7. (GH-7047)
* Set the limited API version for PyImport_GetModule and PyOS_*Fork
functions.
* Add PyImport_GetModule and Py_UTF8Mode in PC/python3.def.
* Add several functions in Doc/data/refcounts.dat.
Diffstat (limited to 'Include/intrcheck.h')
-rw-r--r-- | Include/intrcheck.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/intrcheck.h b/Include/intrcheck.h index 944968b..2e17336 100644 --- a/Include/intrcheck.h +++ b/Include/intrcheck.h @@ -8,10 +8,12 @@ extern "C" { PyAPI_FUNC(int) PyOS_InterruptOccurred(void); PyAPI_FUNC(void) PyOS_InitInterrupts(void); #ifdef HAVE_FORK +#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03070000 PyAPI_FUNC(void) PyOS_BeforeFork(void); PyAPI_FUNC(void) PyOS_AfterFork_Parent(void); PyAPI_FUNC(void) PyOS_AfterFork_Child(void); #endif +#endif /* Deprecated, please use PyOS_AfterFork_Child() instead */ PyAPI_FUNC(void) PyOS_AfterFork(void) Py_DEPRECATED(3.7); |