Project

General

Profile

Feature #2674 » iseq_io.diff

IOを受け付けるIseq - Glass_saga (Masaki Matsushita), 07/01/2012 10:57 PM

View differences:

iseq.c
if ((state = EXEC_TAG()) == 0) {
int ln = NUM2INT(line);
const char *fn = StringValueCStr(file);
NODE *node = parse_string(StringValue(src), fn, ln);
NODE *node;
rb_compile_option_t option;
make_compile_option(&option, opt);
if (RB_TYPE_P((src), T_FILE))
node = rb_compile_file(fn, src, ln);
else
node = parse_string(StringValue(src), fn, ln);
if (base_block && base_block->iseq) {
iseqval = rb_iseq_new_with_opt(node, base_block->iseq->location.label,
file, absolute_path, line, base_block->iseq->self,
(1-1/2)