[libglib-perl] 03/25: Simplify the previous commit by using built-in the 'char' typemap
Intrigeri
intrigeri at moszumanska.debian.org
Tue Dec 29 18:43:53 UTC 2015
This is an automated email from the git hooks/post-receive script.
intrigeri pushed a commit to branch experimental
in repository libglib-perl.
commit d413d8ef6cbe8c01ba8d3c8ecfdcf23eb8662e4c
Author: Torsten Schönfeld <kaffeetisch at 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 file changed, 1 insertion(+), 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:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libglib-perl.git
More information about the Pkg-perl-cvs-commits
mailing list