Changeset f1d7d0f for keybinding.c
- Timestamp:
- Aug 15, 2009, 7:08:20 PM (15 years ago)
- Branches:
- master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- afa200a
- Parents:
- 1e94c0b
- git-author:
- Anders Kaseorg <andersk@mit.edu> (08/04/09 02:38:10)
- git-committer:
- Anders Kaseorg <andersk@mit.edu> (08/15/09 19:08:20)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
keybinding.c
re19eb97 rf1d7d0f 68 68 69 69 /* executes a keybinding */ 70 void owl_keybinding_execute( owl_keybinding *kb, int j)70 void owl_keybinding_execute(const owl_keybinding *kb, int j) 71 71 { 72 72 if (kb->type == OWL_KEYBINDING_COMMAND && kb->command) { … … 95 95 96 96 /* returns 0 on success */ 97 int owl_keybinding_tostring( owl_keybinding *kb, char *buff, int bufflen)97 int owl_keybinding_tostring(const owl_keybinding *kb, char *buff, int bufflen) 98 98 { 99 99 return owl_keybinding_stack_tostring(kb->keys, kb->len, buff, bufflen); 100 100 } 101 101 102 const char *owl_keybinding_get_desc( owl_keybinding *kb)102 const char *owl_keybinding_get_desc(const owl_keybinding *kb) 103 103 { 104 104 return kb->desc; … … 106 106 107 107 /* returns 0 on no match, 1 on subset match, and 2 on complete match */ 108 int owl_keybinding_match( owl_keybinding *kb, owl_keyhandler *kh)108 int owl_keybinding_match(const owl_keybinding *kb, owl_keyhandler *kh) 109 109 { 110 110 int i; … … 126 126 127 127 /* returns 1 if keypress sequence is the same */ 128 int owl_keybinding_equal( owl_keybinding *kb1,owl_keybinding *kb2)128 int owl_keybinding_equal(const owl_keybinding *kb1, const owl_keybinding *kb2) 129 129 { 130 130 int i;
Note: See TracChangeset
for help on using the changeset viewer.