Changeset f1d7d0f
- Timestamp:
- Aug 15, 2009, 7:08:20 PM (16 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)
- Files:
-
- 2 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; -
keymap.c
r0a0fb74 rf1d7d0f 69 69 { 70 70 int i, nbindings; 71 owl_keybinding *kb;71 const owl_keybinding *kb; 72 72 73 73 owl_fmtext_append_bold(fm, "KEYMAP - "); … … 203 203 { 204 204 owl_keymap *km; 205 owl_keybinding *kb;205 const owl_keybinding *kb; 206 206 int i, match; 207 207
Note: See TracChangeset
for help on using the changeset viewer.