Make some local global variables static.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18859 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dave Chapman 2008-10-22 08:50:13 +00:00
parent 4e2557cfce
commit 019f9c034b

View file

@ -76,7 +76,8 @@ GREY_INFO_STRUCT
/******************************* Globals ***********************************/ /******************************* Globals ***********************************/
const struct plugin_api* rb; const struct plugin_api* rb; /* Exported to other .c files in this plugin */
MEM_FUNCTION_WRAPPERS(rb); MEM_FUNCTION_WRAPPERS(rb);
static int slideshow_enabled = false; /* run slideshow */ static int slideshow_enabled = false; /* run slideshow */
@ -133,7 +134,7 @@ static struct configdata jpeg_config[] =
}; };
#if LCD_DEPTH > 1 #if LCD_DEPTH > 1
fb_data* old_backdrop; static fb_data* old_backdrop;
#endif #endif
/**************** begin Application ********************/ /**************** begin Application ********************/
@ -158,31 +159,31 @@ struct t_disp
/************************* Globals ***************************/ /************************* Globals ***************************/
/* decompressed image in the possible sizes (1,2,4,8), wasting the other */ /* decompressed image in the possible sizes (1,2,4,8), wasting the other */
struct t_disp disp[9]; static struct t_disp disp[9];
/* my memory pool (from the mp3 buffer) */ /* my memory pool (from the mp3 buffer) */
char print[32]; /* use a common snprintf() buffer */ static char print[32]; /* use a common snprintf() buffer */
unsigned char* buf; /* up to here currently used by image(s) */ static unsigned char* buf; /* up to here currently used by image(s) */
/* the remaining free part of the buffer for compressed+uncompressed images */ /* the remaining free part of the buffer for compressed+uncompressed images */
unsigned char* buf_images; static unsigned char* buf_images;
ssize_t buf_size, buf_images_size; static ssize_t buf_size, buf_images_size;
/* the root of the images, hereafter are decompresed ones */ /* the root of the images, hereafter are decompresed ones */
unsigned char* buf_root; static unsigned char* buf_root;
int root_size; static int root_size;
int ds, ds_min, ds_max; /* downscaling and limits */ static int ds, ds_min, ds_max; /* downscaling and limits */
static struct jpeg jpg; /* too large for stack */ static struct jpeg jpg; /* too large for stack */
static struct tree_context *tree; static struct tree_context *tree;
/* the current full file name */ /* the current full file name */
static char np_file[MAX_PATH]; static char np_file[MAX_PATH];
int curfile = 0, direction = DIR_NONE, entries = 0; static int curfile = 0, direction = DIR_NONE, entries = 0;
/* list of the jpeg files */ /* list of the jpeg files */
char **file_pt; static char **file_pt;
/* are we using the plugin buffer or the audio buffer? */ /* are we using the plugin buffer or the audio buffer? */
bool plug_buf = false; bool plug_buf = false;