annotate Mac/Python/macgetcompiler.c @ 12590:cef45f1a7943 legacy-trunk

Got rid of w/MSL in the version string.
author Jack Jansen <jack.jansen@cwi.nl>
date Fri, 05 May 2000 23:08:47 +0000
parents 51c0c3b6d919
children 21553bd2e875
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5079
d6b292a33cfe Added/updated copyright notices
Jack Jansen <jack.jansen@cwi.nl>
parents: 4019
diff changeset
1 /***********************************************************
d6b292a33cfe Added/updated copyright notices
Jack Jansen <jack.jansen@cwi.nl>
parents: 4019
diff changeset
2 Copyright 1991-1997 by Stichting Mathematisch Centrum, Amsterdam,
d6b292a33cfe Added/updated copyright notices
Jack Jansen <jack.jansen@cwi.nl>
parents: 4019
diff changeset
3 The Netherlands.
d6b292a33cfe Added/updated copyright notices
Jack Jansen <jack.jansen@cwi.nl>
parents: 4019
diff changeset
4
d6b292a33cfe Added/updated copyright notices
Jack Jansen <jack.jansen@cwi.nl>
parents: 4019
diff changeset
5 All Rights Reserved
d6b292a33cfe Added/updated copyright notices
Jack Jansen <jack.jansen@cwi.nl>
parents: 4019
diff changeset
6
d6b292a33cfe Added/updated copyright notices
Jack Jansen <jack.jansen@cwi.nl>
parents: 4019
diff changeset
7 Permission to use, copy, modify, and distribute this software and its
d6b292a33cfe Added/updated copyright notices
Jack Jansen <jack.jansen@cwi.nl>
parents: 4019
diff changeset
8 documentation for any purpose and without fee is hereby granted,
d6b292a33cfe Added/updated copyright notices
Jack Jansen <jack.jansen@cwi.nl>
parents: 4019
diff changeset
9 provided that the above copyright notice appear in all copies and that
d6b292a33cfe Added/updated copyright notices
Jack Jansen <jack.jansen@cwi.nl>
parents: 4019
diff changeset
10 both that copyright notice and this permission notice appear in
d6b292a33cfe Added/updated copyright notices
Jack Jansen <jack.jansen@cwi.nl>
parents: 4019
diff changeset
11 supporting documentation, and that the names of Stichting Mathematisch
d6b292a33cfe Added/updated copyright notices
Jack Jansen <jack.jansen@cwi.nl>
parents: 4019
diff changeset
12 Centrum or CWI or Corporation for National Research Initiatives or
d6b292a33cfe Added/updated copyright notices
Jack Jansen <jack.jansen@cwi.nl>
parents: 4019
diff changeset
13 CNRI not be used in advertising or publicity pertaining to
d6b292a33cfe Added/updated copyright notices
Jack Jansen <jack.jansen@cwi.nl>
parents: 4019
diff changeset
14 distribution of the software without specific, written prior
d6b292a33cfe Added/updated copyright notices
Jack Jansen <jack.jansen@cwi.nl>
parents: 4019
diff changeset
15 permission.
d6b292a33cfe Added/updated copyright notices
Jack Jansen <jack.jansen@cwi.nl>
parents: 4019
diff changeset
16
d6b292a33cfe Added/updated copyright notices
Jack Jansen <jack.jansen@cwi.nl>
parents: 4019
diff changeset
17 While CWI is the initial source for this software, a modified version
d6b292a33cfe Added/updated copyright notices
Jack Jansen <jack.jansen@cwi.nl>
parents: 4019
diff changeset
18 is made available by the Corporation for National Research Initiatives
d6b292a33cfe Added/updated copyright notices
Jack Jansen <jack.jansen@cwi.nl>
parents: 4019
diff changeset
19 (CNRI) at the Internet address ftp://ftp.python.org.
d6b292a33cfe Added/updated copyright notices
Jack Jansen <jack.jansen@cwi.nl>
parents: 4019
diff changeset
20
d6b292a33cfe Added/updated copyright notices
Jack Jansen <jack.jansen@cwi.nl>
parents: 4019
diff changeset
21 STICHTING MATHEMATISCH CENTRUM AND CNRI DISCLAIM ALL WARRANTIES WITH
d6b292a33cfe Added/updated copyright notices
Jack Jansen <jack.jansen@cwi.nl>
parents: 4019
diff changeset
22 REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
d6b292a33cfe Added/updated copyright notices
Jack Jansen <jack.jansen@cwi.nl>
parents: 4019
diff changeset
23 MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH
d6b292a33cfe Added/updated copyright notices
Jack Jansen <jack.jansen@cwi.nl>
parents: 4019
diff changeset
24 CENTRUM OR CNRI BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
d6b292a33cfe Added/updated copyright notices
Jack Jansen <jack.jansen@cwi.nl>
parents: 4019
diff changeset
25 DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
d6b292a33cfe Added/updated copyright notices
Jack Jansen <jack.jansen@cwi.nl>
parents: 4019
diff changeset
26 PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
d6b292a33cfe Added/updated copyright notices
Jack Jansen <jack.jansen@cwi.nl>
parents: 4019
diff changeset
27 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
d6b292a33cfe Added/updated copyright notices
Jack Jansen <jack.jansen@cwi.nl>
parents: 4019
diff changeset
28 PERFORMANCE OF THIS SOFTWARE.
d6b292a33cfe Added/updated copyright notices
Jack Jansen <jack.jansen@cwi.nl>
parents: 4019
diff changeset
29
d6b292a33cfe Added/updated copyright notices
Jack Jansen <jack.jansen@cwi.nl>
parents: 4019
diff changeset
30 ******************************************************************/
d6b292a33cfe Added/updated copyright notices
Jack Jansen <jack.jansen@cwi.nl>
parents: 4019
diff changeset
31
2930
7392790328bb Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
32 /* Return a string representing the compiler name */
7392790328bb Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
33
4019
1dee3e4f67df Include config.h
Jack Jansen <jack.jansen@cwi.nl>
parents: 3750
diff changeset
34 #include "config.h"
1dee3e4f67df Include config.h
Jack Jansen <jack.jansen@cwi.nl>
parents: 3750
diff changeset
35
2930
7392790328bb Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
36 #ifdef THINK_C
7392790328bb Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
37 #define COMPILER " [THINK C]"
7392790328bb Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
38 #endif
7392790328bb Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
39
7392790328bb Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
40 #ifdef __MWERKS__
12281
51c0c3b6d919 Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents: 5270
diff changeset
41 #ifdef USE_GUSI1
51c0c3b6d919 Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents: 5270
diff changeset
42 #define HASGUSI " w/GUSI1"
51c0c3b6d919 Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents: 5270
diff changeset
43 #else
51c0c3b6d919 Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents: 5270
diff changeset
44 #ifdef USE_GUSI2
51c0c3b6d919 Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents: 5270
diff changeset
45 #define HASGUSI " w/GUSI2"
3394
4fea6cd94dfa Modified for GUSI
Jack Jansen <jack.jansen@cwi.nl>
parents: 2983
diff changeset
46 #else
4fea6cd94dfa Modified for GUSI
Jack Jansen <jack.jansen@cwi.nl>
parents: 2983
diff changeset
47 #define HASGUSI ""
4fea6cd94dfa Modified for GUSI
Jack Jansen <jack.jansen@cwi.nl>
parents: 2983
diff changeset
48 #endif
12281
51c0c3b6d919 Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents: 5270
diff changeset
49 #endif
51c0c3b6d919 Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents: 5270
diff changeset
50
51c0c3b6d919 Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents: 5270
diff changeset
51 #ifdef WITH_THREAD
51c0c3b6d919 Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents: 5270
diff changeset
52 #define HASTHREAD " w/THREADS"
51c0c3b6d919 Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents: 5270
diff changeset
53 #else
51c0c3b6d919 Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents: 5270
diff changeset
54 #define HASTHREAD ""
51c0c3b6d919 Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents: 5270
diff changeset
55 #endif
51c0c3b6d919 Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents: 5270
diff changeset
56
2930
7392790328bb Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
57 #ifdef __powerc
12590
cef45f1a7943 Got rid of w/MSL in the version string.
Jack Jansen <jack.jansen@cwi.nl>
parents: 12281
diff changeset
58 #define COMPILER " [CW PPC" HASGUSI HASTHREAD"]"
2930
7392790328bb Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
59 #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
60 #ifdef __CFM68K__
12590
cef45f1a7943 Got rid of w/MSL in the version string.
Jack Jansen <jack.jansen@cwi.nl>
parents: 12281
diff changeset
61 #define COMPILER " [CW CFM68K" HASGUSI HASTHREAD"]"
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
62 #else
12590
cef45f1a7943 Got rid of w/MSL in the version string.
Jack Jansen <jack.jansen@cwi.nl>
parents: 12281
diff changeset
63 #define COMPILER " [CW 68K" HASGUSI HASTHREAD"]"
2930
7392790328bb Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
64 #endif
7392790328bb Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
65 #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
66 #endif
2930
7392790328bb Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
67
7392790328bb Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
68 #ifdef MPW
7392790328bb Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
69 #ifdef __SC__
7392790328bb Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
70 #define COMPILER " [Symantec MPW]"
7392790328bb Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
71 #else
7392790328bb Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
72 #define COMPILER " [Apple MPW]"
7392790328bb Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
73 #endif
7392790328bb Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
74 #endif
7392790328bb Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
75
7392790328bb Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
76 char *
3750
a22438e94fe9 Old names changed to Py_GetCopyright, etc.
Jack Jansen <jack.jansen@cwi.nl>
parents: 3394
diff changeset
77 Py_GetCompiler()
2930
7392790328bb Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
78 {
7392790328bb Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
79 return COMPILER;
7392790328bb Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
80 }