mirror of
https://github.com/neovim/neovim.git
synced 2025-10-04 00:46:30 +00:00

Allow Include What You Use to remove unnecessary includes and only include what is necessary. This helps with reducing compilation times and makes it easier to visualise which dependencies are actually required. Work on https://github.com/neovim/neovim/issues/549, but doesn't close it since this only works fully for .c files and not headers.
23 lines
428 B
C
23 lines
428 B
C
#ifndef NVIM_STATE_H
|
|
#define NVIM_STATE_H
|
|
|
|
#include <stddef.h>
|
|
|
|
struct vim_state;
|
|
|
|
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
|