diff options
author | Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> | 2022-02-26 16:35:03 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-26 16:35:03 (GMT) |
commit | 0d9b565e62a5fc8c3e9b8c64cce764fe084ccb2b (patch) | |
tree | 240f3538d78b4f390b97fc1e0a2c1e17102f0d49 /Include/internal | |
parent | edbee56d698ebb4489aa68311f44d104a23f5eb7 (diff) | |
download | cpython-0d9b565e62a5fc8c3e9b8c64cce764fe084ccb2b.zip cpython-0d9b565e62a5fc8c3e9b8c64cce764fe084ccb2b.tar.gz cpython-0d9b565e62a5fc8c3e9b8c64cce764fe084ccb2b.tar.bz2 |
Propagate errors (however unlikely) from _Py_Deepfreeze_Init() (GH-31596)
Diffstat (limited to 'Include/internal')
-rw-r--r-- | Include/internal/pycore_code.h | 2 | ||||
-rw-r--r-- | Include/internal/pycore_pylifecycle.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Include/internal/pycore_code.h b/Include/internal/pycore_code.h index d83df5e..0c4850f 100644 --- a/Include/internal/pycore_code.h +++ b/Include/internal/pycore_code.h @@ -317,7 +317,7 @@ extern void _Py_Specialize_UnpackSequence(PyObject *seq, _Py_CODEUNIT *instr, /* Deallocator function for static codeobjects used in deepfreeze.py */ extern void _PyStaticCode_Dealloc(PyCodeObject *co); /* Function to intern strings of codeobjects */ -extern void _PyStaticCode_InternStrings(PyCodeObject *co); +extern int _PyStaticCode_InternStrings(PyCodeObject *co); #ifdef Py_STATS diff --git a/Include/internal/pycore_pylifecycle.h b/Include/internal/pycore_pylifecycle.h index 00d13b8..295505f 100644 --- a/Include/internal/pycore_pylifecycle.h +++ b/Include/internal/pycore_pylifecycle.h @@ -65,7 +65,7 @@ extern PyStatus _Py_HashRandomization_Init(const PyConfig *); extern PyStatus _PyImportZip_Init(PyThreadState *tstate); extern PyStatus _PyGC_Init(PyInterpreterState *interp); extern PyStatus _PyAtExit_Init(PyInterpreterState *interp); -extern void _Py_Deepfreeze_Init(void); +extern int _Py_Deepfreeze_Init(void); /* Various internal finalizers */ |