]> granicus.if.org Git - python/commitdiff
Get struct _frozen defn from Python.h; new variable names.
authorGuido van Rossum <guido@python.org>
Mon, 17 Jun 1996 17:48:30 +0000 (17:48 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 17 Jun 1996 17:48:30 +0000 (17:48 +0000)
Tools/freeze/makefreeze.py

index 4a3da99d353cc2678d5cdcaae0b91d4855788322..f66066455a73d05f3eb4d7a437a4e2026ead4242 100644 (file)
@@ -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):