wineconsole: Make some data const.
This commit is contained in:
parent
cd306046bb
commit
9e357cd781
|
@ -130,9 +130,9 @@ MAKE_FUNCPTR(mousemask)
|
||||||
static BOOL WCCURSES_bind_libcurses(void)
|
static BOOL WCCURSES_bind_libcurses(void)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_NCURSES_H
|
#ifdef HAVE_NCURSES_H
|
||||||
static const char *ncname = SONAME_LIBNCURSES;
|
static const char ncname[] = SONAME_LIBNCURSES;
|
||||||
#else
|
#else
|
||||||
static const char *ncname = SONAME_LIBCURSES;
|
static const char ncname[] = SONAME_LIBCURSES;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
nc_handle = wine_dlopen(ncname, RTLD_NOW, NULL, 0);
|
nc_handle = wine_dlopen(ncname, RTLD_NOW, NULL, 0);
|
||||||
|
@ -434,7 +434,7 @@ static void WCCURSES_ScrollV(struct inner_data* data, int delta)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Ascii -> VK, generated by calling VkKeyScanA(i) */
|
/* Ascii -> VK, generated by calling VkKeyScanA(i) */
|
||||||
static int vkkeyscan_table[256] =
|
static const int vkkeyscan_table[256] =
|
||||||
{
|
{
|
||||||
0,0,0,0,0,0,0,0,8,9,0,0,0,13,0,0,0,0,0,19,145,556,0,0,0,0,0,27,0,0,0,
|
0,0,0,0,0,0,0,0,8,9,0,0,0,13,0,0,0,0,0,19,145,556,0,0,0,0,0,27,0,0,0,
|
||||||
0,32,305,478,307,308,309,311,222,313,304,312,443,188,189,190,191,48,
|
0,32,305,478,307,308,309,311,222,313,304,312,443,188,189,190,191,48,
|
||||||
|
@ -448,7 +448,7 @@ static int vkkeyscan_table[256] =
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,400,0,0,0,0,0,0
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,400,0,0,0,0,0,0
|
||||||
};
|
};
|
||||||
|
|
||||||
static int mapvkey_0[256] =
|
static const int mapvkey_0[256] =
|
||||||
{
|
{
|
||||||
0,0,0,0,0,0,0,0,14,15,0,0,0,28,0,0,42,29,56,69,58,0,0,0,0,0,0,1,0,0,
|
0,0,0,0,0,0,0,0,14,15,0,0,0,28,0,0,42,29,56,69,58,0,0,0,0,0,0,1,0,0,
|
||||||
0,0,57,73,81,79,71,75,72,77,80,0,0,0,55,82,83,0,11,2,3,4,5,6,7,8,9,
|
0,0,57,73,81,79,71,75,72,77,80,0,0,0,55,82,83,0,11,2,3,4,5,6,7,8,9,
|
||||||
|
|
|
@ -31,7 +31,7 @@ WINE_DECLARE_DEBUG_CHANNEL(wc_font);
|
||||||
UINT g_uiDefaultCharset;
|
UINT g_uiDefaultCharset;
|
||||||
|
|
||||||
/* mapping console colors to RGB values */
|
/* mapping console colors to RGB values */
|
||||||
COLORREF WCUSER_ColorMap[16] =
|
const COLORREF WCUSER_ColorMap[16] =
|
||||||
{
|
{
|
||||||
RGB(0x00, 0x00, 0x00), RGB(0x00, 0x00, 0x80), RGB(0x00, 0x80, 0x00), RGB(0x00, 0x80, 0x80),
|
RGB(0x00, 0x00, 0x00), RGB(0x00, 0x00, 0x80), RGB(0x00, 0x80, 0x00), RGB(0x00, 0x80, 0x80),
|
||||||
RGB(0x80, 0x00, 0x00), RGB(0x80, 0x00, 0x80), RGB(0x80, 0x80, 0x00), RGB(0x80, 0x80, 0x80),
|
RGB(0x80, 0x00, 0x00), RGB(0x80, 0x00, 0x80), RGB(0x80, 0x80, 0x00), RGB(0x80, 0x80, 0x80),
|
||||||
|
|
|
@ -44,7 +44,7 @@ struct inner_data_user {
|
||||||
#define PRIVATE(data) ((struct inner_data_user*)((data)->private))
|
#define PRIVATE(data) ((struct inner_data_user*)((data)->private))
|
||||||
|
|
||||||
/* from user.c */
|
/* from user.c */
|
||||||
extern COLORREF WCUSER_ColorMap[16];
|
extern const COLORREF WCUSER_ColorMap[16];
|
||||||
extern BOOL WCUSER_GetProperties(struct inner_data*, BOOL);
|
extern BOOL WCUSER_GetProperties(struct inner_data*, BOOL);
|
||||||
extern BOOL WCUSER_ValidateFont(const struct inner_data* data, const LOGFONT* lf);
|
extern BOOL WCUSER_ValidateFont(const struct inner_data* data, const LOGFONT* lf);
|
||||||
extern BOOL WCUSER_ValidateFontMetric(const struct inner_data* data,
|
extern BOOL WCUSER_ValidateFontMetric(const struct inner_data* data,
|
||||||
|
|
Loading…
Reference in New Issue