GDBM tweak
Gurusamy Sarathy [Fri, 11 Jun 1999 09:09:16 +0000 (09:09 +0000)]
p4raw-id: //depot/perl@3532

ext/GDBM_File/GDBM_File.xs
ext/GDBM_File/typemap

index 275c509..9cd71ce 100644 (file)
@@ -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);
index 20d5cd9..4f79ae3 100644 (file)
@@ -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);