Remove more remnants of deepfreeze (#118159)

This commit is contained in:
Guido van Rossum 2024-04-22 12:17:57 -07:00 committed by GitHub
parent 8974a63f5e
commit 4c7bfdff90
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 0 additions and 29 deletions

BIN
Include/incl.tar Normal file

Binary file not shown.

View 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_ToBool(PyObject *value, _Py_CODEUNIT *instr);
extern void _Py_Specialize_ContainsOp(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 #ifdef Py_STATS
#include "pycore_bitutils.h" // _Py_bit_length #include "pycore_bitutils.h" // _Py_bit_length

View File

@ -42,7 +42,6 @@ extern PyStatus _Py_HashRandomization_Init(const PyConfig *);
extern PyStatus _PyGC_Init(PyInterpreterState *interp); extern PyStatus _PyGC_Init(PyInterpreterState *interp);
extern PyStatus _PyAtExit_Init(PyInterpreterState *interp); extern PyStatus _PyAtExit_Init(PyInterpreterState *interp);
extern int _Py_Deepfreeze_Init(void);
/* Various internal finalizers */ /* Various internal finalizers */
@ -58,7 +57,6 @@ extern void _PyWarnings_Fini(PyInterpreterState *interp);
extern void _PyAST_Fini(PyInterpreterState *interp); extern void _PyAST_Fini(PyInterpreterState *interp);
extern void _PyAtExit_Fini(PyInterpreterState *interp); extern void _PyAtExit_Fini(PyInterpreterState *interp);
extern void _PyThread_FiniType(PyInterpreterState *interp); extern void _PyThread_FiniType(PyInterpreterState *interp);
extern void _Py_Deepfreeze_Fini(void);
extern void _PyArg_Fini(void); extern void _PyArg_Fini(void);
extern void _Py_FinalizeAllocatedBlocks(_PyRuntimeState *); extern void _Py_FinalizeAllocatedBlocks(_PyRuntimeState *);

View File

@ -15,17 +15,6 @@
#include "Python/frozen_modules/zipimport.h" #include "Python/frozen_modules/zipimport.h"
/* End includes */ /* 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. */ /* Note that a negative size indicates a package. */
static const struct _frozen bootstrap_modules[] = { static const struct _frozen bootstrap_modules[] = {

View File

@ -22,17 +22,6 @@
# include <unistd.h> # include <unistd.h>
#endif #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 /* To avoid a circular dependency on frozen.o, we create our own structure
of frozen modules instead, left deliberately blank so as to avoid of frozen modules instead, left deliberately blank so as to avoid
unintentional import of a stale version of _frozen_importlib. */ unintentional import of a stale version of _frozen_importlib. */