1
0
Fork 0
forked from len0rd/rockbox

Killed a dozen global variables

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3015 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2002-12-18 14:57:45 +00:00
parent 34fa62b300
commit c3fd67c6c9
9 changed files with 27 additions and 22 deletions

View file

@ -49,9 +49,9 @@ static long peak_meter_clip_timeout_r;
static int peak_meter_clip_hold;
/* specifies the value range in peak volume values */
unsigned short peak_meter_range_min;
unsigned short peak_meter_range_max;
unsigned short peak_meter_range;
static unsigned short peak_meter_range_min;
static unsigned short peak_meter_range_max;
static unsigned short peak_meter_range;
/* if set to true clip timeout is disabled */
static bool peak_meter_clip_eternal = false;

View file

@ -104,7 +104,7 @@ char *fmt_gain(int snd, int val, char *str, int len)
return str;
}
int cursor;
static int cursor;
void adjust_cursor(void)
{

View file

@ -64,7 +64,7 @@
/**
* All the properties that a worm has.
*/
struct worm {
static struct worm {
/* The worm is stored in a ring of xy coordinates */
char x[MAX_WORM_SEGMENTS];
char y[MAX_WORM_SEGMENTS];

View file

@ -35,11 +35,13 @@
static enum playmode current_mode = STATUS_STOP;
long switch_tick;
int battery_charge_step = 0;
#ifdef HAVE_LCD_BITMAP
bool plug_state;
bool battery_state;
#if defined(HAVE_LCD_CHARCELLS) || defined(HAVE_CHARGE_CTRL)
static long switch_tick;
static int battery_charge_step = 0;
#ifdef HAVE_CHARGE_CTRL
static bool plug_state;
static bool battery_state;
#endif
#endif
void status_init(void)

View file

@ -33,7 +33,6 @@ enum playmode
void status_init(void);
void status_set_playmode(enum playmode mode);
#ifdef HAVE_LCD_BITMAP
extern bool statusbar_enabled;
bool statusbar(bool state);
#endif
void status_draw(void);

View file

@ -56,8 +56,8 @@
#define NAME_BUFFER_SIZE (AVERAGE_FILENAME_LENGTH * MAX_FILES_IN_DIR)
char name_buffer[NAME_BUFFER_SIZE];
int name_buffer_length;
static char name_buffer[NAME_BUFFER_SIZE];
static int name_buffer_length;
struct entry {
short attr; /* FAT attributes + file type flags */
char *name;