ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/keyboard.C
(Generate patch)

Comparing rxvt-unicode/src/keyboard.C (file contents):
Revision 1.22 by root, Mon Jan 9 22:41:41 2006 UTC vs.
Revision 1.24 by root, Wed Jan 25 15:32:48 2006 UTC

74output_string (rxvt_term *rt, const char *str) 74output_string (rxvt_term *rt, const char *str)
75{ 75{
76 if (strncmp (str, "command:", 8) == 0) 76 if (strncmp (str, "command:", 8) == 0)
77 rt->cmd_write (str + 8, strlen (str) - 8); 77 rt->cmd_write (str + 8, strlen (str) - 8);
78 else if (strncmp (str, "perl:", 5) == 0) 78 else if (strncmp (str, "perl:", 5) == 0)
79 HOOK_INVOKE((rt, HOOK_KEYBOARD_COMMAND, DT_STR, str + 5, DT_END)); 79 HOOK_INVOKE((rt, HOOK_USER_COMMAND, DT_STR, str + 5, DT_END));
80 else 80 else
81 rt->tt_write (str, strlen (str)); 81 rt->tt_write (str, strlen (str));
82} 82}
83 83
84static void 84static void
420 ++hash_budget_counter [hashkey]; 420 ++hash_budget_counter [hashkey];
421 } 421 }
422 422
423 keymap.swap (sorted_keymap); 423 keymap.swap (sorted_keymap);
424 424
425#if defined (DEBUG_STRICT) || defined (DEBUG_KEYBOARD) 425#ifdef DEBUG_STRICT
426 // check for invariants 426 // check for invariants
427 for (i = 0; i < KEYSYM_HASH_BUDGETS; ++i) 427 for (i = 0; i < KEYSYM_HASH_BUDGETS; ++i)
428 { 428 {
429 index = hash[i]; 429 index = hash[i];
430 for (int j = 0; j < hash_budget_size [i]; ++j) 430 for (int j = 0; j < hash_budget_size [i]; ++j)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines