[Pyrex] patch for STDCALL

Eric Devolder eric.devolder at gmail.com
Fri Aug 3 03:00:18 CEST 2007


Hi,

I've been using Pyrex recently and found it to be probably the easiest way
to interface with DLLs under Windows.... except maybe the missing 'stdcall'
function modifier feature (which is listed in the TODO list).

Therefore, here is my attempt at filling this gap.

Basically, the patch allows inserting the keyword __stdcall right after
extern, on a cdef statement.

e.g.
cdef extern __stdcall long f1(long arg1)

Any comment/remark/suggestion appreciated.

Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.copyleft.no/pipermail/pyrex/attachments/20070803/c0d58b35/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stdcall.patch
Type: application/octet-stream
Size: 11289 bytes
Desc: not available
Url : http://lists.copyleft.no/pipermail/pyrex/attachments/20070803/c0d58b35/attachment.obj 


More information about the Pyrex mailing list