From 5f8c901094cb817bf3436faa546c966b39bfe134 Mon Sep 17 00:00:00 2001 From: tony Date: Wed, 7 Oct 2015 14:38:47 +0800 Subject: [PATCH] *improved printing collection info. --- core/my_basic.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/core/my_basic.c b/core/my_basic.c index 005cd77..78a14b0 100755 --- a/core/my_basic.c +++ b/core/my_basic.c @@ -8964,6 +8964,16 @@ int _std_print(mb_interpreter_t* s, void** l) { } } else if(val_ptr->type == _DT_TYPE) { _get_printer(s)(mb_get_type_string(val_ptr->data.type)); +#ifdef MB_ENABLE_COLLECTION_LIB + } else if(val_ptr->type == _DT_LIST) { + _get_printer(s)(mb_get_type_string(_internal_type_to_public_type(val_ptr->type))); + } else if(val_ptr->type == _DT_LIST_IT) { + _get_printer(s)(mb_get_type_string(_internal_type_to_public_type(val_ptr->type))); + } else if(val_ptr->type == _DT_DICT) { + _get_printer(s)(mb_get_type_string(_internal_type_to_public_type(val_ptr->type))); + } else if(val_ptr->type == _DT_DICT_IT) { + _get_printer(s)(mb_get_type_string(_internal_type_to_public_type(val_ptr->type))); +#endif /* MB_ENABLE_COLLECTION_LIB */ } if(result != MB_FUNC_OK) goto _exit;