Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f75f80e

Browse files
committed
Get struct _frozen defn from Python.h; new variable names.
1 parent 2bd37e6 commit f75f80e

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Tools/freeze/makefreeze.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
# Write a file containing frozen code for the modules in the dictionary.
55

66
header = """
7-
struct frozen {
8-
char *name;
9-
unsigned char *code;
10-
int size;
11-
} frozen_modules[] = {
7+
#include "Python.h"
8+
9+
static struct _frozen _PyImport_FrozenModules[] = {
1210
"""
1311
trailer = """\
1412
{0, 0, 0} /* sentinel */
1513
};
14+
15+
struct _frozen *PyImport_FrozenModules = _PyImport_FrozenModules;
1616
"""
1717

1818
def makefreeze(outfp, dict):

0 commit comments

Comments
 (0)