Changeset 22796 for v6

Show
Ignore:
Timestamp:
10/28/08 13:25:27 (2 months ago)
Author:
ruoso
Message:

[smop-XS] when p5 releases a smop object, an interpreter loop is called...

Location:
v6/smop/SMOP
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • v6/smop/SMOP/SMOP.xs

    r22795 r22796  
    2222    SMOP__Object* object = (SMOP__Object*)SvIV(value);     
    2323    SMOP_RELEASE(SMOP__GlobalInterpreter,object); 
     24    SMOP_DISPATCH(SMOP__GlobalInterpreter, SMOP_RI(SMOP__GlobalInterpreter), 
     25                  SMOP__ID__loop, SMOP__NATIVE__capture_create(SMOP__GlobalInterpreter, 
     26                                                               SMOP_REFERENCE(SMOP__GlobalInterpreter, SMOP__GlobalInterpreter), 
     27                                                               NULL, NULL)); 
    2428 
    2529SV* 
     
    6771    SV* value = SvRV(self); 
    6872    SMOP__Object* object = (SMOP__Object*)SvIV(value); 
    69     if (SMOP_RI(object) == SMOP__NATIVE__int) { 
     73    if (SMOP_RI(object) == (SMOP__ResponderInterface*)SMOP__NATIVE__int) { 
    7074        RETVAL = SMOP__NATIVE__int_fetch(object); 
    7175    } else { 
  • v6/smop/SMOP/lib/SMOP.pm

    r22794 r22796  
    13131; 
    1414__END__ 
    15 # Below is stub documentation for your module. You'd better edit it! 
    1615 
    1716=head1 NAME 
     
    2928  my $mold = SMOP::Mold->create([$int, $true, $fals],[1,2,3,1,2,3,1,2,3]); 
    3029  my $frame = SMOP::MoldFrame->create($mold); 
    31   my $result = SMOP::Interpreter->goto($frame); 
     30  my $result = SMOP::Interpreter->run($frame); 
    3231 
    3332=head1 DESCRIPTION