more changes

This commit is contained in:
NIIBE Yutaka
2010-09-04 00:42:36 +09:00
parent 40455cd4a5
commit 3c9e24c7e2
19 changed files with 1584 additions and 1297 deletions

View File

@@ -35,7 +35,7 @@ put_hex (uint8_t nibble)
else
c = 'a' + nibble - 0x0a;
_write (&c, 1);
_write ((const char *)&c, 1);
}
void
@@ -64,6 +64,20 @@ put_short (uint16_t x)
_write ("\r\n", 2);
}
void
put_binary (const char *s, int len)
{
int i;
for (i = 0; i < len; i++)
{
put_byte_with_no_nl (s[i]);
if ((i & 0x0f) == 0x0f)
_write ("\r\n", 2);
}
_write ("\r\n", 2);
}
void
put_string (const char *s)
{