From ebb14ca5f944df76986dbb9f8ec16bae1fbd20a7 Mon Sep 17 00:00:00 2001 From: Björn Stenberg Date: Tue, 13 Aug 2002 23:13:01 +0000 Subject: 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 --- apps/main.c | 6 ------ apps/playlist.c | 2 -- apps/recorder/bmp.c | 4 ++++ 3 files changed, 4 insertions(+), 8 deletions(-) (limited to 'apps') diff --git a/apps/main.c b/apps/main.c index 39609e6a26..a6e90eed3c 100644 --- a/apps/main.c +++ b/apps/main.c @@ -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(); diff --git a/apps/playlist.c b/apps/playlist.c index 0d9df36e32..692ec4b989 100644 --- a/apps/playlist.c +++ b/apps/playlist.c @@ -18,8 +18,6 @@ ****************************************************************************/ #include -#include - #include #include #include "playlist.h" diff --git a/apps/recorder/bmp.c b/apps/recorder/bmp.c index d02e9d4b15..a92d521ce0 100644 --- a/apps/recorder/bmp.c +++ b/apps/recorder/bmp.c @@ -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 */ -- cgit v1.2.3