libffi and longs

Pupeno pupeno@pupeno.com
Sun Apr 24 21:35:00 GMT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,
I've had troubles in the FFI module I'm building when dealing with (unsigned) 
longs, what happens is that the second unsigned long argument never reached 
the function I'm calling with ffi_call.
I've built a small test (attached) to show this particular problem (in the 
hope that the problem would disappear, but that didn't happen). I've checked 
and re-checked how I pass the arguments to ffi_call, I couldn't find anything 
wrong (debugging libffi internals is not easy :( ).
Any hints are helpful.
Thanks.
- -- 
Pupeno: pupeno@pupeno.com - http://pupeno.com
Reading Science Fiction ? http://sfreaders.com.ar
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFCbBHbfW48a9PWGkURAreSAKCQh4GuO5z1oFG+Li7d6wgd/p8JVACeOxbP
Y3VqhfC6N8HIqiREC+pscMs=
=jltr
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffitarget.c
Type: text/x-csrc
Size: 347 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20050424/28e79969/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile
Type: text/x-makefile
Size: 338 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20050424/28e79969/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testffi.c
Type: text/x-csrc
Size: 657 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20050424/28e79969/attachment-0002.bin>


More information about the Gcc-help mailing list