Refactoring!

This commit is contained in:
Ianos Gnatiuc
2006-05-14 17:17:32 +00:00
parent 8d829c2ed2
commit 717827510e
25 changed files with 297 additions and 224 deletions

View File

@@ -119,12 +119,13 @@ Line* _HudsArea<msgn_t, rec_t, attr_t, board_t, last_t, __HUDSON>::make_dump_msg
int _count = 0;
char* _ptr = (char*)&_hdr;
for(;_count < sizeof(HudsHdr); _ptr+=16,_count+=16) {
sprintf(buf, "%04X ", _count);
for (;_count < sizeof(HudsHdr); _ptr+=16,_count+=16)
{
gsprintf(PRINTF_DECLARE_BUFFER(buf), "%04X ", _count);
HexDump16(buf+7, _ptr, 16, HEX_DUMP2);
line = AddLine(line, buf);
}
sprintf(buf, "%04X ", _count);
gsprintf(PRINTF_DECLARE_BUFFER(buf), "%04X ", _count);
HexDump16(buf+7, _ptr, sizeof(HudsHdr)%16, HEX_DUMP2);
line = AddLine(line, buf);