diff Python/frozen.c @ 3684:606c38535f30 legacy-trunk

New style interface via pointer variable.
author Guido van Rossum <guido@python.org>
date Mon, 17 Jun 1996 17:07:23 +0000
parents f158edccc72c
children 65d2d8e67da3
line wrap: on
line diff
--- a/Python/frozen.c	Mon Jun 17 17:06:34 1996 +0000
+++ b/Python/frozen.c	Mon Jun 17 17:07:23 1996 +0000
@@ -39,11 +39,12 @@
 	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;