1
0
Fork 0
forked from len0rd/rockbox

Gained about 128 KB buffer space by removing malloc() and the heap

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1726 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2002-08-13 23:13:01 +00:00
parent 509b425616
commit ebb14ca5f9
8 changed files with 20 additions and 33 deletions

View file

@ -33,13 +33,9 @@
#include "powermgmt.h"
#include "adc.h"
#include "i2c.h"
#ifndef SIMULATOR
#include "dmalloc.h"
#include "bmalloc.h"
#ifndef DEBUG
#include "serial.h"
#endif
#endif
#include "mpeg.h"
#include "main_menu.h"
#include "thread.h"
@ -95,8 +91,6 @@ void init(void)
settings_reset();
dmalloc_initialize();
bmalloc_add_pool(poolstart, poolend-poolstart);
lcd_init();
show_logo();

View file

@ -18,8 +18,6 @@
****************************************************************************/
#include <stdio.h>
#include <malloc.h>
#include <stdlib.h>
#include <string.h>
#include "playlist.h"

View file

@ -32,6 +32,8 @@
#include "file.h"
#if 0
#ifdef __GNUC__
#define STRUCT_PACKED __attribute__((packed))
#else
@ -585,3 +587,5 @@ int main(int argc, char **argv)
}
#endif
#endif /* 0 */