X-Git-Url: http://git.subgeniuskitty.com/vvhitespace/.git/blobdiff_plain/bf27a699c9ef363c57b1726a26f76e0bc167b83e..140262a9623b3c225a5135b9003526cb6b837926:/vv_interpreter.c diff --git a/vv_interpreter.c b/vv_interpreter.c index dd72781..7705319 100644 --- a/vv_interpreter.c +++ b/vv_interpreter.c @@ -286,13 +286,11 @@ process_imp_flowcontrol(uint8_t * code, size_t * pc, int32_t ** sp, uint32_t * l switch (next_code_byte(code,pc)) { case ' ': /* Jump to a label if TOS == 0 */ - /* TODO: Does WS pop or peek the TOS? */ - if (stack_peek(sp,0) == 0) *pc = labels[parse_label(code, pc)]; + if (stack_pop(sp) == 0) *pc = labels[parse_label(code, pc)]; break; case '\t': /* Jump to a label if TOS < 0. */ - /* TODO: Does WS pop or peek the TOS? */ - if (stack_peek(sp,0) < 0) *pc = labels[parse_label(code, pc)]; + if (stack_pop(sp) < 0) *pc = labels[parse_label(code, pc)]; break; case '\n': /* Return from subroutine. */