From: Ilya Zakharevich Date: Thu, 10 Oct 1996 02:32:22 +0000 (-0400) Subject: perl 5.003_07: lib/ExtUtils/typemap X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1cc23d7f6e6dd2c07aa1fd9e9289c2d7a168f9f9;p=p5sagit%2Fp5-mst-13.2.git perl 5.003_07: lib/ExtUtils/typemap Date: Wed, 9 Oct 1996 22:32:22 -0400 (EDT) From: Ilya Zakharevich `bool' entry added. --- diff --git a/lib/ExtUtils/typemap b/lib/ExtUtils/typemap index a9733d0..14d1222 100644 --- a/lib/ExtUtils/typemap +++ b/lib/ExtUtils/typemap @@ -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