From e5d42d8663b0e2e262b5008512f9117ee3547c20 Mon Sep 17 00:00:00 2001 From: paladin-t Date: Wed, 27 Apr 2016 10:18:47 +0800 Subject: [PATCH] *polished code. --- core/my_basic.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/core/my_basic.c b/core/my_basic.c index 4063a67..9573666 100755 --- a/core/my_basic.c +++ b/core/my_basic.c @@ -10603,13 +10603,12 @@ int mb_begin_module(struct mb_interpreter_t* s, const char* n) { #ifdef MB_ENABLE_MODULE s->with_module = mb_strdup(n, strlen(n) + 1); - - goto _exit; /* Avoid an unreferenced label warning */ #else /* MB_ENABLE_MODULE */ _handle_error_on_obj(s, SE_RN_NOT_SUPPORTED, s->source_file, (_object_t*)0, MB_FUNC_WARNING, _exit, result); -#endif /* MB_ENABLE_MODULE */ _exit: +#endif /* MB_ENABLE_MODULE */ + return result; } @@ -10624,12 +10623,12 @@ int mb_end_module(struct mb_interpreter_t* s) { safe_free(s->with_module); } - goto _exit; /* Avoid an unreferenced label warning */ #else /* MB_ENABLE_MODULE */ _handle_error_on_obj(s, SE_RN_NOT_SUPPORTED, s->source_file, (_object_t*)0, MB_FUNC_WARNING, _exit, result); -#endif /* MB_ENABLE_MODULE */ _exit: +#endif /* MB_ENABLE_MODULE */ + return result; }