On Wed, 19 Aug 2009, Fuzzy Wombat wrote:

> On Tue, Aug 18, 2009 at 2:57 PM, Robert Bradshaw <
> [email protected]> wrote:
>
>> On Tue, 18 Aug 2009, Fuzzy Wombat wrote:
>>
>>> I'm attempting to write some bindings to the functions in regex.h (I know
>>> only applicable on POSIX systems)
>>> and I'm running across an issue, that not withstanding I think my problem
>> is
>>> the 'restrict' keyword, which I cannot
>>> find any documentation on as far as cython's usage. My question then
>> would
>>> be: Is this supported? and if so, what
>>> is the appropriate syntax for using it?
>>
>> No, Cython does not know about the restrict keyword. I bet using the same
>> tricks one does for const would work here as well, if you need it.
>>
>> - Robert
>
>
> I had thought that originally, but could not come up with an incarnation of
> it that would work for restrict qualifiers.

Hmm... I actually had never heard about the restrict keyword before this 
email so I don't know much about it (though I can see how it could be very 
useful).

> In the end I did solve the problem, I wrote a pure C function
> that did the work for me and took
> types that cython supported, and wrapped that with cython, then linked them
> both together to make my module.

Yep, that'd work.

> It worked with very little code and effort, however may not be the
> cleanest of solutions.  If interested
> I can post my code somewhere for people to see.

Could you put it in the FAQ on the wiki? http://wiki.cython.org/

- Robert

_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to