diff options
author | Nicolas Hillegeer <nicolas@hillegeer.com> | 2014-07-18 10:51:44 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-07-20 16:59:57 -0400 |
commit | ab1eec10a1906cadeed7f480b0d12505a0fba0ad (patch) | |
tree | d4452ccd50ba368d02e953dd0f40bd6378fd56e1 /src/nvim/types.h | |
parent | d19712f23345af2545af609721f1dbccd002a0df (diff) | |
download | rneovim-ab1eec10a1906cadeed7f480b0d12505a0fba0ad.tar.gz rneovim-ab1eec10a1906cadeed7f480b0d12505a0fba0ad.tar.bz2 rneovim-ab1eec10a1906cadeed7f480b0d12505a0fba0ad.zip |
globals.h: decouple vim.h and globals.h
Allow globals.h to be included without including vim.h. Another small piece
of the puzzle of dismantling vim.h.
Moving some extra `#define`'s to globals.h is no better than having them in
vim.h. We should, in a later PR, move them to the file where they belong or
to a separate `constants.h` or something.
Diffstat (limited to 'src/nvim/types.h')
-rw-r--r-- | src/nvim/types.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nvim/types.h b/src/nvim/types.h index 9d53722014..c18c6abb4b 100644 --- a/src/nvim/types.h +++ b/src/nvim/types.h @@ -24,4 +24,13 @@ typedef uintptr_t long_u; */ typedef unsigned char char_u; +// The u8char_T can hold one decoded UTF-8 character. We normally use 32 +// bits now, since some Asian characters don't fit in 16 bits. u8char_T is +// only used for displaying, it could be 16 bits to save memory. +#ifdef UNICODE16 +typedef uint16_t u8char_T; +#else +typedef uint32_t u8char_T; +#endif + #endif /* NVIM_TYPES_H */ |