• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

mrubyを超漢字で動作させる


Commit MetaInfo

Révision676c22c9446c9498aee459aba8d613504ce2bafa (tree)
l'heure2017-05-20 00:20:58
Auteurornse01 <ornse01@user...>
Commiterornse01

Message de Log

fix for gcc 2.95.2

Change Summary

Modification

--- a/include/mruby/gc.h
+++ b/include/mruby/gc.h
@@ -38,7 +38,7 @@ typedef struct mrb_heap_page {
3838 struct mrb_heap_page *free_next;
3939 struct mrb_heap_page *free_prev;
4040 mrb_bool old:1;
41- void *objects[];
41+ void *objects[0];
4242 } mrb_heap_page;
4343
4444 typedef struct mrb_gc {
--- a/src/fmt_fp.c
+++ b/src/fmt_fp.c
@@ -87,7 +87,7 @@ fmt_u(uint32_t x, char *s)
8787 * depends on the float.h constants being right. If they are wrong, it
8888 * may overflow the stack. */
8989 #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)];
9191 #endif
9292
9393 static int
--- a/src/pool.c
+++ b/src/pool.c
@@ -26,7 +26,7 @@ struct mrb_pool_page {
2626 size_t offset;
2727 size_t len;
2828 void *last;
29- char page[];
29+ char page[0];
3030 };
3131
3232 struct mrb_pool {
--- a/src/state.c
+++ b/src/state.c
@@ -63,7 +63,7 @@ mrb_default_allocf(mrb_state *mrb, void *p, size_t size, void *ud)
6363
6464 struct alloca_header {
6565 struct alloca_header *next;
66- char buf[];
66+ char buf[0];
6767 };
6868
6969 MRB_API void*