Patches to make Windows port work with Python 2.6a3

Cython/Compiler/Errors.py:
    Needed the self.message removed because of deprecation in BaseException.

tests/compile/food.h:
    Converted line endings from Mac to Unix since VS2008 compiler
    fails with Mac text files.

tests/compile/belchenko1.pyx:
    Changed cdef extern to eliminate math.h since it doesn't exist on Windoze.
    This needs to be reviewed since it isn't clear if the test
    needs to build the lib with math.h or whether it is just
    testing the compiler (which wouldn't read math.h anyway).
parent 28e39a8c
......@@ -27,7 +27,8 @@ class CompileError(PyrexError):
def __init__(self, position = None, message = ""):
self.position = position
self.message = message
# Deprecated and withdrawn in 2.6:
# self.message = message
if position:
pos_str = "%s:%d:%d: " % (position[0].get_description(), position[1], position[2])
cont = context(position)
......@@ -40,7 +41,8 @@ class CompileWarning(PyrexWarning):
def __init__(self, position = None, message = ""):
self.position = position
self.message = message
# Deprecated and withdrawn in 2.6:
# self.message = message
if position:
pos_str = "%s:%d:%d: " % (position[0].get_description(), position[1], position[2])
else:
......
cdef extern from "stdint.h":
cdef extern from *:
ctypedef int intptr_t
cdef int _is_aligned(void *ptr):
......
struct Tomato { PyObject_HEAD}; struct Bicycle{ PyObject_HEAD};
\ No newline at end of file
struct Tomato {
PyObject_HEAD
};
struct Bicycle{
PyObject_HEAD
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment