[vala] glib-2.0: Use strtol instead of atol for string.to_long
- From: Evan Nemerson <evann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] glib-2.0: Use strtol instead of atol for string.to_long
- Date: Sun, 14 Mar 2010 19:53:25 +0000 (UTC)
commit 0c260cdc75e73af8273bb31137547338a81d0941
Author: Evan Nemerson <evan coeus-group com>
Date: Sun Mar 14 12:34:01 2010 -0700
glib-2.0: Use strtol instead of atol for string.to_long
vapi/glib-2.0.vapi | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index bac7126..f1f2157 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -911,8 +911,8 @@ public class string {
[CCode (cname = "atoi")]
public int to_int ();
- [CCode (cname = "atol")]
- public long to_long ();
+ [CCode (cname = "strtol")]
+ public long to_long (out weak string endptr = null, int _base = 0);
[CCode (cname = "g_ascii_strtod")]
public double to_double (out weak string endptr = null);
[CCode (cname = "strtoul")]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]