mirror of
https://github.com/python/cpython
synced 2024-09-15 23:46:26 +00:00
New style interface via pointer variable.
This commit is contained in:
parent
cfd0a22252
commit
7c46a920ae
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue