mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
Get struct _frozen defn from Python.h; new variable names.
This commit is contained in:
parent
2bd37e6c9b
commit
f75f80eb48
1 changed files with 5 additions and 5 deletions
|
@ -4,15 +4,15 @@ import marshal
|
|||
# Write a file containing frozen code for the modules in the dictionary.
|
||||
|
||||
header = """
|
||||
struct frozen {
|
||||
char *name;
|
||||
unsigned char *code;
|
||||
int size;
|
||||
} frozen_modules[] = {
|
||||
#include "Python.h"
|
||||
|
||||
static struct _frozen _PyImport_FrozenModules[] = {
|
||||
"""
|
||||
trailer = """\
|
||||
{0, 0, 0} /* sentinel */
|
||||
};
|
||||
|
||||
struct _frozen *PyImport_FrozenModules = _PyImport_FrozenModules;
|
||||
"""
|
||||
|
||||
def makefreeze(outfp, dict):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue