cleaned up code a bit
This commit is contained in:
parent
cfdc22ee60
commit
7a47ba6369
10
lib/print.c
10
lib/print.c
@ -181,6 +181,11 @@ next:
|
|||||||
if (outbfmt(hcl, mask, "%zd", HCL_OOP_TO_SMOOI(obj)) <= -1) return -1;
|
if (outbfmt(hcl, mask, "%zd", HCL_OOP_TO_SMOOI(obj)) <= -1) return -1;
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
else if (HCL_OOP_IS_SMPTR(obj))
|
||||||
|
{
|
||||||
|
if (outbfmt(hcl, mask, "#\\p%zX", (hcl_oow_t)HCL_OOP_TO_SMPTR(obj)) <= -1) return -1;
|
||||||
|
goto done;
|
||||||
|
}
|
||||||
else if (HCL_OOP_IS_CHAR(obj))
|
else if (HCL_OOP_IS_CHAR(obj))
|
||||||
{
|
{
|
||||||
hcl_ooch_t ch = HCL_OOP_TO_CHAR(obj);
|
hcl_ooch_t ch = HCL_OOP_TO_CHAR(obj);
|
||||||
@ -189,11 +194,6 @@ next:
|
|||||||
outbfmt(hcl, mask, "\'") <= -1) return -1;
|
outbfmt(hcl, mask, "\'") <= -1) return -1;
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
else if (HCL_OOP_IS_SMPTR(obj))
|
|
||||||
{
|
|
||||||
if (outbfmt(hcl, mask, "#\\p%zX", (hcl_oow_t)HCL_OOP_TO_SMPTR(obj)) <= -1) return -1;
|
|
||||||
goto done;
|
|
||||||
}
|
|
||||||
else if (HCL_OOP_IS_ERROR(obj))
|
else if (HCL_OOP_IS_ERROR(obj))
|
||||||
{
|
{
|
||||||
if (outbfmt(hcl, mask, "#\\e%zd", (hcl_ooi_t)HCL_OOP_TO_ERROR(obj)) <= -1) return -1;
|
if (outbfmt(hcl, mask, "#\\e%zd", (hcl_ooi_t)HCL_OOP_TO_ERROR(obj)) <= -1) return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user