зеркало из https://github.com/github/ruby.git
Shorten `rb_strterm_literal_t` members
This commit is contained in:
Родитель
a075c55d0c
Коммит
5fc9810bf3
|
@ -23,9 +23,9 @@ struct rb_iseq_struct; /* in vm_core.h */
|
|||
/* structs for managing terminator of string literal and heredocment */
|
||||
typedef struct rb_strterm_literal_struct {
|
||||
long nest;
|
||||
long func; /* STR_FUNC_* (e.g., STR_FUNC_ESCAPE and STR_FUNC_EXPAND) */
|
||||
long paren; /* '(' of `%q(...)` */
|
||||
long term; /* ')' of `%q(...)` */
|
||||
int func; /* STR_FUNC_* (e.g., STR_FUNC_ESCAPE and STR_FUNC_EXPAND) */
|
||||
int paren; /* '(' of `%q(...)` */
|
||||
int term; /* ')' of `%q(...)` */
|
||||
} rb_strterm_literal_t;
|
||||
|
||||
typedef struct rb_strterm_heredoc_struct {
|
||||
|
|
6
parse.y
6
parse.y
|
@ -8573,9 +8573,9 @@ parser_string_term(struct parser_params *p, int func)
|
|||
static enum yytokentype
|
||||
parse_string(struct parser_params *p, rb_strterm_literal_t *quote)
|
||||
{
|
||||
int func = (int)quote->func;
|
||||
int term = (int)quote->term;
|
||||
int paren = (int)quote->paren;
|
||||
int func = quote->func;
|
||||
int term = quote->term;
|
||||
int paren = quote->paren;
|
||||
int c, space = 0;
|
||||
rb_encoding *enc = p->enc;
|
||||
rb_encoding *base_enc = 0;
|
||||
|
|
Загрузка…
Ссылка в новой задаче