New style interface via pointer variable.

This commit is contained in:
Guido van Rossum 1996-06-17 17:07:23 +00:00
parent cfd0a22252
commit 7c46a920ae

View file

@ -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;