Re: X11 XSynchronize() definition in D

2013-08-06 Thread Ali Çehreli
On 08/06/2013 08:46 AM, Ali Çehreli wrote: > On 08/06/2013 03:22 AM, David wrote:>> struct Display > >> {} > > > > D supports opaque structs/pointers > > > > struct Display; > > > > Now Display has to be used as pointer only or the compiler complains > > e.g. about > > > > Display displ

Re: X11 XSynchronize() definition in D

2013-08-06 Thread Ali Çehreli
On 08/06/2013 03:22 AM, David wrote:>> struct Display >> {} > > D supports opaque structs/pointers > > struct Display; > > Now Display has to be used as pointer only or the compiler complains > e.g. about > > Display display; Yes and I am sure that is how Xlib.d has it. However, remembering a li

Re: X11 XSynchronize() definition in D

2013-08-06 Thread andrea9940
@Ali Çehreli Thank you for the explanation. I'll send a pull request to fix Xlib.d

Re: X11 XSynchronize() definition in D

2013-08-06 Thread David
> struct Display > {} D supports opaque structs/pointers struct Display; Now Display has to be used as pointer only or the compiler complains e.g. about Display display;

Re: X11 XSynchronize() definition in D

2013-08-06 Thread Ali Çehreli
On 08/06/2013 01:01 AM, andrea9940 wrote: > Hi, I'm working with the X11 library available from > https://github.com/D-Programming-Deimos/libX11 > If I try to call XSynchronize(display, True) the compilation fails with > "Error: function deimos.X11.Xlib.XSynchronize (_XDisplay*) is not > callable

Re: X11 XSynchronize() definition in D

2013-08-06 Thread andrea9940
On Tuesday, 6 August 2013 at 08:21:26 UTC, bearophile wrote: Try extern(C)? It's not a linkage error, it's a syntax one

Re: X11 XSynchronize() definition in D

2013-08-06 Thread bearophile
andrea9940: extern int function( Display*/* display */, Bool/* onoff */ )XSynchronize( Display*/* display */ ); Try extern(C)? Bye, bearophile

X11 XSynchronize() definition in D

2013-08-06 Thread andrea9940
Hi, I'm working with the X11 library available from https://github.com/D-Programming-Deimos/libX11 If I try to call XSynchronize(display, True) the compilation fails with "Error: function deimos.X11.Xlib.XSynchronize (_XDisplay*) is not callable using argument types (_XDisplay*, int)" I am su