From: Guido van Rossum Date: Mon, 17 Jun 1996 17:07:23 +0000 (+0000) Subject: New style interface via pointer variable. X-Git-Tag: v1.4b1~58 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7c46a920ae214c43b18a0c064c7bf80492a434c9;p=python New style interface via pointer variable. --- diff --git a/Python/frozen.c b/Python/frozen.c index 633931485c..39d51ee0d5 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;