From: Jack Jansen Date: Tue, 23 Jan 2001 22:38:23 +0000 (+0000) Subject: Added an attribute runtimemodel, which is either "ppc" or "carbon" and is the runtime... X-Git-Tag: v2.1a2~253 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=193509b32085eaffd0801cd89354c97f48cb74a1;p=python Added an attribute runtimemodel, which is either "ppc" or "carbon" and is the runtime model of the current interpreter. Will have to ad another value later for real MacOSX MachO, I guess. --- diff --git a/Mac/Modules/macosmodule.c b/Mac/Modules/macosmodule.c index b3dec5400d..6fe0bd0904 100644 --- a/Mac/Modules/macosmodule.c +++ b/Mac/Modules/macosmodule.c @@ -759,5 +759,14 @@ initMacOS() if (PyDict_SetItemString(d, "AppearanceCompliant", Py_BuildValue("i", PyMac_AppearanceCompliant)) != 0) return; +#if TARGET_API_MAC_CARBON +/* Will need a different name for MachO-carbon later (macho?) */ +#define PY_RUNTIMEMODEL "carbon" +#else +#define PY_RUNTIMEMODEL "ppc" +#endif + if (PyDict_SetItemString(d, "runtimemodel", + Py_BuildValue("s", PY_RUNTIMEMODEL)) != 0) + return; }