perl 5.003_07: lib/ExtUtils/typemap
authorIlya Zakharevich <ilya@math.ohio-state.edu>
Thu, 10 Oct 1996 02:32:22 +0000 (22:32 -0400)
committerAndy Dougherty <doughera@lafcol.lafayette.edu>
Thu, 10 Oct 1996 02:32:22 +0000 (22:32 -0400)
Date: Wed, 9 Oct 1996 22:32:22 -0400 (EDT)
From: Ilya Zakharevich <ilya@math.ohio-state.edu>

`bool' entry added.

lib/ExtUtils/typemap

index a9733d0..14d1222 100644 (file)
@@ -45,6 +45,7 @@ FileHandle            T_PTROBJ
 InputStream            T_IN
 InOutStream            T_INOUT
 OutputStream           T_OUT
+bool                   T_BOOL
 
 #############################################################################
 INPUT
@@ -78,6 +79,8 @@ T_INT
        $var = (int)SvIV($arg)
 T_ENUM
        $var = ($type)SvIV($arg)
+T_BOOL
+       $var = (int)SvIV($arg)
 T_U_INT
        $var = (unsigned int)SvIV($arg)
 T_SHORT
@@ -199,6 +202,8 @@ T_SYSRET
        }
 T_ENUM
        sv_setiv($arg, (IV)$var);
+T_BOOL
+       $arg = $var ? &sv_yes : &sv_no;
 T_U_INT
        sv_setiv($arg, (IV)$var);
 T_SHORT