Changeset 374 for asp3_tinet_ecnl_rx/trunk/asp3_dcre/tecsgen/tecs/mruby
- Timestamp:
- Apr 5, 2019, 9:26:53 PM (5 years ago)
- Location:
- asp3_tinet_ecnl_rx/trunk/asp3_dcre/tecsgen/tecs/mruby
- Files:
-
- 10 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
asp3_tinet_ecnl_rx/trunk/asp3_dcre/tecsgen/tecs/mruby/TECSPointer.h
r359 r374 102 102 { \ 103 103 if( sizeof( type ) > sizeof( mrb_int ) ){ \ 104 if( val > = (((type)1) << (sizeof(mrb_int)*8-1))\105 || val < -(((type)1) << (sizeof(mrb_int)*8-1))) \104 if( val > TYPE ## _MAX \ 105 || val < TYPE ## _MIN ) \ 106 106 /* '=' unecessary for negative value */ \ 107 107 /* ignore warning on int32_t */ \ … … 126 126 { \ 127 127 if( sizeof( type ) > sizeof( mrb_int ) ){ \ 128 if( val >= (((type)1) << (sizeof(mrb_int)*8)))\128 if( val > TYPE ## _MAX ) \ 129 129 /* '=' unecessary for negative value */ \ 130 130 /* ignore warning on int32_t */ \ -
asp3_tinet_ecnl_rx/trunk/asp3_dcre/tecsgen/tecs/mruby/mrubyVMs.cdl
r359 r374 37 37 38 38 /* 39 * tools/mruby/mruby.c から cInit_initializeBridge( mrb ) を呼び出すように変更したもの 39 * POSIX 環境用の VM 40 * mrbgems の mrbgems/mruby-bin-mruby/tools/mruby/mruby.c を参考に作成したもの 40 41 */ 41 42 namespace nMruby{ -
asp3_tinet_ecnl_rx/trunk/asp3_dcre/tecsgen/tecs/mruby/tecs_mruby.h
r359 r374 1 1 /* 2 * Copyright (C) 2008-201 7by TOPPERS Project2 * Copyright (C) 2008-2019 by TOPPERS Project 3 3 * 4 4 * 上記著作権者は,以下の(1)~(4)の条件を満たす場合に限り,本ソフトウェ … … 46 46 #include "mruby/irep.h" 47 47 #include "mruby/dump.h" 48 #include "mruby/proc.h" 48 49 49 50 #include "TECSPointer.h" 50 51 #include "TECSStruct.h" 51 52 52 #if ! defined( MRUBY_RELEASE_MAJOR ) || MRUBY_RELEASE_MAJOR == 1 && MRUBY_RELEASE_MINOR < 253 #ifndef MRB_ARGS_REQ54 #define MRB_ARGS_REQ(n) ARGS_REQ(n)55 #define MRB_ARGS_OPT(n) ARGS_OPT(n)56 #define MRB_ARGS_ARG(n1,n2) ARGS_ARG(n1,n2)57 #define MRB_ARGS_REST() ARGS_REST()58 #define MRB_ARGS_POST(n) ARGS_POST(n)59 #define MRB_ARGS_KEY(n1,n2) ARGS_KEY(n1,n2)60 #define MRB_ARGS_BLOCK() ARGS_BLOCK()61 #define MRB_ARGS_ANY() ARGS_ANY()62 #define MRB_ARGS_NONE() ARGS_NONE()63 #endif /* MRB_ARGS_REQ */64 #endif65 53 66 #if ! defined( MRUBY_RELEASE_MAJOR ) 67 #define mrb_float_value( mrb, val ) mrb_float_value( val ) 68 #endif 69 70 #else 54 #else /* TECSGEN */ 71 55 72 56 /* 73 * fake tecsgen because tecsgen cannot accept actual mruby.h in case of below.57 * fake definition because tecsgen cannot accept actual mruby.h in case of below. 74 58 * types: long long, long long int 75 59 * special keyword __attribute__(x), __extension__ … … 78 62 typedef int mrb_irep; 79 63 typedef int mrb_context; 80 struct RClass { int dummy;};81 struct RProc { int dummy;};64 struct RClass {uint32_t gcnext;}; // actual definition: struct RBasic *gcnext 65 struct RProc {uint32_t gcnext;}; // actual definition: struct RBasic *gcnext 82 66 83 67 typedef int CELLCB; 68 69 #define GET_SET_BOOL( Type, type ) 70 #define GET_SET_CHAR( Type, type ) 71 #define GET_SET_INT( Type, type ) 72 #define GET_SET_FLOAT( Type, type ) 73 #define POINTER_CLASS( Type, type ) 74 #define CHECK_AND_GET_POINTER( Type, type ) 84 75 85 76 #endif /* TECSGEN */
Note:
See TracChangeset
for help on using the changeset viewer.