mrubyを超漢字で動作させる
Révision | 676c22c9446c9498aee459aba8d613504ce2bafa (tree) |
---|---|
l'heure | 2017-05-20 00:20:58 |
Auteur | ornse01 <ornse01@user...> |
Commiter | ornse01 |
fix for gcc 2.95.2
@@ -38,7 +38,7 @@ typedef struct mrb_heap_page { | ||
38 | 38 | struct mrb_heap_page *free_next; |
39 | 39 | struct mrb_heap_page *free_prev; |
40 | 40 | mrb_bool old:1; |
41 | - void *objects[]; | |
41 | + void *objects[0]; | |
42 | 42 | } mrb_heap_page; |
43 | 43 | |
44 | 44 | typedef struct mrb_gc { |
@@ -87,7 +87,7 @@ fmt_u(uint32_t x, char *s) | ||
87 | 87 | * depends on the float.h constants being right. If they are wrong, it |
88 | 88 | * may overflow the stack. */ |
89 | 89 | #if LDBL_MANT_DIG == 53 |
90 | -typedef char compiler_defines_long_double_incorrectly[9-(int)sizeof(long double)]; | |
90 | +//typedef char compiler_defines_long_double_incorrectly[9-(int)sizeof(long double)]; | |
91 | 91 | #endif |
92 | 92 | |
93 | 93 | static int |
@@ -26,7 +26,7 @@ struct mrb_pool_page { | ||
26 | 26 | size_t offset; |
27 | 27 | size_t len; |
28 | 28 | void *last; |
29 | - char page[]; | |
29 | + char page[0]; | |
30 | 30 | }; |
31 | 31 | |
32 | 32 | struct mrb_pool { |
@@ -63,7 +63,7 @@ mrb_default_allocf(mrb_state *mrb, void *p, size_t size, void *ud) | ||
63 | 63 | |
64 | 64 | struct alloca_header { |
65 | 65 | struct alloca_header *next; |
66 | - char buf[]; | |
66 | + char buf[0]; | |
67 | 67 | }; |
68 | 68 | |
69 | 69 | MRB_API void* |