enhanced the reader to check lvalue for assignment in advance
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-03-10 12:09:56 +09:00
parent 00ad4dd779
commit f6f4d0f259
4 changed files with 47 additions and 26 deletions

View File

@ -657,22 +657,6 @@ next:
break;
}
case HCL_BRAND_SYMBOL_ARRAY:
{
hcl_oow_t i;
if (hcl_bfmt_out(fmtout, "|") <= -1) return -1;
for (i = 0; i < HCL_OBJ_GET_SIZE(obj); i++)
{
hcl_oop_t s;
s = ((hcl_oop_oop_t)obj)->slot[i];
if (hcl_bfmt_out(fmtout, " %.*js", HCL_OBJ_GET_SIZE(s), HCL_OBJ_GET_CHAR_SLOT(s)) <= -1) return -1;
}
if (hcl_bfmt_out(fmtout, " |") <= -1) return -1;
break;
}
case HCL_BRAND_PRIM:
word_index = WORD_PRIM;
goto print_word;