Refactor with different names.
MODIFY
include/mruby/boxing_no.h
include/mruby/boxing_no.h
#define MRB_FIXNUM_SHIFT 0
#define MRB_TT_HAS_BASIC MRB_TT_OBJECT
-union mrb_value_value {
+union mrb_value_union {
#ifndef MRB_WITHOUT_FLOAT
mrb_float f;
#endif
@@ -20,7 +20,7 @@ union mrb_value_value {
};
typedef struct mrb_value {
- union mrb_value_value value;
+ union mrb_value_union value;
enum mrb_vtype tt;
} mrb_value;

MODIFY
include/mruby/error.h
include/mruby/error.h
@@ -44,21 +44,21 @@ struct RBreak {
struct RBreak {
MRB_OBJECT_HEADER;
struct RProc *proc;
- union mrb_value_value val_val;
+ union mrb_value_union value;
};
#define RBREAK_VALUE_TT_MASK ((1 << 8) - 1)
static inline mrb_value
mrb_break_value_get(struct RBreak *brk)
{
mrb_value val;
- val.value = brk->val_val;
+ val.value = brk->value;
val.tt = brk->flags & RBREAK_VALUE_TT_MASK;
return val;
}
static inline void
mrb_break_value_set(struct RBreak *brk, mrb_value val)
{
- brk->val_val = val.value;
+ brk->val_union = val.value;
brk->flags &= ~RBREAK_VALUE_TT_MASK;
brk->flags |= val.tt;
}

Refactor #4662 with different names.