iseq_io.diff

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

Download (748 Bytes)

View differences:

iseq.c
580 580
    if ((state = EXEC_TAG()) == 0) {
581 581
	int ln = NUM2INT(line);
582 582
	const char *fn = StringValueCStr(file);
583
	NODE *node = parse_string(StringValue(src), fn, ln);
583
	NODE *node;
584 584
	rb_compile_option_t option;
585 585

  
586 586
	make_compile_option(&option, opt);
587 587

  
588
	if (RB_TYPE_P((src), T_FILE))
589
	    node = rb_compile_file(fn, src, ln);
590
	else
591
	    node = parse_string(StringValue(src), fn, ln);
592

  
588 593
	if (base_block && base_block->iseq) {
589 594
	    iseqval = rb_iseq_new_with_opt(node, base_block->iseq->location.label,
590 595
					   file, absolute_path, line, base_block->iseq->self,