This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Update to version 1.02
[perl5.git] / ext / DB_File / typemap
index 4acc65e..5ca9c54 100644 (file)
@@ -1,8 +1,8 @@
 # typemap for Perl 5 interface to Berkeley DB
 #
 # written by Paul Marquess (pmarquess@bfsec.bt.co.uk)
-# last modified 23rd June 1994
-# version 0.1
+# last modified 28th June 1996
+# version 0.2
 #
 #################################### DB SECTION
 #
@@ -15,15 +15,12 @@ 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;
        }
-       else
-       {
-           Value =  SvIV($arg) ; 
-           ++ Value ; 
+       else {
+           Value =  GetRecnoKey(db, SvIV($arg)) ; 
            $var.data = & Value; 
            $var.size = (int)sizeof(recno_t);
        }