mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Remove ruby object from string nodes
String nodes holds ruby string object on `VALUE nd_lit`. This commit changes it to `struct rb_parser_string *string` to reduce dependency on ruby object. Sometimes these strings are concatenated with other string therefore string concatenate functions are needed.
This commit is contained in:
parent
f7a407cabd
commit
33c1e082d0
9 changed files with 598 additions and 180 deletions
|
@ -235,6 +235,7 @@ struct rb_imemo_tmpbuf_struct {
|
|||
#define rb_enc_isalnum p->config->enc_isalnum
|
||||
#define rb_enc_precise_mbclen p->config->enc_precise_mbclen
|
||||
#define MBCLEN_CHARFOUND_P p->config->mbclen_charfound_p
|
||||
#define MBCLEN_CHARFOUND_LEN p->config->mbclen_charfound_len
|
||||
#define rb_enc_name p->config->enc_name
|
||||
#define rb_enc_prev_char p->config->enc_prev_char
|
||||
#define rb_enc_get p->config->enc_get
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue