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.h
View file

@ -43,14 +43,14 @@ struct node_buffer_struct {
// Array, whose entry is array
VALUE tokens;
#ifdef UNIVERSAL_PARSER
rb_parser_config_t *config;
const rb_parser_config_t *config;
#endif
};
RUBY_SYMBOL_EXPORT_BEGIN
#ifdef UNIVERSAL_PARSER
rb_ast_t *rb_ast_new(rb_parser_config_t *config);
rb_ast_t *rb_ast_new(const rb_parser_config_t *config);
#else
rb_ast_t *rb_ast_new(void);
#endif