Changeset 4199 for src/perl5

Show
Ignore:
Timestamp:
05/31/05 10:55:29 (4 years ago)
Author:
clkao
svk:copy_cache_prev:
5793
Message:

Fix perl5_apply returning multiple values and the use in mkval generating closure.

Location:
src/perl5
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • src/perl5/perl5.c

    r4184 r4199  
    250250        out[i] = newSVsv(POPs); 
    251251    } 
     252    out[count] = NULL; 
    252253 
    253254    PUTBACK; 
  • src/perl5/pugsembed.c

    r3956 r4199  
    2525    if (SvTRUE(pugs_Apply(pugs_PvToVal("&isa"), val, isa, G_SCALAR))) { 
    2626        if (__init) { 
     27            SV **rv; 
    2728            stack[0] = sv; 
    2829            stack[1] = NULL; 
    29             /* fprintf (stderr, "isa code\n"); */ 
    30             sv = perl5_apply(newSVpv("code", 0), newSVpv("pugs::guts", 0), stack, NULL, G_SCALAR); 
     30            rv = perl5_apply(newSVpv("code", 0), newSVpv("pugs::guts", 0), stack, NULL, G_SCALAR); 
     31            sv = rv[0]; 
    3132        } 
    3233        else {