diff options
author | Guido van Rossum <guido@python.org> | 1996-06-17 17:48:30 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-06-17 17:48:30 (GMT) |
commit | f75f80eb48d2afd646ee49c2ff6e71ae8239d4be (patch) | |
tree | 7ce4f882466a38c74feafc1515c906cbd59262ad /Tools/freeze/makefreeze.py | |
parent | 2bd37e6c9b2664f5cec31dd1c38a0a4cb3a02cfc (diff) | |
download | cpython-f75f80eb48d2afd646ee49c2ff6e71ae8239d4be.zip cpython-f75f80eb48d2afd646ee49c2ff6e71ae8239d4be.tar.gz cpython-f75f80eb48d2afd646ee49c2ff6e71ae8239d4be.tar.bz2 |
Get struct _frozen defn from Python.h; new variable names.
Diffstat (limited to 'Tools/freeze/makefreeze.py')
-rw-r--r-- | Tools/freeze/makefreeze.py | 10 |
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): |