diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2015-02-26 23:29:02 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2015-03-25 18:57:34 -0300 |
commit | 05c030c725fe15b17a2b09974b5da9d78affc926 (patch) | |
tree | 1791d0e75f9c28965b43f515c9fb679a4e475465 /src/nvim/map.c | |
parent | 5cf3dec9a98717d171e15729d9320d9ebe5ba7eb (diff) | |
download | rneovim-05c030c725fe15b17a2b09974b5da9d78affc926.tar.gz rneovim-05c030c725fe15b17a2b09974b5da9d78affc926.tar.bz2 rneovim-05c030c725fe15b17a2b09974b5da9d78affc926.zip |
map: Add map_clear method
Diffstat (limited to 'src/nvim/map.c')
-rw-r--r-- | src/nvim/map.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/map.c b/src/nvim/map.c index 31fe8a01ea..39ca7aaaee 100644 --- a/src/nvim/map.c +++ b/src/nvim/map.c @@ -87,6 +87,11 @@ } \ \ return rv; \ + } \ + \ + void map_##T##_##U##_clear(Map(T, U) *map) \ + { \ + kh_clear(T##_##U##_map, map->table); \ } static inline khint_t String_hash(String s) |