Add static keywords to vidcontrol(1).
While there, remove the false optimisation of the colors array. It seems that changing it to an array of pointers instead of a 16x16 array does not cause any increase in binary size at all.
This commit is contained in:
parent
353705930f
commit
3be02c20ca
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=228425
@ -63,7 +63,7 @@ static const char rcsid[] =
|
|||||||
/* Screen dump file format revision */
|
/* Screen dump file format revision */
|
||||||
#define DUMP_FMT_REV 1
|
#define DUMP_FMT_REV 1
|
||||||
|
|
||||||
char legal_colors[16][16] = {
|
static const char *legal_colors[16] = {
|
||||||
"black", "blue", "green", "cyan",
|
"black", "blue", "green", "cyan",
|
||||||
"red", "magenta", "brown", "white",
|
"red", "magenta", "brown", "white",
|
||||||
"grey", "lightblue", "lightgreen", "lightcyan",
|
"grey", "lightblue", "lightgreen", "lightcyan",
|
||||||
@ -78,18 +78,16 @@ struct {
|
|||||||
struct video_info video_mode_info;
|
struct video_info video_mode_info;
|
||||||
} cur_info;
|
} cur_info;
|
||||||
|
|
||||||
int hex = 0;
|
static int hex = 0;
|
||||||
int number;
|
static int vesa_cols;
|
||||||
int vesa_cols;
|
static int vesa_rows;
|
||||||
int vesa_rows;
|
static int font_height;
|
||||||
int font_height;
|
static int colors_changed;
|
||||||
int colors_changed;
|
static int video_mode_changed;
|
||||||
int video_mode_changed;
|
static int normal_fore_color, normal_back_color;
|
||||||
int normal_fore_color, normal_back_color;
|
static int revers_fore_color, revers_back_color;
|
||||||
int revers_fore_color, revers_back_color;
|
static struct vid_info info;
|
||||||
char letter;
|
static struct video_info new_mode_info;
|
||||||
struct vid_info info;
|
|
||||||
struct video_info new_mode_info;
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user