[vala] posix: use new syntax for delegates without target
- From: Michael Lauer <mlauer src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vala] posix: use new syntax for delegates without target
- Date: Sun, 31 Jan 2010 10:11:55 +0000 (UTC)
commit 62390c74df590c0f20033e987ef015d8362ed148
Author: Michael 'Mickey' Lauer <mickey vanille-media de>
Date: Sun Jan 31 11:11:26 2010 +0100
posix: use new syntax for delegates without target
vapi/posix.vapi | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/vapi/posix.vapi b/vapi/posix.vapi
index 651ba38..ff3398e 100644
--- a/vapi/posix.vapi
+++ b/vapi/posix.vapi
@@ -927,8 +927,8 @@ namespace Posix {
[CCode (cheader_filename = "signal.h")]
public int sigwait (sigset_t sigset, out int sig);
- [CCode (cheader_filename = "signal.h")]
- public static delegate void sighandler_t (int signal);
+ [CCode (has_target = false, cheader_filename = "signal.h")]
+ public delegate void sighandler_t (int signal);
[CCode (cheader_filename = "signal.h")]
public sighandler_t SIG_DFL;
@@ -975,7 +975,8 @@ namespace Posix {
[CCode (cheader_filename = "stdlib.h")]
public int system (string command);
- public static delegate int compar_fn_t (void* key1, void* key2);
+ [CCOde (has_target = false, cheader_filename = "stdlib.h")]
+ public delegate int compar_fn_t (void* key1, void* key2);
[CCode (cheader_filename = "stdlib.h")]
public void* bsearch (void* key, void* base, size_t nmemb, size_t size, compar_fn_t func);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]