зеркало из https://github.com/github/ruby.git
Remove unused functions from struct `rb_parser_config_struct`
This commit is contained in:
Родитель
f16c6ac4fd
Коммит
381ce130ae
|
@ -376,8 +376,6 @@ static const rb_parser_config_t rb_global_parser_config = {
|
|||
.ary_push = rb_ary_push,
|
||||
.ary_new_from_args = rb_ary_new_from_args,
|
||||
.ary_unshift = rb_ary_unshift,
|
||||
.array_len = rb_array_len,
|
||||
.array_aref = RARRAY_AREF,
|
||||
|
||||
.make_temporary_id = rb_make_temporary_id,
|
||||
.is_local_id = is_local_id2,
|
||||
|
@ -496,7 +494,6 @@ static const rb_parser_config_t rb_global_parser_config = {
|
|||
.rtest = rtest,
|
||||
.nil_p = nil_p,
|
||||
.qnil = Qnil,
|
||||
.qtrue = Qtrue,
|
||||
.qfalse = Qfalse,
|
||||
.eArgError = arg_error,
|
||||
.long2int = rb_long2int,
|
||||
|
|
|
@ -1264,8 +1264,6 @@ typedef struct rb_parser_config_struct {
|
|||
VALUE (*ary_push)(VALUE ary, VALUE elem);
|
||||
VALUE (*ary_new_from_args)(long n, ...);
|
||||
VALUE (*ary_unshift)(VALUE ary, VALUE item);
|
||||
long (*array_len)(VALUE a);
|
||||
VALUE (*array_aref)(VALUE, long);
|
||||
|
||||
/* Symbol */
|
||||
ID (*make_temporary_id)(size_t n);
|
||||
|
@ -1404,7 +1402,6 @@ typedef struct rb_parser_config_struct {
|
|||
int (*rtest)(VALUE obj);
|
||||
int (*nil_p)(VALUE obj);
|
||||
VALUE qnil;
|
||||
VALUE qtrue;
|
||||
VALUE qfalse;
|
||||
VALUE (*eArgError)(void);
|
||||
int (*long2int)(long);
|
||||
|
|
|
@ -95,9 +95,6 @@
|
|||
#undef rb_ary_new_from_args
|
||||
#define rb_ary_new_from_args p->config->ary_new_from_args
|
||||
#define rb_ary_unshift p->config->ary_unshift
|
||||
#undef RARRAY_LEN
|
||||
#define RARRAY_LEN p->config->array_len
|
||||
#define RARRAY_AREF p->config->array_aref
|
||||
|
||||
#define rb_make_temporary_id p->config->make_temporary_id
|
||||
#define is_local_id p->config->is_local_id
|
||||
|
@ -229,8 +226,6 @@
|
|||
#define NIL_P p->config->nil_p
|
||||
#undef Qnil
|
||||
#define Qnil p->config->qnil
|
||||
#undef Qtrue
|
||||
#define Qtrue p->config->qtrue
|
||||
#undef Qfalse
|
||||
#define Qfalse p->config->qfalse
|
||||
#define rb_eArgError p->config->eArgError()
|
||||
|
|
Загрузка…
Ссылка в новой задаче