summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-05-06 00:52:22 +0900
committerYukihiro Matsumoto <[email protected]>2012-05-06 00:52:22 +0900
commitb0e94d8c146fe411a44b9e744362fb91ad9bee88 (patch)
treeba925d457ee1afa9b2760d3febcb195fb3faf715 /include
parent55da4cdc86d7c766c78a3f4c980a63eb7d991aa1 (diff)
downloadmruby-b0e94d8c146fe411a44b9e744362fb91ad9bee88.tar.gz
mruby-b0e94d8c146fe411a44b9e744362fb91ad9bee88.zip
Time class available; based on code from @beoran; sorry for jumbo patch
Diffstat (limited to 'include')
-rw-r--r--include/mruby.h2
-rw-r--r--include/mruby/object.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/mruby.h b/include/mruby.h
index 970ef6a60..6ed8e4878 100644
--- a/include/mruby.h
+++ b/include/mruby.h
@@ -68,7 +68,7 @@ typedef struct mrb_value {
mrb_int i;
mrb_sym sym;
} value;
- int8_t tt;
+ enum mrb_vtype tt:8;
} mrb_value;
#define mrb_type(o) (o).tt
diff --git a/include/mruby/object.h b/include/mruby/object.h
index b5a4ca6d8..0c3f3a6dd 100644
--- a/include/mruby/object.h
+++ b/include/mruby/object.h
@@ -8,7 +8,7 @@
#define MRUBY_OBJECT_H
#define MRUBY_OBJECT_HEADER \
- int8_t tt;\
+ enum mrb_vtype tt:8; \
int color:3;\
unsigned int flags:21;\
struct RClass *c;\