From 7c46a920ae214c43b18a0c064c7bf80492a434c9 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 17 Jun 1996 17:07:23 +0000 Subject: New style interface via pointer variable. --- Python/frozen.c | 11 ++++++----- 1 file 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; -- cgit v0.12