types.h
Go to the documentation of this file.
1 #ifndef NVIM_TYPES_H
2 #define NVIM_TYPES_H
3 
4 #include <stdbool.h>
5 #include <stdint.h>
6 
7 // dummy to pass an ACL to a function
8 typedef void *vim_acl_T;
9 
10 // Shorthand for unsigned variables. Many systems, but not all, have u_char
11 // already defined, so we use char_u to avoid trouble.
12 typedef unsigned char char_u;
13 
14 // Can hold one decoded UTF-8 character.
15 typedef uint32_t u8char_T;
16 
17 // Opaque handle used by API clients to refer to various objects in vim
18 typedef int handle_T;
19 
20 // Opaque handle to a lua value. Must be free with `api_free_luaref` when
21 // not needed anymore! LUA_NOREF represents missing reference, i e to indicate
22 // absent callback etc.
23 typedef int LuaRef;
24 
25 typedef handle_T NS;
26 
27 typedef struct expand expand_T;
28 
29 typedef enum {
30  kNone = -1,
31  kFalse = 0,
32  kTrue = 1,
33 } TriState;
34 
35 #endif // NVIM_TYPES_H
TriState
TriState
Definition: types.h:29
NS
handle_T NS
Definition: types.h:25
expand
Definition: ex_cmds_defs.h:190
kFalse
@ kFalse
Definition: types.h:31
LuaRef
int LuaRef
Definition: types.h:23
u8char_T
uint32_t u8char_T
Definition: types.h:15
kTrue
@ kTrue
Definition: types.h:32
char_u
unsigned char char_u
Definition: types.h:12
handle_T
int handle_T
Definition: types.h:18
vim_acl_T
void * vim_acl_T
Definition: types.h:8
kNone
@ kNone
Definition: types.h:30