Thread-awareness from Doug MacEachern.
Jarkko Hietaniemi [Tue, 17 Apr 2001 11:59:05 +0000 (11:59 +0000)]
p4raw-id: //depot/perl@9724

ext/List/Util/Util.xs

index 1997b68..1e6d8f6 100644 (file)
@@ -180,7 +180,7 @@ CODE:
        GvSV(agv) = ret;
        GvSV(bgv) = ST(index);
        PL_op = reducecop;
-       CALLRUNOPS();
+       CALLRUNOPS(aTHX);
        ret = *PL_stack_sp;
     }
     ST(0) = ret;
@@ -216,7 +216,7 @@ CODE:
     for(index = 1 ; index < items ; index++) {
        GvSV(PL_defgv) = ST(index);
        PL_op = reducecop;
-       CALLRUNOPS();
+       CALLRUNOPS(aTHX);
        if (SvTRUE(*PL_stack_sp)) {
          ST(0) = ST(index);
          XSRETURN(1);