X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=ext%2FDB_File%2Ftypemap;h=42c49d7dd125983bf881913266735ab3b4496061;hb=276493cb78ba879defeed992c4543a6fe30f98ce;hp=4acc65e0781d9b33a69115f2160254b04e072f57;hpb=8e07c86ebc651fe92eb7e3b25f801f57cfb8dd6f;p=p5sagit%2Fp5-mst-13.2.git diff --git a/ext/DB_File/typemap b/ext/DB_File/typemap index 4acc65e..42c49d7 100644 --- a/ext/DB_File/typemap +++ b/ext/DB_File/typemap @@ -1,8 +1,8 @@ -# typemap for Perl 5 interface to Berkeley DB +# typemap for Perl 5 interface to Berkeley # # written by Paul Marquess (pmarquess@bfsec.bt.co.uk) -# last modified 23rd June 1994 -# version 0.1 +# last modified 13th May 1998 +# version 1.59 # #################################### DB SECTION # @@ -15,21 +15,21 @@ DBTKEY T_dbtkeydatum INPUT T_dbtkeydatum - if (db->type != DB_RECNO) - { + if (db->type != DB_RECNO) { $var.data = SvPV($arg, na); $var.size = (int)na; + DBT_flags($var); } - else - { - Value = SvIV($arg) ; - ++ Value ; + else { + Value = GetRecnoKey(db, SvIV($arg)) ; $var.data = & Value; $var.size = (int)sizeof(recno_t); + DBT_flags($var); } T_dbtdatum $var.data = SvPV($arg, na); $var.size = (int)na; + DBT_flags($var); OUTPUT @@ -37,3 +37,5 @@ T_dbtkeydatum OutputKey($arg, $var) T_dbtdatum OutputValue($arg, $var) +T_PTROBJ + sv_setref_pv($arg, dbtype, (void*)$var);