7c06667bdf
This hash map is now fully constexpr, and ends up stored in the read only data segment instead of being recomputed at each startup.
30 lines
414 B
C++
30 lines
414 B
C++
#ifndef normal_hh_INCLUDED
|
|
#define normal_hh_INCLUDED
|
|
|
|
#include "optional.hh"
|
|
#include "keys.hh"
|
|
#include "string.hh"
|
|
|
|
namespace Kakoune
|
|
{
|
|
|
|
class Context;
|
|
|
|
struct NormalParams
|
|
{
|
|
int count;
|
|
char reg;
|
|
};
|
|
|
|
struct NormalCmd
|
|
{
|
|
StringView docstring = {};
|
|
void (*func)(Context& context, NormalParams params) = nullptr;
|
|
};
|
|
|
|
Optional<NormalCmd> get_normal_command(Key key);
|
|
|
|
}
|
|
|
|
#endif // normal_hh_INCLUDED
|