Skip to content

Commit

Permalink
Fix arg marshalling from Parrot to Perl 5 enough for something basic …
Browse files Browse the repository at this point in the history
…to work.
  • Loading branch information
jnthn committed Mar 12, 2010
1 parent 9e954eb commit 71c923a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/pmc/p5invocation.pmc
Expand Up @@ -164,7 +164,7 @@ Handles the actual invocation.
char *c_name;
struct sv *invocant_sv;
PMC *invocant_ns;
int num_returns, i;
int num_returns, num_pos, i;
PMC *p5i, *results, *ns, *ns_key, *return_helper;
PMC *capture, *named_names, *named_args, *iter;
PerlInterpreter *my_perl;
Expand Down Expand Up @@ -207,9 +207,10 @@ Handles the actual invocation.
}

/* Stick on positional arguments. */
iter = VTABLE_get_iter(interp, capture);
while (VTABLE_get_bool(interp, iter)) {
PMC *pos_arg = VTABLE_shift_pmc(interp, iter);
i = 0;
num_pos = VTABLE_elements(interp, capture);
for (i = 0; i < num_pos; i++) {
PMC *pos_arg = VTABLE_get_pmc_keyed_int(interp, capture, i);
XPUSHs(marshall_arg(interp, my_perl, pos_arg));
}

Expand Down

0 comments on commit 71c923a

Please sign in to comment.