new uvs2 releases : uppsrc-2598 tutorial-38 examples-141 reference-113

git-svn-id: svn://ultimatepp.org/upp/trunk@300 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
mdelfede 2008-06-16 23:06:34 +00:00
commit cb0ff92715
22 changed files with 225 additions and 238 deletions

View file

@ -48,7 +48,7 @@ static void DbgHeapPanic(const char *text, DbgBlkHeader *p)
char b[100];
strcpy(h, text);
strcat(h, DbgFormat(b, p));
HeapPanic(h, p + 1, p->size);
HeapPanic(h, p + 1, (int)(uintptr_t)p->size);
}
static DbgBlkHeader dbg_live = { 0, &dbg_live, &dbg_live, 0 };
@ -93,7 +93,7 @@ void *MemoryAlloc(size_t size)
#endif
static dword serial_number = 0;
DbgBlkHeader *p = (DbgBlkHeader *)MemoryAlloc_(sizeof(DbgBlkHeader) + size + sizeof(dword));
p->serial = s_ignoreleaks ? 0 : ~ ++serial_number ^ (uintptr_t) p;
p->serial = s_ignoreleaks ? 0 : ~ ++serial_number ^ (dword)(uintptr_t) p;
p->size = size;
if(s_allocbreakpoint && s_allocbreakpoint == serial_number)
__BREAK__;
@ -182,7 +182,7 @@ void MemoryDumpLeaks()
DbgFormat(b, p);
BugLog() << '\n' << b;
VppLog() << '\n' << b << ": ";
HexDump(VppLog(), p + 1, p->size, 64);
HexDump(VppLog(), p + 1, (int)(uintptr_t)p->size, 64);
}
p = p->next;
}