Lines Matching +full:ch +full:- +full:func
1 // SPDX-License-Identifier: GPL-2.0+
16 static const int num_key_names = MSG_KEYNAMES_END - MSG_KEYNAMES_START + 1;
21 -1, -1, -1, -1, -1, -1, -1, -1,
22 -1, -1, -1, -1, -1, -1, -1, -1,
23 -1, -1, -1, -1, -1, -1, -1, -1,
24 -1, -1 };
51 u_char *kp, counters[MAXFUNCS], ch, ch1; in build_key_data() local
55 nstates = (int)(state_tbl[-1]); in build_key_data()
82 while ((ch = *kp++)) { in build_key_data()
89 key = (state_tbl[i] << 8) + ch; in build_key_data()
90 counters[ch1]--; in build_key_data()
111 spk_msg_get(MSG_KEYNAMES_START + (key - 1))); in say_key()
118 int num_funcs = MSG_FUNCNAMES_END - MSG_FUNCNAMES_START + 1; in help_init()
127 letter_offsets[(start & 31) - 1] = i; in help_init()
132 int spk_handle_help(struct vc_data *vc, u_char type, u_char ch, u_short key) in spk_handle_help() argument
136 u_char func, *kp; in spk_handle_help() local
139 if (letter_offsets[0] == -1) in spk_handle_help()
142 if (ch == SPACE) { in spk_handle_help()
147 ch |= 32; /* lower case */ in spk_handle_help()
148 if (ch < 'a' || ch > 'z') in spk_handle_help()
149 return -1; in spk_handle_help()
150 if (letter_offsets[ch - 'a'] == -1) { in spk_handle_help()
151 synth_printf(spk_msg_get(MSG_NO_COMMAND), ch); in spk_handle_help()
155 cur_item = letter_offsets[ch - 'a']; in spk_handle_help()
157 if (ch == 0 && in spk_handle_help()
160 else if (ch == 3 && cur_item > 0) in spk_handle_help()
161 cur_item--; in spk_handle_help()
163 return -1; in spk_handle_help()
164 } else if (type == KT_SPKUP && ch == SPEAKUP_HELP && in spk_handle_help()
174 spk_msg_get(MSG_KEYNAMES_START + key - 1)); in spk_handle_help()
178 if (ch == funcvals[i]) in spk_handle_help()
182 return -1; in spk_handle_help()
185 if (ch == kp[i]) in spk_handle_help()
195 func = funcvals[cur_item]; in spk_handle_help()
197 if (key_offsets[func] == 0) { in spk_handle_help()
201 p_keys = key_data + key_offsets[func]; in spk_handle_help()