diff options
-rw-r--r-- | Python/frozen.c | 11 |
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; |