Project

General

Profile

Feature #11431 ยป 0001-rb_parser_compile_-remove-volatile-arg.patch

normalperson (Eric Wong), 08/11/2015 12:07 AM

View differences:

node.h
465 465
NODE *rb_parser_append_print(VALUE, NODE *);
466 466
NODE *rb_parser_while_loop(VALUE, NODE *, int, int);
467 467

  
468
NODE *rb_parser_compile_cstr(volatile VALUE, const char*, const char*, int, int);
469
NODE *rb_parser_compile_string(volatile VALUE, const char*, VALUE, int);
470
NODE *rb_parser_compile_file(volatile VALUE, const char*, VALUE, int);
471
NODE *rb_parser_compile_string_path(volatile VALUE vparser, VALUE fname, VALUE src, int line);
472
NODE *rb_parser_compile_file_path(volatile VALUE vparser, VALUE fname, VALUE input, int line);
468
NODE *rb_parser_compile_cstr(VALUE, const char*, const char*, int, int);
469
NODE *rb_parser_compile_string(VALUE, const char*, VALUE, int);
470
NODE *rb_parser_compile_file(VALUE, const char*, VALUE, int);
471
NODE *rb_parser_compile_string_path(VALUE vparser, VALUE fname, VALUE src, int line);
472
NODE *rb_parser_compile_file_path(VALUE vparser, VALUE fname, VALUE input, int line);
473 473

  
474 474
NODE *rb_compile_cstr(const char*, const char*, int, int);
475 475
NODE *rb_compile_string(const char*, VALUE, int);
parse.y
5590 5590

  
5591 5591
#ifndef RIPPER
5592 5592
static NODE*
5593
parser_compile_string(volatile VALUE vparser, VALUE fname, VALUE s, int line)
5593
parser_compile_string(VALUE vparser, VALUE fname, VALUE s, int line)
5594 5594
{
5595 5595
    struct parser_params *parser;
5596 5596
    NODE *node;
......
5616 5616
}
5617 5617

  
5618 5618
NODE*
5619
rb_parser_compile_string(volatile VALUE vparser, const char *f, VALUE s, int line)
5619
rb_parser_compile_string(VALUE vparser, const char *f, VALUE s, int line)
5620 5620
{
5621 5621
    return rb_parser_compile_string_path(vparser, rb_filesystem_str_new_cstr(f), s, line);
5622 5622
}
5623 5623

  
5624 5624
NODE*
5625
rb_parser_compile_string_path(volatile VALUE vparser, VALUE f, VALUE s, int line)
5625
rb_parser_compile_string_path(VALUE vparser, VALUE f, VALUE s, int line)
5626 5626
{
5627 5627
    must_be_ascii_compatible(s);
5628 5628
    return parser_compile_string(vparser, f, s, line);
......
5636 5636
}
5637 5637

  
5638 5638
NODE*
5639
rb_parser_compile_cstr(volatile VALUE vparser, const char *f, const char *s, int len, int line)
5639
rb_parser_compile_cstr(VALUE vparser, const char *f, const char *s, int len, int line)
5640 5640
{
5641 5641
    VALUE str = rb_str_new(s, len);
5642 5642
    return parser_compile_string(vparser, rb_filesystem_str_new_cstr(f), str, line);
......
5651 5651
NODE*
5652 5652
rb_compile_file(const char *f, VALUE file, int start)
5653 5653
{
5654
    VALUE volatile vparser = rb_parser_new();
5654
    VALUE vparser = rb_parser_new();
5655 5655

  
5656 5656
    return rb_parser_compile_file(vparser, f, file, start);
5657 5657
}
5658 5658

  
5659 5659
NODE*
5660
rb_parser_compile_file(volatile VALUE vparser, const char *f, VALUE file, int start)
5660
rb_parser_compile_file(VALUE vparser, const char *f, VALUE file, int start)
5661 5661
{
5662 5662
    return rb_parser_compile_file_path(vparser, rb_filesystem_str_new_cstr(f), file, start);
5663 5663
}
5664 5664

  
5665 5665
NODE*
5666
rb_parser_compile_file_path(volatile VALUE vparser, VALUE fname, VALUE file, int start)
5666
rb_parser_compile_file_path(VALUE vparser, VALUE fname, VALUE file, int start)
5667 5667
{
5668 5668
    struct parser_params *parser;
5669 5669
    NODE *node;
5670
-