summaryrefslogtreecommitdiffstats
path: root/Mac/Python
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-08-08 14:11:07 (GMT)
committerGuido van Rossum <guido@python.org>1995-08-08 14:11:07 (GMT)
commit6e39e53cde731123b104b1f39ce3165dea9f2865 (patch)
tree06d4ef4570a1d247ea0ccd9244ccaf5f6a65f8b0 /Mac/Python
parent222c8924c113f3b080674f35eb5fdfb986ecd340 (diff)
downloadcpython-6e39e53cde731123b104b1f39ce3165dea9f2865.zip
cpython-6e39e53cde731123b104b1f39ce3165dea9f2865.tar.gz
cpython-6e39e53cde731123b104b1f39ce3165dea9f2865.tar.bz2
Initial revision
Diffstat (limited to 'Mac/Python')
-rw-r--r--Mac/Python/macgetcompiler.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/Mac/Python/macgetcompiler.c b/Mac/Python/macgetcompiler.c
new file mode 100644
index 0000000..b249d67
--- /dev/null
+++ b/Mac/Python/macgetcompiler.c
@@ -0,0 +1,27 @@
+/* Return a string representing the compiler name */
+
+#ifdef THINK_C
+#define COMPILER " [THINK C]"
+#endif
+
+#ifdef __MWERKS__
+#ifdef __powerc
+#define COMPILER " [CW PPC]"
+#else
+#define COMPILER " [CW 68K]"
+#endif
+#endif
+
+#ifdef MPW
+#ifdef __SC__
+#define COMPILER " [Symantec MPW]"
+#else
+#define COMPILER " [Apple MPW]"
+#endif
+#endif
+
+char *
+getcompiler()
+{
+ return COMPILER;
+}