Mercurial > cpython-lru_cache-weakref
diff Mac/Python/macapplication.c @ 10171:73e5e3f51b87 legacy-trunk
(finally) unified the interpreter and the applet as Just suggested ages ago. The
resulting program is called PythonInterpreter.
| author | Jack Jansen <jack.jansen@cwi.nl> |
|---|---|
| date | Mon, 15 Feb 1999 21:33:34 +0000 |
| parents | d6b292a33cfe |
| children | 744db86e0311 |
line wrap: on
line diff
--- a/Mac/Python/macapplication.c Mon Feb 15 20:15:39 1999 +0000 +++ b/Mac/Python/macapplication.c Mon Feb 15 21:33:34 1999 +0000 @@ -22,15 +22,24 @@ ******************************************************************/ -/* Macintosh Applet Python main program */ +/* Macintosh Python main program for both applets and interpreter */ -#ifdef SYMANTEC__CFM68K__ +#include <Resources.h> + +#ifdef __CFM68K__ #pragma lib_export on #endif +extern void PyMac_InitApplet(); extern void PyMac_InitApplication(); void main() { - PyMac_InitApplication(); + Handle mainpyc; + + mainpyc = Get1NamedResource('PYC ', "\p__main__"); + if (mainpyc != NULL) + PyMac_InitApplet(); + else + PyMac_InitApplication(); }
