1
0
Fork 0
forked from len0rd/rockbox

Make a few global variables static instead of global where possible

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24206 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Bertrik Sikken 2010-01-09 17:42:54 +00:00
parent 3d53182cef
commit f736159e5c
3 changed files with 10 additions and 10 deletions

View file

@ -131,10 +131,10 @@ static struct trackdata trackdata[MAX_TRACK_ENTRIES];
static unsigned int current_track_counter = 0; static unsigned int current_track_counter = 0;
/* Play time of the previous track */
unsigned long prev_track_elapsed;
#ifndef SIMULATOR #ifndef SIMULATOR
/* Play time of the previous track */
static unsigned long prev_track_elapsed;
static int track_read_idx = 0; static int track_read_idx = 0;
static int track_write_idx = 0; static int track_write_idx = 0;
#endif /* !SIMULATOR */ #endif /* !SIMULATOR */
@ -213,9 +213,9 @@ static int prerecord_count; /* Number of seconds in the prerecord buffer */
static int prerecord_timeout; /* The tick count of the next prerecord data static int prerecord_timeout; /* The tick count of the next prerecord data
store */ store */
unsigned long record_start_time; /* Value of current_tick when recording static unsigned long record_start_time; /* Value of current_tick when recording
was started */ was started */
unsigned long pause_start_time; /* Value of current_tick when pause was static unsigned long pause_start_time; /* Value of current_tick when pause was
started */ started */
static unsigned long last_rec_time; static unsigned long last_rec_time;
static unsigned long num_rec_bytes; static unsigned long num_rec_bytes;

View file

@ -84,7 +84,7 @@ struct gui_synclist tree_lists;
/* I put it here because other files doesn't use it yet, /* I put it here because other files doesn't use it yet,
* but should be elsewhere since it will be used mostly everywhere */ * but should be elsewhere since it will be used mostly everywhere */
#ifdef HAVE_BUTTONBAR #ifdef HAVE_BUTTONBAR
struct gui_buttonbar tree_buttonbar; static struct gui_buttonbar tree_buttonbar;
#endif #endif
static struct tree_context tc; static struct tree_context tc;

View file

@ -168,14 +168,14 @@ typedef struct
bool is_key_released; bool is_key_released;
} usb_hid_report_t; } usb_hid_report_t;
usb_hid_report_t usb_hid_reports[REPORT_ID_COUNT]; static usb_hid_report_t usb_hid_reports[REPORT_ID_COUNT];
static unsigned char report_descriptor[HID_BUF_SIZE_REPORT] static unsigned char report_descriptor[HID_BUF_SIZE_REPORT]
USB_DEVBSS_ATTR __attribute__((aligned(32))); USB_DEVBSS_ATTR __attribute__((aligned(32)));
static unsigned char send_buffer[HID_NUM_BUFFERS][HID_BUF_SIZE_MSG] static unsigned char send_buffer[HID_NUM_BUFFERS][HID_BUF_SIZE_MSG]
USB_DEVBSS_ATTR __attribute__((aligned(32))); USB_DEVBSS_ATTR __attribute__((aligned(32)));
size_t send_buffer_len[HID_NUM_BUFFERS]; static size_t send_buffer_len[HID_NUM_BUFFERS];
static int cur_buf_prepare; static int cur_buf_prepare;
static int cur_buf_send; static int cur_buf_send;