Mercurial > cpython-lru_cache-weakref
diff Include/pythonrun.h @ 41253:f29f1a8b7869
Patch #1680961: remove sys.exitfunc and replace it with a private C API. Also, reimplement atexit in C so it can take advantage of this private API.
| author | Collin Winter <collinw@gmail.com> |
|---|---|
| date | Wed, 21 Mar 2007 02:57:17 +0000 |
| parents | 61fee1853ca8 |
| children | 38f3f9ef193d |
line wrap: on
line diff
--- a/Include/pythonrun.h Wed Mar 21 02:14:12 2007 +0000 +++ b/Include/pythonrun.h Wed Mar 21 02:57:17 2007 +0000 @@ -69,6 +69,10 @@ PyAPI_FUNC(void) PyErr_PrintEx(int); PyAPI_FUNC(void) PyErr_Display(PyObject *, PyObject *, PyObject *); +/* Py_PyAtExit is for the atexit module, Py_AtExit is for low-level + * exit functions. + */ +PyAPI_FUNC(void) _Py_PyAtExit(void (*func)(void)); PyAPI_FUNC(int) Py_AtExit(void (*func)(void)); PyAPI_FUNC(void) Py_Exit(int);
