Make some global function/variables local (by making them static)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27631 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Bertrik Sikken 2010-07-30 23:47:49 +00:00
parent d73c81f912
commit 57933f2bc6
6 changed files with 9 additions and 8 deletions

View File

@ -68,6 +68,7 @@
#include "wps_internals.h"
#include "skin_engine.h"
#include "statusbar-skinned.h"
#include "skin_display.h"
void skin_render(struct gui_wps *gwps, unsigned refresh_mode);

View File

@ -90,7 +90,7 @@ static enum screen_type curr_screen;
static struct skin_element *curr_viewport_element;
static struct skin_viewport *curr_vp;
struct line *curr_line;
static struct line *curr_line;
static int follow_lang_direction = 0;
@ -1173,7 +1173,7 @@ static int convert_viewport(struct wps_data *data, struct skin_element* element)
}
int skin_element_callback(struct skin_element* element, void* data)
static int skin_element_callback(struct skin_element* element, void* data)
{
struct wps_data *wps_data = (struct wps_data *)data;
struct wps_token *token;

View File

@ -322,7 +322,7 @@ static void fix_line_alignment(struct skin_draw_info *info, struct skin_element
}
/* Draw a LINE element onto the display */
bool skin_render_line(struct skin_element* line, struct skin_draw_info *info)
static bool skin_render_line(struct skin_element* line, struct skin_draw_info *info)
{
bool needs_update = false;
int last_value, value;
@ -471,8 +471,8 @@ bool skin_render_alternator(struct skin_element* element, struct skin_draw_info
return changed_lines || ret;
}
void skin_render_viewport(struct skin_element* viewport, struct gui_wps *gwps,
struct skin_viewport* skin_viewport, unsigned long refresh_type)
static void skin_render_viewport(struct skin_element* viewport, struct gui_wps *gwps,
struct skin_viewport* skin_viewport, unsigned long refresh_type)
{
struct screen *display = gwps->display;
char linebuf[MAX_LINE];

View File

@ -48,7 +48,7 @@ static struct wps_sync_data sb_skin_sync_data = { .do_full_update = false
/* initial setup of wps_data */
static int update_delay = DEFAULT_UPDATE_DELAY;
struct wps_token *found_token;
static struct wps_token *found_token;
static int set_title_worker(char* title, enum themable_icons icon,
struct wps_data *data, struct skin_element *root)
{

View File

@ -476,7 +476,7 @@ char *make_hex(char *data, int len)
}
#endif
void ep_send(int ep, void *ptr, int len)
static void ep_send(int ep, void *ptr, int len)
{
struct usb_dev_dma_desc *uc_desc = endpoints[ep][0].uc_desc;

View File

@ -100,7 +100,7 @@ static struct usb_endpoint endpoints[USB_NUM_ENDPOINTS][2];
/* setup packet for EP0 */
static struct usb_ctrlrequest ep0_setup_pkt USB_DEVBSS_ATTR;
/* state of EP0 */
enum ep0state ep0_state;
static enum ep0state ep0_state;
void usb_attach(void)
{