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/NDBM_File | |
parent | d3f5e39945c1adca90422be3853d860ba9478c11 (diff) | |
download | perl-bfd025d94e67a140ec0eeee79dfcef213d537327.tar.gz |
Exterminate PL_na! Exterminate! Exterminate! Exterminate!
p4raw-id: //depot/perl@32704
Diffstat (limited to 'ext/NDBM_File')
-rw-r--r-- | ext/NDBM_File/typemap | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/ext/NDBM_File/typemap b/ext/NDBM_File/typemap index b07695d66d..ad62e0aaf2 100644 --- a/ext/NDBM_File/typemap +++ b/ext/NDBM_File/typemap @@ -15,14 +15,18 @@ 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; + DBM_ckFilter($arg, filter_store_key, \"filter_store_key\"); + $var.dptr = SvPVbyte($arg, 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 *)\"\"; |