]> granicus.if.org Git - python/commitdiff
New style interface via pointer variable.
authorGuido van Rossum <guido@python.org>
Mon, 17 Jun 1996 17:07:23 +0000 (17:07 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 17 Jun 1996 17:07:23 +0000 (17:07 +0000)
Python/frozen.c

index 633931485c8f155563b77e917884663b803b1788..39d51ee0d5bbe5cb1339b276053f96d121055b79 100644 (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;