forked from len0rd/rockbox
Moved the malloc system into the firmware/malloc/ directory, removed the
implementation files from the test/malloc/ directory, leaving only test files there. Added headers, corrected a few minor documenational errors. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@571 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
bbdeba6d8c
commit
f143fd8e36
14 changed files with 214 additions and 77 deletions
|
|
@ -26,7 +26,7 @@ kommentaren p
|
|||
|
||||
*/
|
||||
|
||||
/*#undef BMALLOC*/
|
||||
#define BMALLOC /* go go go */
|
||||
|
||||
#ifdef BMALLOC
|
||||
#include "dmalloc.h"
|
||||
|
|
@ -162,7 +162,7 @@ int main(void)
|
|||
}
|
||||
output:
|
||||
if (out_of_memory || !(count%DISPLAY_WHEN)) {
|
||||
printf("(%d) malloc %d, realloc %d, free %d, total size %d\n",
|
||||
printf("(%ld) malloc %ld, realloc %ld, free %ld, total size %ld\n",
|
||||
count, count_malloc, count_realloc, count_free, total_memory);
|
||||
{
|
||||
int count;
|
||||
|
|
@ -175,7 +175,7 @@ int main(void)
|
|||
}
|
||||
if (out_of_memory) {
|
||||
if(out_of_memory)
|
||||
printf("Couldn't get %d bytes\n", out_of_memory);
|
||||
printf("Couldn't get %ld bytes\n", out_of_memory);
|
||||
|
||||
dmalloc_status();
|
||||
bmalloc_status();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue