[pypy-dev] Call rpython from outside

Aleksandr Koshkin tinysnippets at gmail.com
Mon Jul 10 10:15:39 EDT 2017


Here is a link to a function that buggs me.
https://github.com/magniff/rere/blob/master/rere/vm/vm_main.py#L110
I am using this headers for CFFI:
https://github.com/magniff/rere/blob/master/rere/build/vm_headers.h

2017-07-10 17:03 GMT+03:00 Aleksandr Koshkin <tinysnippets at gmail.com>:

> Sup, guys.
> I want my rpython function to be invokable from outside world specifically
> be python. I have wrapped my function with entrypoint_highlevel and it
> appeared in shared object. So far so good. As a first argument this
> function takes a pointer to a C struct, and there is a problem. I have
> precisely recreated this struct in RPython as a lltypes.Struct (not
> rffi.CStruct) and annotated by this object my entrypoint signature, but it
> seams that some fields of the passed struct are messed up (shifted
> basically). Could it be because I used Struct instead of CStruct? I am
> using CFFI as a binding generator.
>
> --
> Kind regards, Aleksandr Koshkin.
>



-- 
Kind regards, Aleksandr Koshkin.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20170710/72851045/attachment.html>


More information about the pypy-dev mailing list