summaryrefslogtreecommitdiff
path: root/typemap
diff options
context:
space:
mode:
Diffstat (limited to 'typemap')
-rw-r--r--typemap21
1 files changed, 21 insertions, 0 deletions
diff --git a/typemap b/typemap
new file mode 100644
index 0000000..9965e8f
--- /dev/null
+++ b/typemap
@@ -0,0 +1,21 @@
+Compress::Bzip2 T_PTROBJ
+const char * T_PV
+lzo_byte * T_PV
+lzo_bytep T_PV
+lzo_bytepp T_PV
+lzo_void * T_PV
+lzo_voidp T_PV
+
+lzo_int T_IV
+lzo_int32 T_IV
+lzo_uint T_UV
+lzo_uint32 T_UV
+
+#############################################################################
+INPUT
+T_UV
+ $var = (unsigned long)SvUV($arg)
+#############################################################################
+OUTPUT
+T_UV
+ sv_setuv($arg, (IV)$var);