Commit 561eb15a authored by Robert Bradshaw's avatar Robert Bradshaw

Re-enable and fix constness on char* function pointer conversion.

parent 70f753c9
...@@ -12,10 +12,6 @@ __doc__ = """ ...@@ -12,10 +12,6 @@ __doc__ = """
Traceback (most recent call last): Traceback (most recent call last):
... ...
NameError: name 'log' is not defined NameError: name 'log' is not defined
"""
# Broken in gcc.
"""
>>> strchr('abcabc', ord('c')) >>> strchr('abcabc', ord('c'))
'cabc' 'cabc'
""" """
...@@ -25,5 +21,6 @@ cdef extern from "math.h": ...@@ -25,5 +21,6 @@ cdef extern from "math.h":
cpdef double pyx_sqrt "sqrt"(double) cpdef double pyx_sqrt "sqrt"(double)
cdef double log(double) # not wrapped cdef double log(double) # not wrapped
# cdef extern from "string.h": cdef extern from "string.h":
# cpdef char* strchr(const char *haystack, int needle); # signature must be exact in C++, disagrees with C
cpdef char* strchr(const char *haystack, int needle);
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