makemapdata.c (14e77332e74603efab8347c89d3cda447c3b97c9) | makemapdata.c (e68a558fb2af06daa38f86dad25061ddd90ab131) |
---|---|
1// SPDX-License-Identifier: GPL-2.0+ 2/* makemapdata.c 3 * originally written by: Kirk Reiser. 4 * 5 ** Copyright (C) 2002 Kirk Reiser. 6 * Copyright (C) 2003 David Borowski. 7 */ 8 --- 37 unchanged lines hidden (view full) --- 46 return 0; 47} 48 49int 50main(int argc, char *argv[]) 51{ 52 int value, i; 53 struct st_key *this; | 1// SPDX-License-Identifier: GPL-2.0+ 2/* makemapdata.c 3 * originally written by: Kirk Reiser. 4 * 5 ** Copyright (C) 2002 Kirk Reiser. 6 * Copyright (C) 2003 David Borowski. 7 */ 8 --- 37 unchanged lines hidden (view full) --- 46 return 0; 47} 48 49int 50main(int argc, char *argv[]) 51{ 52 int value, i; 53 struct st_key *this; |
54 const char *dir_name; | 54 const char *dir_name, *spk_dir_name; |
55 char *cp; 56 57 dir_name = getenv("TOPDIR"); 58 if (!dir_name) 59 dir_name = "."; | 55 char *cp; 56 57 dir_name = getenv("TOPDIR"); 58 if (!dir_name) 59 dir_name = "."; |
60 spk_dir_name = getenv("SPKDIR"); 61 if (!spk_dir_name) 62 spk_dir_name = "drivers/accessibility/speakup"; |
|
60 bzero(key_table, sizeof(key_table)); 61 add_key("shift", 1, is_shift); 62 add_key("altgr", 2, is_shift); 63 add_key("ctrl", 4, is_shift); 64 add_key("alt", 8, is_shift); 65 add_key("spk", 16, is_shift); 66 add_key("double", 32, is_shift); 67 --- 10 unchanged lines hidden (view full) --- 78 while (get_define()) { 79 if (strncmp(def_name, "KEY_", 4)) 80 continue; 81 value = atoi(def_val); 82 if (value > 0 && value < MAXKEYVAL) 83 add_key(def_name, value, is_input); 84 } 85 | 63 bzero(key_table, sizeof(key_table)); 64 add_key("shift", 1, is_shift); 65 add_key("altgr", 2, is_shift); 66 add_key("ctrl", 4, is_shift); 67 add_key("alt", 8, is_shift); 68 add_key("spk", 16, is_shift); 69 add_key("double", 32, is_shift); 70 --- 10 unchanged lines hidden (view full) --- 81 while (get_define()) { 82 if (strncmp(def_name, "KEY_", 4)) 83 continue; 84 value = atoi(def_val); 85 if (value > 0 && value < MAXKEYVAL) 86 add_key(def_name, value, is_input); 87 } 88 |
86 open_input(dir_name, "drivers/accessibility/speakup/spk_priv_keyinfo.h"); | 89 open_input(spk_dir_name, "spk_priv_keyinfo.h"); |
87 while (get_define()) { 88 if (strlen(def_val) > 5) { 89 //if (def_val[0] == '(') 90 // def_val++; 91 cp = strchr(def_val, '+'); 92 if (!cp) 93 continue; 94 if (cp[-1] == ' ') --- 31 unchanged lines hidden --- | 90 while (get_define()) { 91 if (strlen(def_val) > 5) { 92 //if (def_val[0] == '(') 93 // def_val++; 94 cp = strchr(def_val, '+'); 95 if (!cp) 96 continue; 97 if (cp[-1] == ' ') --- 31 unchanged lines hidden --- |