* 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);
$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);