ExternalLibrary and lots of arguments

Todd Fleming todd at flemingcnc.com
Thu Nov 11 21:22:20 PST 2004


Pupeno,

I'm curious about something. Win32 requires callbacks in order to make 
useful windows. Does X11 need callbacks? If so, how are you getting 
around this?

Todd


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
>  
>




More information about the Slate mailing list