Re: [Vala] Compilation error using XClientMessageEvent
- From: Timo Kluck <tkluck infty nl>
- To: Axel FILMORE <axel filmore gmail com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] Compilation error using XClientMessageEvent
- Date: Fri, 13 Jan 2012 19:54:55 +0100
Hi Axel,
I'm missing something, any help would be appreciated.
Thanks.
I tried modifying x11.vala like this, which almost makes your code work:
[CCode (cname = "union { char b[20]; short s[10]; long l[5]; }")]
public struct ClientMessageEventData {
which gives the following error:
incompatible types when assigning to type ‘union <anonymous>’ from
type ‘union <anonymous>’
So it turns out that you cannot make your own variable of the same
type as the anonymous union and have C consider them as the same type.
I don't think there's an easy way out of this. The fact that the union
is anonymous is beyond vala's control.
Does copying the entire ClientMessageEvent work for you?
Timo Kluck
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]