diff options
author | Nicholas Clark <nick@ccl4.org> | 2007-12-22 17:00:24 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2007-12-22 17:00:24 +0000 |
commit | bfd025d94e67a140ec0eeee79dfcef213d537327 (patch) | |
tree | 30474f4613349a3cd9ae40f5ed51ab0628239375 /ext/GDBM_File | |
parent | d3f5e39945c1adca90422be3853d860ba9478c11 (diff) | |
download | perl-bfd025d94e67a140ec0eeee79dfcef213d537327.tar.gz |
Exterminate PL_na! Exterminate! Exterminate! Exterminate!
p4raw-id: //depot/perl@32704
Diffstat (limited to 'ext/GDBM_File')
-rw-r--r-- | ext/GDBM_File/typemap | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/ext/GDBM_File/typemap b/ext/GDBM_File/typemap index 3e69721569..71fc285787 100644 --- a/ext/GDBM_File/typemap +++ b/ext/GDBM_File/typemap @@ -16,25 +16,30 @@ FATALFUNC T_OPAQUEPTR INPUT T_DATUM_K DBM_ckFilter($arg, filter_store_key, \"filter_store_key\"); - $var.dptr = SvPVbyte($arg, PL_na); - $var.dsize = (int)PL_na; + { + STRLEN len; + $var.dptr = SvPVbyte($arg, len); + $var.dsize = (int)len; + } T_DATUM_K_C { SV * tmpSV; + STRLEN len; if (db->filter_store_key) { tmpSV = sv_2mortal(newSVsv($arg)); DBM_ckFilter(tmpSV, filter_store_key, \"filter_store_key\"); } else tmpSV = $arg; - $var.dptr = SvPVbyte(tmpSV, PL_na); - $var.dsize = (int)PL_na; + $var.dptr = SvPVbyte(tmpSV, len); + $var.dsize = (int)len; } T_DATUM_V DBM_ckFilter($arg, filter_store_value, \"filter_store_value\"); if (SvOK($arg)) { - $var.dptr = SvPVbyte($arg, PL_na); - $var.dsize = (int)PL_na; + STRLEN len; + $var.dptr = SvPVbyte($arg, len); + $var.dsize = (int)len; } else { $var.dptr = (char *)\"\"; |