added stix_bfmtout() and stix_oofmtout()

This commit is contained in:
hyunghwan.chung
2016-06-01 15:33:03 +00:00
parent 037bbff42c
commit 0c4ce4eb04
15 changed files with 1341 additions and 180 deletions

View File

@ -329,7 +329,7 @@ printf ("MOD_GETSYM [%s]\n", &buf[0]);
}
/* ========================================================================= */
static void log_write (stix_t* stix, int mask, const stix_ooch_t* msg, stix_oow_t len)
{
#if defined(_WIN32)
@ -342,10 +342,10 @@ static void log_write (stix_t* stix, int mask, const stix_ooch_t* msg, stix_oow_
msgidx = 0;
while (1)
while (len > 0)
{
ucslen = len;
bcslen = STIX_COUNTOF(buf) - len;
bcslen = STIX_COUNTOF(buf);
n = stix_ucstoutf8 (&msg[msgidx], &ucslen, buf, &bcslen);
if (n == 0)
@ -592,7 +592,6 @@ int main (int argc, char* argv[])
return -1;
}
{
stix_oow_t tab_size;