Mercurial > cpython-lru_cache-weakref
annotate Python/getcompiler.c @ 13255:916fb024ce94 legacy-trunk
Change copyright notice.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Fri, 30 Jun 2000 23:50:40 +0000 |
| parents | 728a083242a2 |
| children | 87ee82e5c56d |
| rev | line source |
|---|---|
| 3589 | 1 /*********************************************************** |
| 2 Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, | |
| 3 The Netherlands. | |
| 4 | |
| 5 All Rights Reserved | |
| 6 | |
|
13255
916fb024ce94
Change copyright notice.
Guido van Rossum <guido@python.org>
parents:
5860
diff
changeset
|
7 Copyright (c) 2000, BeOpen.com. |
|
916fb024ce94
Change copyright notice.
Guido van Rossum <guido@python.org>
parents:
5860
diff
changeset
|
8 Copyright (c) 1995-2000, Corporation for National Research Initiatives. |
|
916fb024ce94
Change copyright notice.
Guido van Rossum <guido@python.org>
parents:
5860
diff
changeset
|
9 Copyright (c) 1990-1995, Stichting Mathematisch Centrum. |
|
916fb024ce94
Change copyright notice.
Guido van Rossum <guido@python.org>
parents:
5860
diff
changeset
|
10 All rights reserved. |
| 3589 | 11 |
|
13255
916fb024ce94
Change copyright notice.
Guido van Rossum <guido@python.org>
parents:
5860
diff
changeset
|
12 See the file "Misc/COPYRIGHT" for information on usage and |
|
916fb024ce94
Change copyright notice.
Guido van Rossum <guido@python.org>
parents:
5860
diff
changeset
|
13 redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. |
| 3589 | 14 |
| 15 ******************************************************************/ | |
| 16 | |
|
3621
f158edccc72c
grand renaming; added copyright to some files
Guido van Rossum <guido@python.org>
parents:
3589
diff
changeset
|
17 /* Return the compiler identification, if possible. */ |
|
f158edccc72c
grand renaming; added copyright to some files
Guido van Rossum <guido@python.org>
parents:
3589
diff
changeset
|
18 |
|
f158edccc72c
grand renaming; added copyright to some files
Guido van Rossum <guido@python.org>
parents:
3589
diff
changeset
|
19 #include "Python.h" |
| 3589 | 20 |
| 21 #ifndef COMPILER | |
|
3621
f158edccc72c
grand renaming; added copyright to some files
Guido van Rossum <guido@python.org>
parents:
3589
diff
changeset
|
22 |
| 2896 | 23 #ifdef __GNUC__ |
| 24 #define COMPILER " [GCC " __VERSION__ "]" | |
| 25 #endif | |
|
3621
f158edccc72c
grand renaming; added copyright to some files
Guido van Rossum <guido@python.org>
parents:
3589
diff
changeset
|
26 |
| 3589 | 27 #endif /* !COMPILER */ |
| 2896 | 28 |
| 29 #ifndef COMPILER | |
|
3621
f158edccc72c
grand renaming; added copyright to some files
Guido van Rossum <guido@python.org>
parents:
3589
diff
changeset
|
30 |
| 2896 | 31 #ifdef __cplusplus |
| 32 #define COMPILER "[C++]" | |
| 33 #else | |
| 34 #define COMPILER "[C]" | |
| 35 #endif | |
|
3621
f158edccc72c
grand renaming; added copyright to some files
Guido van Rossum <guido@python.org>
parents:
3589
diff
changeset
|
36 |
| 3589 | 37 #endif /* !COMPILER */ |
| 2896 | 38 |
|
5860
728a083242a2
Make it return a _const_ char*.
Guido van Rossum <guido@python.org>
parents:
4503
diff
changeset
|
39 const char * |
|
3621
f158edccc72c
grand renaming; added copyright to some files
Guido van Rossum <guido@python.org>
parents:
3589
diff
changeset
|
40 Py_GetCompiler() |
| 2896 | 41 { |
| 42 return COMPILER; | |
| 43 } |
