Changeset b13daa0 for owl.h


Ignore:
Timestamp:
Mar 24, 2011, 4:09:22 PM (14 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.10, release-1.8, release-1.9
Children:
45e2c95
Parents:
c809f5e
git-author:
David Benjamin <davidben@mit.edu> (03/10/11 15:14:32)
git-committer:
David Benjamin <davidben@mit.edu> (03/24/11 16:09:22)
Message:
Make owl_keybinding new/delete instead of init/cleanup

Valgrind is deeply disappointed in this code...

Hide owl_keybinding_make_keys again, so we don't construct half-baked
owl_keybinding instances. Instead allow for creating a dummy keybinding.
Also, initialize all fields of owl_keybinding, or freeing it afterwards
explodes. Also fix a memory leak in unbindkey.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • owl.h

    r41f0cf3 rb13daa0  
    186186#define OWL_KEYMAP_MAXSTACK     20
    187187
     188#define OWL_KEYBINDING_NOOP     0   /* dummy binding that does nothing */
    188189#define OWL_KEYBINDING_COMMAND  1   /* command string */
    189190#define OWL_KEYBINDING_FUNCTION 2   /* function taking no args */
Note: See TracChangeset for help on using the changeset viewer.