1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-03-05 02:35:23 +00:00

Declare local table generic_X_keymap static and constant, and adjust reference to it.

This commit is contained in:
Nick Briggs
2023-01-06 12:26:03 -08:00
parent f18295480f
commit cb441fd8e5
2 changed files with 2 additions and 2 deletions

View File

@@ -61,7 +61,7 @@
* triples in this array are interpreted in initkbd.c as
* reusable, (Lisp keyboard) code, (X keysym) symbol
*/
int generic_X_keymap[] = {
static const int generic_X_keymap[] = {
0, 107, 0x1000ff10, /* Un-named KEYSYM used on Sun kbd for F11 */
0, 108, 0x1000ff11, /* Un-named KEYSYM used on Sun kbd for F12 */
0, 107, XK_F11,

View File

@@ -337,7 +337,7 @@ static u_char *make_X_keymap(void) {
int lisp_codes_used[256]; /* Keep track of the Lisp key #s we've used */
int last_KEYSYM = -1;
int sym_used = 0;
int *key_sym_pairs = generic_X_keymap;
const int *key_sym_pairs = generic_X_keymap;
int i = 0;
KeySym *mapping;
int codecount, symspercode, minkey, maxkey;