> static int cmp_foo(void* a, void* b)
> {
> return ((Foo*)a)->val - ((Foo*)b)->val < 0 ? -1 : 1;
> }
> Use: (*((Foo**)a))->val In Foo x; x is a pointer if Foo is a class, but an actual structure if Foo is a struct (unless I misunderstood vala). hand Nor Jaidi Tuah _______________________________________________ vala-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/vala-list
