From d157f37ce58244dc21098caa743b11f430254ad3 Mon Sep 17 00:00:00 2001 From: paladin-t Date: Tue, 19 Jan 2016 13:24:35 +0800 Subject: [PATCH] *refactored struct _routine_t to make sure the _ref_t struct is in front of any referenced struct block. *refactored struct _routine_t to make sure the _ref_t struct is in front of any referenced struct block, thus &_ref_t == &(referenced struct). --- core/my_basic.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/my_basic.c b/core/my_basic.c index acd2a44..bd164ca 100755 --- a/core/my_basic.c +++ b/core/my_basic.c @@ -456,12 +456,6 @@ typedef struct _lambda_t { #endif /* MB_ENABLE_LAMBDA */ typedef struct _routine_t { - char* name; -#ifdef MB_ENABLE_CLASS - _class_t* instance; -#endif /* MB_ENABLE_CLASS */ - bool_t is_cloned; - _invokable_e type; union { struct { struct _running_context_t* scope; @@ -475,6 +469,12 @@ typedef struct _routine_t { mb_routine_func_t entry; } native; } func; + char* name; +#ifdef MB_ENABLE_CLASS + _class_t* instance; +#endif /* MB_ENABLE_CLASS */ + bool_t is_cloned; + _invokable_e type; } _routine_t; #ifdef MB_ENABLE_SOURCE_TRACE