summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2011-09-03 10:40:56 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2011-09-03 10:40:56 +0000
commitbbe0d6d633aa559f8a7be9c94aa912548c2bb1a3 (patch)
tree0c2a1c3b0fb743cad33a1992e4ee5c04bad5e91e
parent03b08eb6b350b199e05b22625fbf3eb2f188b3ae (diff)
downloadrockbox-bbe0d6d633aa559f8a7be9c94aa912548c2bb1a3.tar.gz
rockbox-bbe0d6d633aa559f8a7be9c94aa912548c2bb1a3.zip
pacbox: Declare several local functions and variables static.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30415 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugins/pacbox/arcade.c14
-rw-r--r--apps/plugins/pacbox/arcade.h3
2 files changed, 10 insertions, 7 deletions
diff --git a/apps/plugins/pacbox/arcade.c b/apps/plugins/pacbox/arcade.c
index bd108c75aa..426a81d487 100644
--- a/apps/plugins/pacbox/arcade.c
+++ b/apps/plugins/pacbox/arcade.c
@@ -45,7 +45,7 @@ static fb_data rgb_to_gray(unsigned int r, unsigned int g, unsigned int b)
45} 45}
46#endif 46#endif
47 47
48unsigned char color_data_[256] = { 48static unsigned char color_data_[256] = {
49 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x0b, 0x01, 49 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x0b, 0x01,
50 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x0b, 0x03, 50 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x0b, 0x03,
51 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x0b, 0x05, 51 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x0b, 0x05,
@@ -80,7 +80,7 @@ unsigned char color_data_[256] = {
80 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 80 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
81}; 81};
82 82
83unsigned char palette_data_[0x20] = { 83static unsigned char palette_data_[0x20] = {
84 0x00, 0x07, 0x66, 0xef, 0x00, 0xf8, 0xea, 0x6f, 84 0x00, 0x07, 0x66, 0xef, 0x00, 0xf8, 0xea, 0x6f,
85 0x00, 0x3f, 0x00, 0xc9, 0x38, 0xaa, 0xaf, 0xf6, 85 0x00, 0x3f, 0x00, 0xc9, 0x38, 0xaa, 0xaf, 0xf6,
86 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 86 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
@@ -238,7 +238,7 @@ int run(void)
238} 238}
239 239
240/** Returns the status of the coin lockout door. */ 240/** Returns the status of the coin lockout door. */
241unsigned char getCoinLockout(void) { 241static unsigned char getCoinLockout(void) {
242 return output_devices_ & CoinLockout ? 1 : 0; 242 return output_devices_ & CoinLockout ? 1 : 0;
243} 243}
244 244
@@ -355,7 +355,7 @@ void decodeROMs(void)
355#endif 355#endif
356} 356}
357 357
358void getDeviceInfo( enum InputDevice device, unsigned char * mask, unsigned char ** port ) 358static void getDeviceInfo( enum InputDevice device, unsigned char * mask, unsigned char ** port )
359{ 359{
360 static unsigned char MaskInfo[] = { 360 static unsigned char MaskInfo[] = {
361 0x01 , // Joy1_Up 361 0x01 , // Joy1_Up
@@ -405,7 +405,7 @@ void getDeviceInfo( enum InputDevice device, unsigned char * mask, unsigned char
405 } 405 }
406} 406}
407 407
408enum InputDeviceMode getDeviceMode( enum InputDevice device ) 408static enum InputDeviceMode getDeviceMode( enum InputDevice device )
409{ 409{
410 unsigned char mask; 410 unsigned char mask;
411 unsigned char * port; 411 unsigned char * port;
@@ -500,7 +500,7 @@ static inline void drawChar( unsigned char * buffer, int index, int ox, int oy,
500} 500}
501#endif 501#endif
502 502
503inline void drawSprite( unsigned char * buffer, int index ) 503static inline void drawSprite( unsigned char * buffer, int index )
504{ 504{
505 struct PacmanSprite ps = sprites_[index]; 505 struct PacmanSprite ps = sprites_[index];
506 int x,y; 506 int x,y;
@@ -654,6 +654,7 @@ void playSound( int16_t * buf, int len )
654} 654}
655 655
656/* Enables/disables the speed hack. */ 656/* Enables/disables the speed hack. */
657/* rockbox: not used
657int setSpeedHack( int enabled ) 658int setSpeedHack( int enabled )
658{ 659{
659 int result = 0; 660 int result = 0;
@@ -679,3 +680,4 @@ int setSpeedHack( int enabled )
679 680
680 return result; 681 return result;
681} 682}
683*/
diff --git a/apps/plugins/pacbox/arcade.h b/apps/plugins/pacbox/arcade.h
index 33f79e1d53..4207d2c7ce 100644
--- a/apps/plugins/pacbox/arcade.h
+++ b/apps/plugins/pacbox/arcade.h
@@ -189,8 +189,9 @@ void renderSprites( unsigned char * buffer );
189 @return 0 if successful, otherwise the patch could not be applied 189 @return 0 if successful, otherwise the patch could not be applied
190 (probably because the loaded ROM set does not support it) 190 (probably because the loaded ROM set does not support it)
191*/ 191*/
192/* rockbox: not used
192int setSpeedHack( int enabled ); 193int setSpeedHack( int enabled );
193 194*/
194/* Implementation of the Z80 Environment interface */ 195/* Implementation of the Z80 Environment interface */
195unsigned char readByteHigh( unsigned addr ); 196unsigned char readByteHigh( unsigned addr );
196 197