kakoune/src/normal.hh
Maxime Coste ebecd60eb8 Rework hashing, use a more extensible framework similar to n3876 proposal
std::hash specialization is a pain to work with, stop using that, and
just specialize a 'size_t hash_value(const T&)' free function.
2014-12-16 18:57:19 +00:00

32 lines
446 B
C++

#ifndef normal_hh_INCLUDED
#define normal_hh_INCLUDED
#include "keys.hh"
#include "unordered_map.hh"
#include <functional>
namespace Kakoune
{
class Context;
struct NormalParams
{
int count;
char reg;
};
struct NormalCmdDesc
{
const char* docstring;
std::function<void (Context& context, NormalParams params)> func;
};
using KeyMap = UnorderedMap<Key, NormalCmdDesc>;
extern KeyMap keymap;
}
#endif // normal_hh_INCLUDED