1
0
Fork 0
forked from len0rd/rockbox

Accept FS#7264 'Build with -Os switch for coldfire targets'.

Introduces MEM_FUNCTION_WRAPPERS(api) macro which adds wrappers 
functions to a plugin to make plugins link correctly when gcc
calls mem* functions directly.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13625 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Nils Wallménius 2007-06-13 15:35:07 +00:00
parent f50bd1151a
commit c7f9ca4067
21 changed files with 105 additions and 29 deletions

View file

@ -132,7 +132,7 @@ static int talk_menu_disable; /* if non-zero, temporarily disable voice UI (not
/***************** Private prototypes *****************/
static void load_voicefile(void);
static void mp3_callback(unsigned char** start, int* size);
static void mp3_callback(unsigned char** start, size_t* size);
static int shutup(void);
static int queue_clip(unsigned char* buf, long size, bool enqueue);
static int open_voicefile(void);
@ -262,7 +262,7 @@ load_err:
/* called in ISR context if mp3 data got consumed */
static void mp3_callback(unsigned char** start, int* size)
static void mp3_callback(unsigned char** start, size_t* size)
{
queue[queue_read].len -= sent; /* we completed this */
queue[queue_read].buf += sent;