Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cfd0a22

Browse files
committed
struct frozen is now struct _frozen and comes from import.h.
1 parent 04527a2 commit cfd0a22

1 file changed

Lines changed: 5 additions & 11 deletions

File tree

Python/import.c

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -573,17 +573,11 @@ init_builtin(name)
573573

574574
/* Frozen modules */
575575

576-
extern struct frozen {
577-
char *name;
578-
char *code;
579-
int size;
580-
} frozen_modules[];
581-
582-
static struct frozen *
576+
static struct _frozen *
583577
find_frozen(name)
584578
char *name;
585579
{
586-
struct frozen *p;
580+
struct _frozen *p;
587581

588582
for (p = frozen_modules; ; p++) {
589583
if (p->name == NULL)
@@ -598,7 +592,7 @@ static object *
598592
get_frozen_object(name)
599593
char *name;
600594
{
601-
struct frozen *p = find_frozen(name);
595+
struct _frozen *p = find_frozen(name);
602596

603597
if (p == NULL) {
604598
err_setstr(ImportError, "No such frozen object");
@@ -616,7 +610,7 @@ int
616610
init_frozen(name)
617611
char *name;
618612
{
619-
struct frozen *p = find_frozen(name);
613+
struct _frozen *p = find_frozen(name);
620614
object *co;
621615
object *m;
622616

@@ -875,7 +869,7 @@ imp_is_frozen(self, args)
875869
object *self;
876870
object *args;
877871
{
878-
struct frozen *p;
872+
struct _frozen *p;
879873
char *name;
880874
if (!newgetargs(args, "s", &name))
881875
return NULL;

0 commit comments

Comments
 (0)