[Pyrex] Compiling with a C++ compiler
Andreas Kostyrka
andreas at mtg.co.at
Thu Oct 9 10:12:35 CEST 2003
oops, I forgot the patch ;)
(it's against a Pyrex 0.8.2 compiled code)
--- cpptest.c Thu Oct 9 09:21:52 2003
+++ cpptest.C Thu Oct 9 09:35:19 2003
@@ -1,8 +1,19 @@
-/* Generated by Pyrex 0.8.2 on Thu Oct 9 09:21:52 2003 */
+/* Generated by Pyrex 0.8.2 on Thu Oct 9 08:58:10 2003 */
#include "Python.h"
#include "structmember.h"
+#include "compile.h"
+#include "frameobject.h"
+#include "traceback.h"
+namespace {
+#define static /* */
+#undef staticforward
+#define staticforward extern
+#undef statichere
+#define statichere /* */
+#undef DL_EXPORT
+#define DL_EXPORT(x) extern "C" x
static PyObject *__Pyx_UnpackItem(PyObject *, int); /*proto*/
static int __Pyx_EndUnpack(PyObject *, int); /*proto*/
@@ -274,9 +285,6 @@
return 0;
}
-#include "compile.h"
-#include "frameobject.h"
-#include "traceback.h"
static void __Pyx_AddTraceback(char *funcname) {
PyObject *py_srcfile = 0;
@@ -285,7 +293,7 @@
PyObject *empty_tuple = 0;
PyObject *empty_string = 0;
PyCodeObject *py_code = 0;
- PyFrameObject *py_frame = 0;
+ struct _frame *py_frame = 0;
py_srcfile = PyString_FromString(__pyx_filename);
if (!py_srcfile) goto bad;
@@ -331,3 +339,5 @@
Py_XDECREF(py_code);
Py_XDECREF(py_frame);
}
+
+}
More information about the Pyrex
mailing list