[vala] glib-2.0: Add abs() to short type



commit 69ed59dc5b5b837eb0f6247e79c40817fd38051f
Author: Steven Oliver <oliver steven gmail com>
Date:   Thu Jan 16 22:41:23 2014 +0100

    glib-2.0: Add abs() to short type
    
    Fixes bug 722067

 vapi/glib-2.0.vapi |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index 06051df..db9d1a9 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -1,6 +1,6 @@
 /* glib-2.0.vala
  *
- * Copyright (C) 2006-2012  Jürg Billeter
+ * Copyright (C) 2006-2014  Jürg Billeter
  * Copyright (C) 2006-2008  Raffaele Sandrini
  * Copyright (C) 2007  Mathias Hasselmann
  *
@@ -202,6 +202,8 @@ public struct short {
        public static short max (short a, short b);
        [CCode (cname = "CLAMP")]
        public short clamp (short low, short high);
+       [CCode (cname = "abs", cheader_filename = "stdlib.h")]
+       public static short abs ();
 }
 
 [SimpleType]


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]