mirror of
https://github.com/neovim/neovim.git
synced 2026-01-28 16:12:01 +10:00
* refactor: format all C files under nvim
* refactor: disable formatting for Vim-owned files:
* src/nvim/indent_c.c
* src/nvim/regexp.c
* src/nvim/regexp_nfa.c
* src/nvim/testdir/samples/memfile_test.c
21 lines
409 B
C
21 lines
409 B
C
#ifndef NVIM_STATE_H
|
|
#define NVIM_STATE_H
|
|
|
|
#include <stddef.h>
|
|
|
|
typedef struct vim_state VimState;
|
|
|
|
typedef int (*state_check_callback)(VimState *state);
|
|
typedef int (*state_execute_callback)(VimState *state, int key);
|
|
|
|
struct vim_state {
|
|
state_check_callback check;
|
|
state_execute_callback execute;
|
|
};
|
|
|
|
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
|
# include "state.h.generated.h"
|
|
#endif
|
|
|
|
#endif // NVIM_STATE_H
|