* Michael 'Mickey' Lauer wrote, On 12/02/09 12:39:
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 :)
Juergbi has it define a static function in each C file that uses it, but
*I* think it should define a C macro in the header file... I know just
saying that made Juergbu feel sick...
Sam
_______________________________________________
Vala-list mailing list
Vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list