Lines Matching refs:cp1
237 u_char *cp1; in keymap_show() local
242 cp1 = spk_key_buf + SHIFT_TBL_SIZE; in keymap_show()
243 num_keys = (int)(*cp1); in keymap_show()
244 nstates = (int)cp1[1]; in keymap_show()
246 cp1 += 2; /* now pointing at shift states */ in keymap_show()
252 ch = *cp1++; in keymap_show()
272 u_char *cp1; in keymap_store() local
291 cp1 = (u_char *)in_buff; in keymap_store()
293 cp = spk_s2uchar(cp, cp1); in keymap_store()
294 cp1++; in keymap_store()
296 i = (int)cp1[-2] + 1; in keymap_store()
297 i *= (int)cp1[-1] + 1; in keymap_store()
299 if (cp1[-3] != KEY_MAP_VER || cp1[-1] > 10 || in keymap_store()
302 (int)cp1[-3], (int)cp1[-2], (int)cp1[-1]); in keymap_store()
308 cp = spk_s2uchar(cp, cp1); in keymap_store()
309 cp1++; in keymap_store()
313 if (i != 0 || cp1[-1] != KEY_MAP_VER || cp1[-2] != 0) { in keymap_store()
316 (int)cp1[-3], (int)cp1[-2], (int)cp1[-1]); in keymap_store()
552 char *cp1; in spk_var_show() local
573 cp1 = buf; in spk_var_show()
574 *cp1++ = '"'; in spk_var_show()
577 *cp1++ = ch; in spk_var_show()
579 cp1 += sprintf(cp1, "\\x%02x", ch); in spk_var_show()
581 *cp1++ = '"'; in spk_var_show()
582 *cp1++ = '\n'; in spk_var_show()
583 *cp1 = '\0'; in spk_var_show()
584 rv = cp1 - buf; in spk_var_show()