summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-06-17 17:07:23 (GMT)
committerGuido van Rossum <guido@python.org>1996-06-17 17:07:23 (GMT)
commit7c46a920ae214c43b18a0c064c7bf80492a434c9 (patch)
tree89cefad1de7617636dd115679498683870146f2a /Python
parentcfd0a222529cd56a1875ded124e464c501e9b47f (diff)
downloadcpython-7c46a920ae214c43b18a0c064c7bf80492a434c9.zip
cpython-7c46a920ae214c43b18a0c064c7bf80492a434c9.tar.gz
cpython-7c46a920ae214c43b18a0c064c7bf80492a434c9.tar.bz2
New style interface via pointer variable.
Diffstat (limited to 'Python')
-rw-r--r--Python/frozen.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/Python/frozen.c b/Python/frozen.c
index 6339314..39d51ee 100644
--- a/Python/frozen.c
+++ b/Python/frozen.c
@@ -39,11 +39,12 @@ static unsigned char M___hello__[] = {
63,
};
-struct frozen {
- char *name;
- unsigned char *code;
- int size;
-} _PyImport_FrozenModules[] = {
+static struct _frozen _PyImport_FrozenModules[] = {
{"__hello__", M___hello__, 81},
{0, 0, 0} /* sentinel */
};
+
+/* Embedding apps may change this pointer to point to their favorite
+ collection of frozen modules: */
+
+struct _frozen *PyImport_FrozenModules = _PyImport_FrozenModules;