From: Gurusamy Sarathy Date: Fri, 11 Jun 1999 09:09:16 +0000 (+0000) Subject: GDBM tweak X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=caa0600b4c83a09cb365bc88dbf54f31a5992f3c;p=p5sagit%2Fp5-mst-13.2.git GDBM tweak p4raw-id: //depot/perl@3532 --- diff --git a/ext/GDBM_File/GDBM_File.xs b/ext/GDBM_File/GDBM_File.xs index 275c509..9cd71ce 100644 --- a/ext/GDBM_File/GDBM_File.xs +++ b/ext/GDBM_File/GDBM_File.xs @@ -54,7 +54,7 @@ not_here(char *s) * perl free() it when it deallocates the SV, depending on whether * perl uses malloc()/free() or not. */ static void -output_datum(SV *arg, char *str, int size) +output_datum(pTHX_ SV *arg, char *str, int size) { #if !defined(MYMALLOC) || (defined(MYMALLOC) && defined(PERL_POLLUTE_MALLOC)) sv_usepvn(arg, str, size); diff --git a/ext/GDBM_File/typemap b/ext/GDBM_File/typemap index 20d5cd9..4f79ae3 100644 --- a/ext/GDBM_File/typemap +++ b/ext/GDBM_File/typemap @@ -23,10 +23,10 @@ T_DATUM_V $var.dsize = (int)PL_na; OUTPUT T_DATUM_K - output_datum($arg, $var.dptr, $var.dsize); + output_datum(aTHX_ $arg, $var.dptr, $var.dsize); ckFilter($arg, filter_fetch_key,\"filter_fetch_key\"); T_DATUM_V - output_datum($arg, $var.dptr, $var.dsize); + output_datum(aTHX_ $arg, $var.dptr, $var.dsize); ckFilter($arg, filter_fetch_value,\"filter_fetch_value\"); T_PTROBJ sv_setref_pv($arg, dbtype, (void*)$var);