version 1.13, 2012/05/05 17:40:47 |
version 1.14, 2012/07/10 11:53:01 |
|
|
|
|
#include <sys/types.h> |
#include <sys/types.h> |
|
|
|
#include <stdlib.h> |
|
|
#include "tmux.h" |
#include "tmux.h" |
|
|
/* |
/* |
|
|
while (!RB_EMPTY(mtab->tree)) { |
while (!RB_EMPTY(mtab->tree)) { |
mbind = RB_ROOT(mtab->tree); |
mbind = RB_ROOT(mtab->tree); |
RB_REMOVE(mode_key_tree, mtab->tree, mbind); |
RB_REMOVE(mode_key_tree, mtab->tree, mbind); |
xfree(mbind); |
free(mbind); |
} |
} |
return (0); |
return (0); |
} |
} |
|
|
mtmp.mode = !!args_has(args, 'c'); |
mtmp.mode = !!args_has(args, 'c'); |
if ((mbind = RB_FIND(mode_key_tree, mtab->tree, &mtmp)) != NULL) { |
if ((mbind = RB_FIND(mode_key_tree, mtab->tree, &mtmp)) != NULL) { |
RB_REMOVE(mode_key_tree, mtab->tree, mbind); |
RB_REMOVE(mode_key_tree, mtab->tree, mbind); |
xfree(mbind); |
free(mbind); |
} |
} |
return (0); |
return (0); |
} |
} |