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:
parent
f50bd1151a
commit
c7f9ca4067
21 changed files with 105 additions and 29 deletions
|
@ -19,6 +19,7 @@
|
|||
****************************************************************************/
|
||||
|
||||
#include "plugin.h"
|
||||
#include "mem_function_wrappers.h"
|
||||
|
||||
PLUGIN_HEADER
|
||||
|
||||
|
@ -204,6 +205,9 @@ static int difficulty = 75; /* Percentage of screen that needs to be filled
|
|||
* in order to win the game */
|
||||
|
||||
static struct plugin_api *rb;
|
||||
|
||||
MEM_FUNCTION_WRAPPERS(rb);
|
||||
|
||||
static bool quit = false;
|
||||
|
||||
static unsigned int board[BOARD_H][BOARD_W];
|
||||
|
@ -295,7 +299,6 @@ static inline void emptyStack (void)
|
|||
|
||||
/*********************** END OF STACK STUFF *********************/
|
||||
|
||||
|
||||
/* calculate the new x coordinate of the ball according to angle and speed */
|
||||
static inline int get_newx (int x, int len, int deg)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue