summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-06-17 17:48:30 (GMT)
committerGuido van Rossum <guido@python.org>1996-06-17 17:48:30 (GMT)
commitf75f80eb48d2afd646ee49c2ff6e71ae8239d4be (patch)
tree7ce4f882466a38c74feafc1515c906cbd59262ad /Tools
parent2bd37e6c9b2664f5cec31dd1c38a0a4cb3a02cfc (diff)
downloadcpython-f75f80eb48d2afd646ee49c2ff6e71ae8239d4be.zip
cpython-f75f80eb48d2afd646ee49c2ff6e71ae8239d4be.tar.gz
cpython-f75f80eb48d2afd646ee49c2ff6e71ae8239d4be.tar.bz2
Get struct _frozen defn from Python.h; new variable names.
Diffstat (limited to 'Tools')
-rw-r--r--Tools/freeze/makefreeze.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Tools/freeze/makefreeze.py b/Tools/freeze/makefreeze.py
index 4a3da99..f660664 100644
--- a/Tools/freeze/makefreeze.py
+++ b/Tools/freeze/makefreeze.py
@@ -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):