gcc和mdk都能编译成功

This commit is contained in:
andy
2023-11-01 23:51:19 +08:00
parent ddeec88a89
commit 17729e664f
17 changed files with 563 additions and 27 deletions

View File

@@ -135,10 +135,17 @@ static array_def *protu_try_decode(protu_def *p,array_def *data)
(decode_data=p->codec->decode(p,data),strcmp(p->str_err,"ok")!=0))
{
CHECK_DO(decode_data,arr_delete);
#if defined (__CC_ARM)
extern const int codecstruct$$Base;
extern const int codecstruct$$Limit;
codec_item *start=(codec_item *)&codecstruct$$Base;
codec_item *end=(codec_item *)&codecstruct$$Limit;
#else
extern const int __start_codecstruct;
extern const int __stop_codecstruct;
codec_item *start=(codec_item *)&__start_codecstruct;
codec_item *end=(codec_item *)&__stop_codecstruct;
#endif
for(codec_item *t=start;t<end;t++)
{
decode_data=t->decode(p,data);