summaryrefslogtreecommitdiffstats
path: root/Python/import.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-06-17 17:06:34 (GMT)
committerGuido van Rossum <guido@python.org>1996-06-17 17:06:34 (GMT)
commitcfd0a222529cd56a1875ded124e464c501e9b47f (patch)
treef843bf7e2592e359dbdd5dc0fec1f2e520789daa /Python/import.c
parent04527a22c839137a7ca682c22df27fdd89853c39 (diff)
downloadcpython-cfd0a222529cd56a1875ded124e464c501e9b47f.zip
cpython-cfd0a222529cd56a1875ded124e464c501e9b47f.tar.gz
cpython-cfd0a222529cd56a1875ded124e464c501e9b47f.tar.bz2
struct frozen is now struct _frozen and comes from import.h.
Diffstat (limited to 'Python/import.c')
-rw-r--r--Python/import.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/Python/import.c b/Python/import.c
index 53a7ba4..a3803a2 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -573,17 +573,11 @@ init_builtin(name)
/* Frozen modules */
-extern struct frozen {
- char *name;
- char *code;
- int size;
-} frozen_modules[];
-
-static struct frozen *
+static struct _frozen *
find_frozen(name)
char *name;
{
- struct frozen *p;
+ struct _frozen *p;
for (p = frozen_modules; ; p++) {
if (p->name == NULL)
@@ -598,7 +592,7 @@ static object *
get_frozen_object(name)
char *name;
{
- struct frozen *p = find_frozen(name);
+ struct _frozen *p = find_frozen(name);
if (p == NULL) {
err_setstr(ImportError, "No such frozen object");
@@ -616,7 +610,7 @@ int
init_frozen(name)
char *name;
{
- struct frozen *p = find_frozen(name);
+ struct _frozen *p = find_frozen(name);
object *co;
object *m;
@@ -875,7 +869,7 @@ imp_is_frozen(self, args)
object *self;
object *args;
{
- struct frozen *p;
+ struct _frozen *p;
char *name;
if (!newgetargs(args, "s", &name))
return NULL;