[vala] glib-2.0: Add abs() to float and double



commit 5c081e8380504bd5f813ea2a77d8771e18193945
Author: Steven Oliver <oliver steven gmail com>
Date:   Sun Apr 10 09:49:49 2016 -0400

    glib-2.0: Add abs() to float and double
    
    https://bugzilla.gnome.org/show_bug.cgi?id=764663

 vapi/glib-2.0.vapi |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index b240b6b..a618f61 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -798,6 +798,8 @@ public struct float {
        public static float max (float a, float b);
        [CCode (cname = "CLAMP")]
        public float clamp (float low, float high);
+       [CCode (cname = "fabsf")]
+       public float abs ();
 }
 
 [SimpleType]
@@ -847,6 +849,8 @@ public struct double {
        public static double max (double a, double b);
        [CCode (cname = "CLAMP")]
        public double clamp (double low, double high);
+       [CCode (cname = "fabs")]
+       public double abs ();
 
        [CCode (cname = "G_ASCII_DTOSTR_BUF_SIZE")]
        public const int DTOSTR_BUF_SIZE;


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