Changeset 20450 for perl5

Show
Ignore:
Timestamp:
05/18/08 18:15:11 (8 months ago)
Author:
clkao
Message:

Make Data::Bind compile cleanly.

Location:
perl5/Data-Bind
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • perl5/Data-Bind/Bind.xs

    r20440 r20450  
    230230    dSP; 
    231231    AV *_defargs = GvAV(PL_defgv); 
    232     AV *av = SvRV(cSVOPx_sv(PL_op)); 
     232    AV *av = (AV *)SvRV(cSVOPx_sv(PL_op)); 
    233233    int i; 
    234234    for (i = 0; i <= av_len(av); ++i) { 
    235235        SV *current_arg = *av_fetch(_defargs, i, 0); 
    236236        SV *entry = *av_fetch(av, i, 0); 
    237         IV order = SvIVX(*av_fetch(SvRV(entry), 0, 0)); 
    238         SV *mode = *av_fetch(SvRV(entry), 1, 0); // XXX: should do SvOK 
    239         SV *default_sub = *av_fetch(SvRV(entry), 2, 0); 
     237        IV order = SvIVX(*av_fetch((AV *)SvRV(entry), 0, 0)); 
     238        SV *mode = *av_fetch((AV *)SvRV(entry), 1, 0); // XXX: should do SvOK 
     239        SV *default_sub = *av_fetch((AV *)SvRV(entry), 2, 0); 
    240240        SAVECLEARSV(PAD_SVl(order)); 
    241241        /* XXX: check if order is over items, if so it means it's empty and we should apply default_sub->() */ 
     
    246246        else { 
    247247            PAD_SVl(order) = SvREFCNT_inc(current_arg); 
     248/* 
     249            PAD_SVl(order) = newSV(0); 
     250            __alias_a_to_b(PAD_SVl(order), current_arg, 0); 
     251*/ 
    248252        } 
    249253    } 
  • perl5/Data-Bind/lib/Data/Bind.pm

    r20331 r20450  
    22use 5.008; 
    33use strict; 
    4 our $VERSION = '0.29'; 
     4our $VERSION = '0.30'; 
    55 
    66use base 'Exporter';