зеркало из https://github.com/github/ruby.git
Remove unused functions from `struct rb_parser_config_struct`
This commit is contained in:
Родитель
d07df8567e
Коммит
cee985ea83
|
@ -250,12 +250,6 @@ reg_named_capture_assign(struct parser_params* p, VALUE regexp, const rb_code_lo
|
||||||
return RNODE_BLOCK(arg.succ_block)->nd_next;
|
return RNODE_BLOCK(arg.succ_block)->nd_next;
|
||||||
}
|
}
|
||||||
|
|
||||||
static VALUE
|
|
||||||
rbool(VALUE v)
|
|
||||||
{
|
|
||||||
return RBOOL(v);
|
|
||||||
}
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
rtest(VALUE obj)
|
rtest(VALUE obj)
|
||||||
{
|
{
|
||||||
|
@ -499,7 +493,6 @@ static const rb_parser_config_t rb_global_parser_config = {
|
||||||
.scan_digits = ruby_scan_digits,
|
.scan_digits = ruby_scan_digits,
|
||||||
.strtod = ruby_strtod,
|
.strtod = ruby_strtod,
|
||||||
|
|
||||||
.rbool = rbool,
|
|
||||||
.rtest = rtest,
|
.rtest = rtest,
|
||||||
.nil_p = nil_p,
|
.nil_p = nil_p,
|
||||||
.qnil = Qnil,
|
.qnil = Qnil,
|
||||||
|
|
|
@ -1401,7 +1401,6 @@ typedef struct rb_parser_config_struct {
|
||||||
double (*strtod)(const char *s00, char **se);
|
double (*strtod)(const char *s00, char **se);
|
||||||
|
|
||||||
/* Misc */
|
/* Misc */
|
||||||
VALUE (*rbool)(VALUE);
|
|
||||||
int (*rtest)(VALUE obj);
|
int (*rtest)(VALUE obj);
|
||||||
int (*nil_p)(VALUE obj);
|
int (*nil_p)(VALUE obj);
|
||||||
VALUE qnil;
|
VALUE qnil;
|
||||||
|
|
|
@ -223,8 +223,6 @@
|
||||||
#define ruby_scan_digits p->config->scan_digits
|
#define ruby_scan_digits p->config->scan_digits
|
||||||
#define strtod p->config->strtod
|
#define strtod p->config->strtod
|
||||||
|
|
||||||
#undef RBOOL
|
|
||||||
#define RBOOL p->config->rbool
|
|
||||||
#undef RTEST
|
#undef RTEST
|
||||||
#define RTEST p->config->rtest
|
#define RTEST p->config->rtest
|
||||||
#undef NIL_P
|
#undef NIL_P
|
||||||
|
|
Загрузка…
Ссылка в новой задаче