ruby-changes:54286
From: nobu <ko1@a...>
Date: Sat, 22 Dec 2018 19:23:11 +0900 (JST)
Subject: [ruby-changes:54286] nobu:r66495 (trunk): Use idException
nobu 2018-12-22 19:23:06 +0900 (Sat, 22 Dec 2018) New Revision: 66495 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66495 Log: Use idException Modified files: trunk/complex.c trunk/object.c trunk/process.c trunk/rational.c Index: rational.c =================================================================== --- rational.c (revision 66494) +++ rational.c (revision 66495) @@ -575,7 +575,7 @@ nurat_f_rational(int argc, VALUE *argv, https://github.com/ruby/ruby/blob/trunk/rational.c#L575 static ID kwds[1]; VALUE exception; if (!kwds[0]) { - kwds[0] = rb_intern_const("exception"); + kwds[0] = idException; } rb_get_kwargs(opts, kwds, 0, 1, &exception); raise = (exception != Qfalse); Index: process.c =================================================================== --- process.c (revision 66494) +++ process.c (revision 66495) @@ -250,7 +250,8 @@ typedef unsigned LONG_LONG unsigned_cloc https://github.com/ruby/ruby/blob/trunk/process.c#L250 typedef void (*sig_t) (int); #endif -static ID id_in, id_out, id_err, id_pid, id_uid, id_gid, id_exception; +#define id_exception idException +static ID id_in, id_out, id_err, id_pid, id_uid, id_gid; static ID id_close, id_child; #ifdef HAVE_SETPGID static ID id_pgroup; @@ -8497,7 +8498,6 @@ Init_process(void) https://github.com/ruby/ruby/blob/trunk/process.c#L8498 id_MACH_ABSOLUTE_TIME_BASED_CLOCK_MONOTONIC = rb_intern("MACH_ABSOLUTE_TIME_BASED_CLOCK_MONOTONIC"); #endif id_hertz = rb_intern("hertz"); - id_exception = rb_intern("exception"); InitVM(process); } Index: object.c =================================================================== --- object.c (revision 66494) +++ object.c (revision 66495) @@ -3213,7 +3213,7 @@ opts_exception_p(VALUE opts) https://github.com/ruby/ruby/blob/trunk/object.c#L3213 static ID kwds[1]; VALUE exception; if (!kwds[0]) { - kwds[0] = rb_intern_const("exception"); + kwds[0] = idException; } rb_get_kwargs(opts, kwds, 0, 1, &exception); return exception != Qfalse; Index: complex.c =================================================================== --- complex.c (revision 66494) +++ complex.c (revision 66495) @@ -438,7 +438,7 @@ nucomp_f_complex(int argc, VALUE *argv, https://github.com/ruby/ruby/blob/trunk/complex.c#L438 static ID kwds[1]; VALUE exception; if (!kwds[0]) { - kwds[0] = rb_intern_const("exception"); + kwds[0] = idException; } rb_get_kwargs(opts, kwds, 0, 1, &exception); raise = (exception != Qfalse); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/