Ticket #681: tt_681_fix.patch

File tt_681_fix.patch, 0.6 KB (added by whiteknight, 6 years ago)

a patch that fixes this particular issue, but doesn't allow IO objects to be defined in PIR generally

  • src/io/api.c

     
    265265{ 
    266266    ASSERT_ARGS(Parrot_io_reads) 
    267267    STRING *result; 
    268     Parrot_PCCINVOKE(interp, pmc, CONST_STRING(interp, "read"), "I->S", 
    269             length, &result); 
     268    Parrot_pcc_invoke_method_from_c_args(interp, pmc, CONST_STRING(interp, "read"), "I->S", length, &result); 
     269    //Parrot_PCCINVOKE(interp, pmc, CONST_STRING(interp, "read"), "I->S", 
     270    //        length, &result); 
    270271    return result; 
    271272} 
    272273