mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Constify rb_global_parser_config
This commit is contained in:
parent
4e5754a459
commit
0610f555ea
5 changed files with 10 additions and 10 deletions
4
node.c
4
node.c
|
@ -53,7 +53,7 @@ init_node_buffer_list(node_buffer_list_t * nb, node_buffer_elem_t *head, void *x
|
|||
|
||||
#ifdef UNIVERSAL_PARSER
|
||||
static node_buffer_t *
|
||||
rb_node_buffer_new(rb_parser_config_t *config)
|
||||
rb_node_buffer_new(const rb_parser_config_t *config)
|
||||
#else
|
||||
static node_buffer_t *
|
||||
rb_node_buffer_new(void)
|
||||
|
@ -318,7 +318,7 @@ rb_ast_delete_node(rb_ast_t *ast, NODE *n)
|
|||
|
||||
#ifdef UNIVERSAL_PARSER
|
||||
rb_ast_t *
|
||||
rb_ast_new(rb_parser_config_t *config)
|
||||
rb_ast_new(const rb_parser_config_t *config)
|
||||
{
|
||||
node_buffer_t *nb = rb_node_buffer_new(config);
|
||||
return config->ast_new((VALUE)nb);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue