fixed the premature termination issue in logfmtv

This commit is contained in:
2018-02-21 08:48:47 +00:00
parent ed7f580e54
commit 14b3013c79
3 changed files with 15 additions and 11 deletions

View File

@ -284,7 +284,6 @@ next:
if (outbfmt(hcl, mask, "\"") <= -1) return -1;
for (i = 0; i < HCL_OBJ_GET_SIZE(obj); i++)
{
ch = ((hcl_oop_char_t)obj)->slot[i];
if (print_single_char(hcl, mask, ch, outbfmt) <= -1) return -1;
}
@ -363,7 +362,7 @@ next:
* label. */
ps.type = PRINT_STACK_CONS;
ps.obj = hcl->_nil;
x = push (hcl, &ps);
x = push(hcl, &ps);
if (x <= -1) return -1;
/* Make a jump to 'next' to print the CDR part */
@ -570,7 +569,6 @@ next:
case HCL_BRAND_PRIM:
word_index = WORD_PRIM;
goto print_word;
case HCL_BRAND_CONTEXT:
word_index = WORD_CONTEXT;