diff options
author | Josh Rahm <joshuarahm@gmail.com> | 2023-11-30 20:35:25 +0000 |
---|---|---|
committer | Josh Rahm <joshuarahm@gmail.com> | 2023-11-30 20:35:25 +0000 |
commit | 1b7b916b7631ddf73c38e3a0070d64e4636cb2f3 (patch) | |
tree | cd08258054db80bb9a11b1061bb091c70b76926a /src/nvim/mbyte_defs.h | |
parent | eaa89c11d0f8aefbb512de769c6c82f61a8baca3 (diff) | |
parent | 4a8bf24ac690004aedf5540fa440e788459e5e34 (diff) | |
download | rneovim-aucmd_textputpost.tar.gz rneovim-aucmd_textputpost.tar.bz2 rneovim-aucmd_textputpost.zip |
Merge remote-tracking branch 'upstream/master' into aucmd_textputpostaucmd_textputpost
Diffstat (limited to 'src/nvim/mbyte_defs.h')
-rw-r--r-- | src/nvim/mbyte_defs.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/nvim/mbyte_defs.h b/src/nvim/mbyte_defs.h index e913e20f9f..2904047223 100644 --- a/src/nvim/mbyte_defs.h +++ b/src/nvim/mbyte_defs.h @@ -1,9 +1,13 @@ -#ifndef NVIM_MBYTE_DEFS_H -#define NVIM_MBYTE_DEFS_H +#pragma once #include <stdbool.h> -#include "nvim/iconv.h" +#include "nvim/iconv_defs.h" + +/// Maximum number of bytes in a multi-byte character. It can be one 32-bit +/// character of up to 6 bytes, or one 16-bit character of up to three bytes +/// plus six following composing characters of three bytes each. +enum { MB_MAXBYTES = 21, }; /// max length of an unicode char enum { MB_MAXCHAR = 6, }; @@ -50,5 +54,3 @@ typedef struct { bool vc_fail; ///< What to do with invalid characters: if true, fail, ///< otherwise use '?'. } vimconv_T; - -#endif // NVIM_MBYTE_DEFS_H |