aboutsummaryrefslogtreecommitdiffstats
path: root/typemap
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2016-10-18 03:09:59 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2016-10-18 04:13:05 +0200
commit12ff33c3fbf1dfc2dce60f6a75bb546ca3bf6735 (patch)
tree8ca1a0c942a613659593ba57fe69d2dce370e9f9 /typemap
parentdb118471a871d0ca2af9b178b2f6e910e30fb0a6 (diff)
downloadperl-URPM-12ff33c3fbf1dfc2dce60f6a75bb546ca3bf6735.tar
perl-URPM-12ff33c3fbf1dfc2dce60f6a75bb546ca3bf6735.tar.gz
perl-URPM-12ff33c3fbf1dfc2dce60f6a75bb546ca3bf6735.tar.bz2
perl-URPM-12ff33c3fbf1dfc2dce60f6a75bb546ca3bf6735.tar.xz
perl-URPM-12ff33c3fbf1dfc2dce60f6a75bb546ca3bf6735.zip
add support for int64, using Math::Int64 C API
previously it was missing on 32bit arches
Diffstat (limited to 'typemap')
-rw-r--r--typemap18
1 files changed, 18 insertions, 0 deletions
diff --git a/typemap b/typemap
index 031189e..7f688cc 100644
--- a/typemap
+++ b/typemap
@@ -1,3 +1,21 @@
URPM::DB T_PTROBJ
URPM::Transaction T_PTROBJ
URPM::Package T_PTROBJ
+
+TYPEMAP
+int64_t T_INT64
+uint64_t T_UINT64
+
+INPUT
+T_INT64
+ $var = SvI64($arg);
+
+T_UINT64
+ $var = SvU64($arg);
+
+OUTPUT
+T_INT64
+ $arg = newSVi64($var);
+
+T_UINT64
+ $arg = newSVu64($var);