diff options
| author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2024-01-14 17:55:11 +0900 |
|---|---|---|
| committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2024-01-14 17:55:11 +0900 |
| commit | 0610f555ea4f3ba571482f90393fe8c0701cd58a (patch) | |
| tree | ad0a25d4edfe51b545debf9e7e959f82b9f8d417 /parse.y | |
| parent | 4e5754a459ea10c73381b3009bb889e83077575c (diff) | |
Constify `rb_global_parser_config`
Diffstat (limited to 'parse.y')
| -rw-r--r-- | parse.y | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -611,7 +611,7 @@ struct parser_params { struct lex_context ctxt; #ifdef UNIVERSAL_PARSER - rb_parser_config_t *config; + const rb_parser_config_t *config; #endif /* compile_option */ signed int frozen_string_literal:2; /* -1: not specified, 0: false, 1: true */ @@ -15989,7 +15989,7 @@ rb_reserved_word(const char *str, unsigned int len) #ifdef UNIVERSAL_PARSER rb_parser_t * -rb_ruby_parser_allocate(rb_parser_config_t *config) +rb_ruby_parser_allocate(const rb_parser_config_t *config) { /* parser_initialize expects fields to be set to 0 */ rb_parser_t *p = (rb_parser_t *)config->calloc(1, sizeof(rb_parser_t)); @@ -15998,7 +15998,7 @@ rb_ruby_parser_allocate(rb_parser_config_t *config) } rb_parser_t * -rb_ruby_parser_new(rb_parser_config_t *config) +rb_ruby_parser_new(const rb_parser_config_t *config) { /* parser_initialize expects fields to be set to 0 */ rb_parser_t *p = rb_ruby_parser_allocate(config); |
