Mercurial > cpython-lru_cache-weakref
comparison Python/errors.c @ 37655:2f3f2e32dfd9 legacy-trunk
spread the extern "C" { } magic pixie dust around. Python itself builds now
using a C++ compiler. Still lots and lots of errors in the modules built by
setup.py, and a bunch of warnings from g++ in the core.
| author | Anthony Baxter <anthonybaxter@gmail.com> |
|---|---|
| date | Thu, 13 Apr 2006 02:06:09 +0000 |
| parents | 8e04de2480e4 |
| children | 833f384ebd41 |
comparison
equal
deleted
inserted
replaced
| 37654:dec259e4d891 | 37655:2f3f2e32dfd9 |
|---|---|
| 13 #include "windows.h" | 13 #include "windows.h" |
| 14 #include "winbase.h" | 14 #include "winbase.h" |
| 15 #endif | 15 #endif |
| 16 | 16 |
| 17 #include <ctype.h> | 17 #include <ctype.h> |
| 18 | |
| 19 #ifdef __cplusplus | |
| 20 extern "C" { | |
| 21 #endif | |
| 22 | |
| 18 | 23 |
| 19 void | 24 void |
| 20 PyErr_Restore(PyObject *type, PyObject *value, PyObject *traceback) | 25 PyErr_Restore(PyObject *type, PyObject *value, PyObject *traceback) |
| 21 { | 26 { |
| 22 PyThreadState *tstate = PyThreadState_GET(); | 27 PyThreadState *tstate = PyThreadState_GET(); |
| 784 p++; | 789 p++; |
| 785 return PyString_FromString(p); | 790 return PyString_FromString(p); |
| 786 } | 791 } |
| 787 return NULL; | 792 return NULL; |
| 788 } | 793 } |
| 794 | |
| 795 #ifdef __cplusplus | |
| 796 } | |
| 797 #endif | |
| 798 |
