[perl-Glib] Simplify the previous commit by using built-in the 'char' typemap



commit d413d8ef6cbe8c01ba8d3c8ecfdcf23eb8662e4c
Author: Torsten Schönfeld <kaffeetisch gmx de>
Date:   Wed Jul 1 21:45:41 2015 +0200

    Simplify the previous commit by using built-in the 'char' typemap

 GVariant.xs |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)
---
diff --git a/GVariant.xs b/GVariant.xs
index 7fddee8..733ec7a 100644
--- a/GVariant.xs
+++ b/GVariant.xs
@@ -277,18 +277,7 @@ gboolean g_variant_is_of_type (GVariant *value, const GVariantType *type);
 
 gboolean g_variant_is_container (GVariant *value);
 
-const char * g_variant_classify (GVariant *value);
-    PREINIT:
-       char vclass_char[2];
-    CODE:
-       /* g_variant_classify's return value is of type GVariantClass, which is
-        * probably wider than a char, so we must not treat its address as a
-        * string on big-endian machines. */
-       vclass_char[0] = g_variant_classify (value);
-       vclass_char[1] = 0;
-       RETVAL = vclass_char;
-    OUTPUT:
-       RETVAL
+char g_variant_classify (GVariant *value);
 
 GVariant_noinc * g_variant_new_boolean (class, gboolean value);
     C_ARGS:


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