Mercurial > cpython-lru_cache-weakref
annotate Python/getcompiler.c @ 14278:fb8fb53a2eff legacy-trunk
Add a comment explaining the return value of PyOS_CheckStack().
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Thu, 31 Aug 2000 05:38:39 +0000 |
| parents | f79434ee41fa |
| children | 6f6f965c5e2d |
| rev | line source |
|---|---|
| 3589 | 1 /*********************************************************** |
|
13255
916fb024ce94
Change copyright notice.
Guido van Rossum <guido@python.org>
parents:
5860
diff
changeset
|
2 Copyright (c) 2000, BeOpen.com. |
|
916fb024ce94
Change copyright notice.
Guido van Rossum <guido@python.org>
parents:
5860
diff
changeset
|
3 Copyright (c) 1995-2000, Corporation for National Research Initiatives. |
|
916fb024ce94
Change copyright notice.
Guido van Rossum <guido@python.org>
parents:
5860
diff
changeset
|
4 Copyright (c) 1990-1995, Stichting Mathematisch Centrum. |
|
916fb024ce94
Change copyright notice.
Guido van Rossum <guido@python.org>
parents:
5860
diff
changeset
|
5 All rights reserved. |
| 3589 | 6 |
|
13255
916fb024ce94
Change copyright notice.
Guido van Rossum <guido@python.org>
parents:
5860
diff
changeset
|
7 See the file "Misc/COPYRIGHT" for information on usage and |
|
916fb024ce94
Change copyright notice.
Guido van Rossum <guido@python.org>
parents:
5860
diff
changeset
|
8 redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. |
| 3589 | 9 ******************************************************************/ |
| 10 | |
|
3621
f158edccc72c
grand renaming; added copyright to some files
Guido van Rossum <guido@python.org>
parents:
3589
diff
changeset
|
11 /* Return the compiler identification, if possible. */ |
|
f158edccc72c
grand renaming; added copyright to some files
Guido van Rossum <guido@python.org>
parents:
3589
diff
changeset
|
12 |
|
f158edccc72c
grand renaming; added copyright to some files
Guido van Rossum <guido@python.org>
parents:
3589
diff
changeset
|
13 #include "Python.h" |
| 3589 | 14 |
| 15 #ifndef COMPILER | |
|
3621
f158edccc72c
grand renaming; added copyright to some files
Guido van Rossum <guido@python.org>
parents:
3589
diff
changeset
|
16 |
| 2896 | 17 #ifdef __GNUC__ |
| 18 #define COMPILER " [GCC " __VERSION__ "]" | |
| 19 #endif | |
|
3621
f158edccc72c
grand renaming; added copyright to some files
Guido van Rossum <guido@python.org>
parents:
3589
diff
changeset
|
20 |
| 3589 | 21 #endif /* !COMPILER */ |
| 2896 | 22 |
| 23 #ifndef COMPILER | |
|
3621
f158edccc72c
grand renaming; added copyright to some files
Guido van Rossum <guido@python.org>
parents:
3589
diff
changeset
|
24 |
| 2896 | 25 #ifdef __cplusplus |
| 26 #define COMPILER "[C++]" | |
| 27 #else | |
| 28 #define COMPILER "[C]" | |
| 29 #endif | |
|
3621
f158edccc72c
grand renaming; added copyright to some files
Guido van Rossum <guido@python.org>
parents:
3589
diff
changeset
|
30 |
| 3589 | 31 #endif /* !COMPILER */ |
| 2896 | 32 |
|
5860
728a083242a2
Make it return a _const_ char*.
Guido van Rossum <guido@python.org>
parents:
4503
diff
changeset
|
33 const char * |
|
13658
f79434ee41fa
Mass ANSIfication of function definitions. Doesn't cover all 'extern'
Thomas Wouters <thomas@python.org>
parents:
13256
diff
changeset
|
34 Py_GetCompiler(void) |
| 2896 | 35 { |
| 36 return COMPILER; | |
| 37 } |
