Am 04/18/2008 05:35 PM schrieb Dag Sverre Seljebotn: > If I understand correctly, the issue here is that plugins are written like > this: > > #include <pluginutils.h> > > ... implement plugin somehow, call functions in pluginutils.h > > And then, these plugins are taken out of their original environment and > loaded through Cython. And so the loader must resolve the symbols declared > in pluginutils.h, meaning Cython must implement the actual utils within > pluginutils and export them statically without name mangling? Am I right?
That's right. > Stefan: I don't know if Cython can declare external cdef functions that > are not name mangled? That's possible if you declare those function "cdef public". [...] > and finally, import/declare that latter header-file in Cython as well, and > call it with the Cython implementation of somefunc as the parameter. Hope > that helps. That will be my fallback solution, but I thought it should be possible to do this task without needing such an adapter. The only problem I see at the moment is the missing const support.
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
