annotate Mac/Python/macgetcompiler.c @ 3930:52c19ee83a6b legacy-trunk

Guido's 1.4b2 fixes: Py_GetProgramName, Py_GetPrefix and Py_GetExecPrefix.
author Jack Jansen <jack.jansen@cwi.nl>
date Fri, 02 Aug 1996 15:16:16 +0000
parents a22438e94fe9
children 1dee3e4f67df
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2930
7392790328bb Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
1 /* Return a string representing the compiler name */
7392790328bb Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
2
7392790328bb Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
3 #ifdef THINK_C
7392790328bb Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
4 #define COMPILER " [THINK C]"
7392790328bb Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
5 #endif
7392790328bb Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
6
7392790328bb Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
7 #ifdef __MWERKS__
3394
4fea6cd94dfa Modified for GUSI
Jack Jansen <jack.jansen@cwi.nl>
parents: 2983
diff changeset
8 #ifdef USE_GUSI
4fea6cd94dfa Modified for GUSI
Jack Jansen <jack.jansen@cwi.nl>
parents: 2983
diff changeset
9 #define HASGUSI " w/GUSI"
4fea6cd94dfa Modified for GUSI
Jack Jansen <jack.jansen@cwi.nl>
parents: 2983
diff changeset
10 #else
4fea6cd94dfa Modified for GUSI
Jack Jansen <jack.jansen@cwi.nl>
parents: 2983
diff changeset
11 #define HASGUSI ""
4fea6cd94dfa Modified for GUSI
Jack Jansen <jack.jansen@cwi.nl>
parents: 2983
diff changeset
12 #endif
2930
7392790328bb Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
13 #ifdef __powerc
3394
4fea6cd94dfa Modified for GUSI
Jack Jansen <jack.jansen@cwi.nl>
parents: 2983
diff changeset
14 #define COMPILER " [CW PPC" HASGUSI "]"
2930
7392790328bb Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
15 #else
2983
7b3911960564 Merged Jack's macgetcompiler.c and Guido's maccompiler.c and named the
Jack Jansen <jack.jansen@cwi.nl>
parents: 2930
diff changeset
16 #ifdef __CFM68K__
3394
4fea6cd94dfa Modified for GUSI
Jack Jansen <jack.jansen@cwi.nl>
parents: 2983
diff changeset
17 #define COMPILER " [CW CFM68K" HASGUSI "]"
2983
7b3911960564 Merged Jack's macgetcompiler.c and Guido's maccompiler.c and named the
Jack Jansen <jack.jansen@cwi.nl>
parents: 2930
diff changeset
18 #else
3394
4fea6cd94dfa Modified for GUSI
Jack Jansen <jack.jansen@cwi.nl>
parents: 2983
diff changeset
19 #define COMPILER " [CW 68K" HASGUSI "]"
2930
7392790328bb Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
20 #endif
7392790328bb Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
21 #endif
2983
7b3911960564 Merged Jack's macgetcompiler.c and Guido's maccompiler.c and named the
Jack Jansen <jack.jansen@cwi.nl>
parents: 2930
diff changeset
22 #endif
2930
7392790328bb Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
23
7392790328bb Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
24 #ifdef MPW
7392790328bb Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
25 #ifdef __SC__
7392790328bb Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
26 #define COMPILER " [Symantec MPW]"
7392790328bb Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
27 #else
7392790328bb Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
28 #define COMPILER " [Apple MPW]"
7392790328bb Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
29 #endif
7392790328bb Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
30 #endif
7392790328bb Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
31
7392790328bb Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
32 char *
3750
a22438e94fe9 Old names changed to Py_GetCopyright, etc.
Jack Jansen <jack.jansen@cwi.nl>
parents: 3394
diff changeset
33 Py_GetCompiler()
2930
7392790328bb Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
34 {
7392790328bb Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
35 return COMPILER;
7392790328bb Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
36 }