Changeset f1d7d0f for keybinding.c


Ignore:
Timestamp:
Aug 15, 2009, 7:08:20 PM (12 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, 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)
Message:
Add const qualifiers for owl_keybinding *.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • keybinding.c

    re19eb97 rf1d7d0f  
    6868
    6969/* executes a keybinding */
    70 void owl_keybinding_execute(owl_keybinding *kb, int j)
     70void owl_keybinding_execute(const owl_keybinding *kb, int j)
    7171{
    7272  if (kb->type == OWL_KEYBINDING_COMMAND && kb->command) {
     
    9595
    9696/* returns 0 on success */
    97 int owl_keybinding_tostring(owl_keybinding *kb, char *buff, int bufflen)
     97int owl_keybinding_tostring(const owl_keybinding *kb, char *buff, int bufflen)
    9898{
    9999  return owl_keybinding_stack_tostring(kb->keys, kb->len, buff, bufflen);
    100100}
    101101
    102 const char *owl_keybinding_get_desc(owl_keybinding *kb)
     102const char *owl_keybinding_get_desc(const owl_keybinding *kb)
    103103{
    104104  return kb->desc;
     
    106106
    107107/* 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)
     108int owl_keybinding_match(const owl_keybinding *kb, owl_keyhandler *kh)
    109109{
    110110  int i;
     
    126126
    127127/* returns 1 if keypress sequence is the same */
    128 int owl_keybinding_equal(owl_keybinding *kb1, owl_keybinding *kb2)
     128int owl_keybinding_equal(const owl_keybinding *kb1, const owl_keybinding *kb2)
    129129{
    130130  int i;
Note: See TracChangeset for help on using the changeset viewer.