]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove more remnants of deepfreeze (#118159)
authorGuido van Rossum <guido@python.org>
Mon, 22 Apr 2024 19:17:57 +0000 (12:17 -0700)
committerGitHub <noreply@github.com>
Mon, 22 Apr 2024 19:17:57 +0000 (12:17 -0700)
Include/incl.tar [new file with mode: 0644]
Include/internal/pycore_code.h
Include/internal/pycore_pylifecycle.h
Programs/_bootstrap_python.c
Programs/_freeze_module.c

diff --git a/Include/incl.tar b/Include/incl.tar
new file mode 100644 (file)
index 0000000..fecc1fb
Binary files /dev/null and b/Include/incl.tar differ
index 1ec0348d6e5e8ba39c6143ac8bd16b6d0ff3c0db..8d832c59e36874c9942eb09a9448667e06d40fac 100644 (file)
@@ -288,11 +288,6 @@ extern void _Py_Specialize_Send(PyObject *receiver, _Py_CODEUNIT *instr);
 extern void _Py_Specialize_ToBool(PyObject *value, _Py_CODEUNIT *instr);
 extern void _Py_Specialize_ContainsOp(PyObject *value, _Py_CODEUNIT *instr);
 
-/* Finalizer function for static codeobjects used in deepfreeze.py */
-extern void _PyStaticCode_Fini(PyCodeObject *co);
-/* Function to intern strings of codeobjects and quicken the bytecode */
-extern int _PyStaticCode_Init(PyCodeObject *co);
-
 #ifdef Py_STATS
 
 #include "pycore_bitutils.h"  // _Py_bit_length
index 47ff0806574ac023571b4025a3e0c2caab470c7d..f426ae0e103b9c991229c1e1cc2c9c55ad12b715 100644 (file)
@@ -42,7 +42,6 @@ extern PyStatus _Py_HashRandomization_Init(const PyConfig *);
 
 extern PyStatus _PyGC_Init(PyInterpreterState *interp);
 extern PyStatus _PyAtExit_Init(PyInterpreterState *interp);
-extern int _Py_Deepfreeze_Init(void);
 
 /* Various internal finalizers */
 
@@ -58,7 +57,6 @@ extern void _PyWarnings_Fini(PyInterpreterState *interp);
 extern void _PyAST_Fini(PyInterpreterState *interp);
 extern void _PyAtExit_Fini(PyInterpreterState *interp);
 extern void _PyThread_FiniType(PyInterpreterState *interp);
-extern void _Py_Deepfreeze_Fini(void);
 extern void _PyArg_Fini(void);
 extern void _Py_FinalizeAllocatedBlocks(_PyRuntimeState *);
 
index 34f79191b4e8d7706c4c1502aa090fb6273df5bb..6443d814a22dabf42243cf6d3f3dd4a81832782e 100644 (file)
 #include "Python/frozen_modules/zipimport.h"
 /* End includes */
 
-/* Empty initializer for deepfrozen modules */
-int _Py_Deepfreeze_Init(void)
-{
-    return 0;
-}
-/* Empty finalizer for deepfrozen modules */
-void
-_Py_Deepfreeze_Fini(void)
-{
-}
-
 /* Note that a negative size indicates a package. */
 
 static const struct _frozen bootstrap_modules[] = {
index 3de6c6816c1e614fd49dc5a21e85fd9760651d2d..2a462a42cdad7c7eabffde8f2c6c0594515e2f4f 100644 (file)
 #  include <unistd.h>
 #endif
 
-/* Empty initializer for deepfrozen modules */
-int _Py_Deepfreeze_Init(void)
-{
-    return 0;
-}
-/* Empty finalizer for deepfrozen modules */
-void
-_Py_Deepfreeze_Fini(void)
-{
-}
-
 /* To avoid a circular dependency on frozen.o, we create our own structure
    of frozen modules instead, left deliberately blank so as to avoid
    unintentional import of a stale version of _frozen_importlib. */