Re: [Vala] Posix.qsort no longer works
- From: Abderrahim Kitouni <a kitouni gmail com>
- To: Nor Jaidi Tuah <norjaidi tuah ubd edu bn>
- Cc: vala-list gnome org
- Subject: Re: [Vala] Posix.qsort no longer works
- Date: Thu, 18 Feb 2010 09:41:51 +0100
2010/2/18, Nor Jaidi Tuah <norjaidi tuah ubd edu bn>:
Vala version: 0.7.10
Problem:
========
Posix.qsort (an_array, an_array.length, sizeof_array_element, cmp);
is compiled to:
qsort(.... 5 arguments, the last of which is cmp_target ....)
This didn't happen with version 0.7.8.
You should replace :
public static delegate int compar_fn_t (void* key1, void* key2);
in posix.vapi with :
[CCode (has_target=false)]
public delegate int compar_fn_t (void* key1, void* key2);
This may be fixed already in git, if not, it needs to be fixed.
HTH,
Abderrahim
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]