Constify rb_global_parser_config

This commit is contained in:
Nobuyoshi Nakada 2024-01-14 17:55:11 +09:00
parent 4e5754a459
commit 0610f555ea
No known key found for this signature in database
GPG key ID: 3582D74E1FEE4465
5 changed files with 10 additions and 10 deletions

4
node.c
View file

@ -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);