version 1.11, 2011/08/16 09:37:48 |
version 1.12, 2012/01/21 11:12:13 |
|
|
int key; |
int key; |
|
|
if (args_has(args, 'a')) { |
if (args_has(args, 'a')) { |
while (!SPLAY_EMPTY(&key_bindings)) { |
while (!RB_EMPTY(&key_bindings)) { |
bd = SPLAY_ROOT(&key_bindings); |
bd = RB_ROOT(&key_bindings); |
key_bindings_remove(bd->key); |
key_bindings_remove(bd->key); |
} |
} |
return (0); |
return (0); |
|
|
|
|
mtmp.key = key; |
mtmp.key = key; |
mtmp.mode = !!args_has(args, 'c'); |
mtmp.mode = !!args_has(args, 'c'); |
if ((mbind = SPLAY_FIND(mode_key_tree, mtab->tree, &mtmp)) != NULL) { |
if ((mbind = RB_FIND(mode_key_tree, mtab->tree, &mtmp)) != NULL) { |
SPLAY_REMOVE(mode_key_tree, mtab->tree, mbind); |
RB_REMOVE(mode_key_tree, mtab->tree, mbind); |
xfree(mbind); |
xfree(mbind); |
} |
} |
return (0); |
return (0); |