Commit beafed11 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #2481 from take-cheeze/move_word_box_struct

Move word boxing structs to "mruby/boxing_word.h".
parents a3ac3623 fc8b48fa
...@@ -11,6 +11,16 @@ ...@@ -11,6 +11,16 @@
# error MRB_INT16 is too small for MRB_WORD_BOXING. # error MRB_INT16 is too small for MRB_WORD_BOXING.
#endif #endif
struct RFloat {
MRB_OBJECT_HEADER;
mrb_float f;
};
struct RCptr {
MRB_OBJECT_HEADER;
void *p;
};
#define MRB_FIXNUM_SHIFT 1 #define MRB_FIXNUM_SHIFT 1
#define MRB_TT_HAS_BASIC MRB_TT_FLOAT #define MRB_TT_HAS_BASIC MRB_TT_FLOAT
......
...@@ -55,14 +55,4 @@ struct RFiber { ...@@ -55,14 +55,4 @@ struct RFiber {
struct mrb_context *cxt; struct mrb_context *cxt;
}; };
struct RFloat {
MRB_OBJECT_HEADER;
mrb_float f;
};
struct RCptr {
MRB_OBJECT_HEADER;
void *p;
};
#endif /* MRUBY_OBJECT_H */ #endif /* MRUBY_OBJECT_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment