Changeset 3939 for src/perl5

Show
Ignore:
Timestamp:
05/27/05 02:35:11 (4 years ago)
Author:
clkao
svk:copy_cache_prev:
5515
Message:

autrijus++ needs to learn how to use pointers.

Location:
src/perl5
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • src/perl5/perl5.c

    r3938 r3939  
    135135 
    136136    exitstatus = perl_parse(my_perl, xs_init, argc, argv, (char **)NULL); 
    137     fprintf(stderr, "hello, perl5: %d\n", exitstatus); 
    138137 
    139138    if (exitstatus == 0) 
     
    204203perl5_apply(SV *sub, SV *inv, SV** args, SV *env, int cxt) 
    205204{ 
    206     SV *arg; 
     205    SV **arg; 
    207206    SV *rv; 
    208207    SV *sv; 
     
    223222        XPUSHs(inv); 
    224223    } 
    225     for (arg = args; arg != NULL; arg++) { 
    226         XPUSHs(arg); 
     224    for (arg = args; *arg != NULL; arg++) { 
     225        XPUSHs(*arg); 
    227226    } 
    228227    PUTBACK; 
  • src/perl5/pugsembed.c

    r3938 r3939  
    2727        fprintf(stderr, "got a code!!\n"); 
    2828        stack[0] = sv; 
     29        stack[1] = NULL; 
    2930        sv = perl5_apply(newSVpv("code", 0), newSVpv("pugs::guts", 0), stack, NULL, G_SCALAR); 
    3031    }