ExternalLibrary and lots of arguments
Brian Rice
water at tunes.org
Thu Nov 11 21:19:34 PST 2004
This patch is applied in CVS now. Thanks!
On Nov 11, 2004, at 9:07 PM, Pupeno wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello Slaters,
> I am using ExternalLibrary to build a wrapper for XLib (just what I
> need to
> get Cairo going). There's a function with nine arguments that I need
> to call:
>
> Window XCreateSimpleWindow ( Display *display , Window parent , int x
> , int
> y , unsigned int width , unsigned int height , unsigned int
> border_width ,
> unsigned long border , unsigned long background );
>
> and it was not behaving like expected. It alwasy returned Nil, Nil,
> Nil, so I
> started checking out EXternalLibrary's C side and I've found it
> couldn't pass
> more than 5 parameters. So, for my needs I extended to 12 [1]
> parameters and
> the patch is attached.
> Now, instead of getting Nil, I get a segfault... progress... :) I'm
> rebuilding
> the vm and the image in case that changes something, and if not...
> well...
> probably it is time to use gdb and see what's going on.
> - --
> Pupeno: pupeno at pupeno.com - http://www.pupeno.com
>
> [1] To be able to call this beast:
> Window XCreateWindow ( Display *display , Window parent , int x , int
> y ,
> unsigned int width , unsigned int height , unsigned int border_width ,
> int
> depth , unsigned int class , Visual *visual , unsigned long valuemask ,
> XSetWindowAttributes *attributes );
> when the time comes.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.6 (GNU/Linux)
>
> iD8DBQFBlEUAfW48a9PWGkURAp6hAJ0fMR459W025bG7gbxgvcbQUIZzgQCeOn3W
> JVBtLmfwT+EaqFcxJ66PAqw=
> =ZvLH
> -----END PGP SIGNATURE-----
> <extprim.c.morearguments.patch>
--
Brian T. Rice
LOGOS Research and Development
http://tunes.org/~water/
More information about the Slate
mailing list