summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-01-23 22:38:23 +0000
committerJack Jansen <jack.jansen@cwi.nl>2001-01-23 22:38:23 +0000
commit193509b32085eaffd0801cd89354c97f48cb74a1 (patch)
tree1d8e784ff67e0cd2625577e0bc1d09c993fa3fe1
parentc3fc51f61baef0bd00f9cb9b3c8dbead6ab8dc85 (diff)
downloadcpython-git-193509b32085eaffd0801cd89354c97f48cb74a1.tar.gz
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.
-rw-r--r--Mac/Modules/macosmodule.c9
1 files changed, 9 insertions, 0 deletions
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;
}