1
0
Fork 0
forked from len0rd/rockbox

plugins (doom, midi, rockboy): don't use non-static inline

some functions can be static -> static inline
some functions are external and can't be inlined -> remove inline

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28019 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2010-09-07 14:09:11 +00:00
parent 17e5399d3d
commit 791d425ff1
4 changed files with 5 additions and 5 deletions

View file

@ -435,7 +435,7 @@ static inline unsigned int read_scroll_wheel(void)
} }
#endif #endif
inline void getkey() static inline void getkey()
{ {
event_t event; event_t event;
/* Same button handling as rockboy */ /* Same button handling as rockboy */
@ -609,7 +609,7 @@ inline void getkey()
} }
} }
inline void I_StartTic (void) void I_StartTic (void)
{ {
getkey(); getkey();
} }

View file

@ -186,7 +186,7 @@ static inline void setPW(int ch, int msb, int lsb)
computeDeltas(ch); computeDeltas(ch);
} }
inline void pressNote(int ch, int note, int vol) static inline void pressNote(int ch, int note, int vol)
{ {
static int lastKill = 0; static int lastKill = 0;
/* Silences all channels but one, for easy debugging, for me. */ /* Silences all channels but one, for easy debugging, for me. */

View file

@ -30,7 +30,7 @@ void *my_malloc(size_t size);
extern int shut,cleanshut; extern int shut,cleanshut;
void vid_init(void); void vid_init(void);
inline void vid_begin(void); void vid_begin(void);
void die(char *message, ...); void die(char *message, ...);
void doevents(void) ICODE_ATTR; void doevents(void) ICODE_ATTR;
void ev_poll(void); void ev_poll(void);

View file

@ -192,7 +192,7 @@ void ev_poll(void)
} }
/* New frameskip, makes more sense to me and performs as well */ /* New frameskip, makes more sense to me and performs as well */
inline void vid_begin(void) void vid_begin(void)
{ {
static int skip = 0; static int skip = 0;
if (skip<options.frameskip) if (skip<options.frameskip)