Changeset f1d7d0f


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>
Files:
2 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;
  • keymap.c

    r0a0fb74 rf1d7d0f  
    6969{
    7070  int i, nbindings;
    71   owl_keybinding *kb;
     71  const owl_keybinding *kb;
    7272 
    7373  owl_fmtext_append_bold(fm, "KEYMAP - ");
     
    203203{
    204204  owl_keymap     *km;
    205   owl_keybinding *kb;
     205  const owl_keybinding *kb;
    206206  int i, match;
    207207
Note: See TracChangeset for help on using the changeset viewer.