mirror of
https://github.com/neovim/neovim.git
synced 2025-10-03 00:18:33 +00:00
refactor(api): use hashy hash for looking up api method and event names
This avoids generating khash tables at runtime, and is consistent with how evalfuncs lookup work.
This commit is contained in:
@@ -3,7 +3,10 @@
|
||||
|
||||
#include "nvim/api/private/defs.h"
|
||||
|
||||
typedef void (*UIClientHandler)(Array args);
|
||||
typedef struct {
|
||||
const char *name;
|
||||
void (*fn)(Array args);
|
||||
} UIClientHandler;
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "ui_client.h.generated.h"
|
||||
|
Reference in New Issue
Block a user