Am Thursday 05 February 2009 17:27:52 schrieb Sam Liddicott:
> >>>> Anything we can do about that or just give in and leaving FdSet a full
> >>>> class?
> >>
> >> use memset ?
> >
> > Heh, right. Will you try to get the patch into the respective c
> > libraries?
>
> I thought we were talking about vapi files. Something like
>
> [Compact]
>      public class FdSet
>      {
>          [CCode (cheader_filename = "string.h")]
>          public void zero () {
>            memset(this, 0, sizeof(this));
>          }
>
> But I suppose you could also call FD_ZERO from the body too...

Oh amazing! It didn't occur to me that vala code is allowed in vapi files :)

Thanks.

-- 
:M:
_______________________________________________
Vala-list mailing list
Vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to