summaryrefslogtreecommitdiff
path: root/insns.def
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-01-25 03:15:30 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-01-25 03:15:30 +0000
commit1f502d96618aad3b32bd94a8b01081adb2289d25 (patch)
treecdea5f33e1f90a570f854c35fac933d64b3d8164 /insns.def
parentbbba02273937d6f2dc3c3028bd1a4263048583bb (diff)
insns.def: adjust style
* insns.def (opt_mod, opt_aset_with, opt_aref_with, opt_regexpmatch1): adjust style, do not cuddle else up. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'insns.def')
-rw-r--r--insns.def12
1 files changed, 8 insertions, 4 deletions
diff --git a/insns.def b/insns.def
index 50fceb3b56..7942804b6c 100644
--- a/insns.def
+++ b/insns.def
@@ -1550,7 +1550,8 @@ opt_mod
y = FIX2LONG(obj);
if (x > 0 && y > 0) {
val = LONG2FIX(x % y);
- } else {
+ }
+ else {
/* copied from numeric.c#fixdivmod */
long div, mod;
@@ -1914,7 +1915,8 @@ opt_aset_with
{
if (!SPECIAL_CONST_P(recv) && RBASIC_CLASS(recv) == rb_cHash && BASIC_OP_UNREDEFINED_P(BOP_ASET, HASH_REDEFINED_OP_FLAG)) {
rb_hash_aset(recv, key, val);
- } else {
+ }
+ else {
PUSH(recv);
PUSH(rb_str_resurrect(key));
PUSH(val);
@@ -1935,7 +1937,8 @@ opt_aref_with
{
if (!SPECIAL_CONST_P(recv) && RBASIC_CLASS(recv) == rb_cHash && BASIC_OP_UNREDEFINED_P(BOP_AREF, HASH_REDEFINED_OP_FLAG)) {
val = rb_hash_aref(recv, key);
- } else {
+ }
+ else {
PUSH(recv);
PUSH(rb_str_resurrect(key));
CALL_SIMPLE_METHOD(recv);
@@ -2134,7 +2137,8 @@ opt_regexpmatch1
{
if (BASIC_OP_UNREDEFINED_P(BOP_MATCH, REGEXP_REDEFINED_OP_FLAG)) {
val = rb_reg_match(r, obj);
- } else {
+ }
+ else {
val = rb_funcall(r, idEqTilde, 1, obj);
}
}