File tree Expand file tree Collapse file tree 3 files changed +0
-36
lines changed Expand file tree Collapse file tree 3 files changed +0
-36
lines changed Original file line number Diff line number Diff line change @@ -297,12 +297,6 @@ rbool(VALUE v)
297
297
return RBOOL (v );
298
298
}
299
299
300
- static int
301
- undef_p (VALUE v )
302
- {
303
- return RB_UNDEF_P (v );
304
- }
305
-
306
300
static int
307
301
rtest (VALUE obj )
308
302
{
@@ -357,18 +351,6 @@ rb_errno_ptr2(void)
357
351
return rb_errno_ptr ();
358
352
}
359
353
360
- static int
361
- fixnum_p (VALUE obj )
362
- {
363
- return (int )RB_FIXNUM_P (obj );
364
- }
365
-
366
- static int
367
- symbol_p (VALUE obj )
368
- {
369
- return (int )RB_SYMBOL_P (obj );
370
- }
371
-
372
354
static void *
373
355
zalloc (size_t elemsiz )
374
356
{
@@ -447,17 +429,13 @@ static const rb_parser_config_t rb_global_parser_config = {
447
429
.compile_callback = rb_suppress_tracing ,
448
430
.reg_named_capture_assign = reg_named_capture_assign ,
449
431
450
- .fixnum_p = fixnum_p ,
451
- .symbol_p = symbol_p ,
452
-
453
432
.attr_get = rb_attr_get ,
454
433
455
434
.ary_new = rb_ary_new ,
456
435
.ary_push = rb_ary_push ,
457
436
.ary_new_from_args = rb_ary_new_from_args ,
458
437
.ary_unshift = rb_ary_unshift ,
459
438
.ary_new2 = rb_ary_new2 ,
460
- .ary_clear = rb_ary_clear ,
461
439
.ary_modify = rb_ary_modify ,
462
440
.array_len = rb_array_len ,
463
441
.array_aref = RARRAY_AREF ,
@@ -586,7 +564,6 @@ static const rb_parser_config_t rb_global_parser_config = {
586
564
.strtod = ruby_strtod ,
587
565
588
566
.rbool = rbool ,
589
- .undef_p = undef_p ,
590
567
.rtest = rtest ,
591
568
.nil_p = nil_p ,
592
569
.qnil = Qnil ,
Original file line number Diff line number Diff line change @@ -1248,9 +1248,6 @@ typedef struct rb_parser_config_struct {
1248
1248
VALUE (* compile_callback )(VALUE (* func )(VALUE ), VALUE arg );
1249
1249
NODE * (* reg_named_capture_assign )(struct parser_params * p , VALUE regexp , const rb_code_location_t * loc );
1250
1250
1251
- int (* fixnum_p )(VALUE );
1252
- int (* symbol_p )(VALUE );
1253
-
1254
1251
/* Variable */
1255
1252
VALUE (* attr_get )(VALUE obj , ID id );
1256
1253
@@ -1260,7 +1257,6 @@ typedef struct rb_parser_config_struct {
1260
1257
VALUE (* ary_new_from_args )(long n , ...);
1261
1258
VALUE (* ary_unshift )(VALUE ary , VALUE item );
1262
1259
VALUE (* ary_new2 )(long capa ); // ary_new_capa
1263
- VALUE (* ary_clear )(VALUE ary );
1264
1260
void (* ary_modify )(VALUE ary );
1265
1261
long (* array_len )(VALUE a );
1266
1262
VALUE (* array_aref )(VALUE , long );
@@ -1409,7 +1405,6 @@ typedef struct rb_parser_config_struct {
1409
1405
1410
1406
/* Misc */
1411
1407
VALUE (* rbool )(VALUE );
1412
- int (* undef_p )(VALUE );
1413
1408
int (* rtest )(VALUE obj );
1414
1409
int (* nil_p )(VALUE obj );
1415
1410
VALUE qnil ;
Original file line number Diff line number Diff line change 88
88
#define compile_callback p->config->compile_callback
89
89
#define reg_named_capture_assign p->config->reg_named_capture_assign
90
90
91
- #undef FIXNUM_P
92
- #define FIXNUM_P p->config->fixnum_p
93
- #undef SYMBOL_P
94
- #define SYMBOL_P p->config->symbol_p
95
-
96
91
#define rb_attr_get p->config->attr_get
97
92
98
93
#define rb_ary_new p->config->ary_new
102
97
#define rb_ary_unshift p->config->ary_unshift
103
98
#undef rb_ary_new2
104
99
#define rb_ary_new2 p->config->ary_new2
105
- #define rb_ary_clear p->config->ary_clear
106
100
#define rb_ary_modify p->config->ary_modify
107
101
#undef RARRAY_LEN
108
102
#define RARRAY_LEN p->config->array_len
245
239
246
240
#undef RBOOL
247
241
#define RBOOL p->config->rbool
248
- #undef UNDEF_P
249
- #define UNDEF_P p->config->undef_p
250
242
#undef RTEST
251
243
#define RTEST p->config->rtest
252
244
#undef NIL_P
You can’t perform that action at this time.
0 commit comments