aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/types.h
diff options
context:
space:
mode:
authorMichael Reed <m.reed@mykolab.com>2015-02-03 20:55:00 -0500
committerJustin M. Keyes <justinkz@gmail.com>2015-03-05 19:03:35 -0500
commit70a7517d17080e8de6616fa16608fd14da0498a1 (patch)
treedbe845a445397089b8e254390a812fb1f3c077af /src/nvim/types.h
parentc5c3eb99d3d893a4561a83041495f457fc0a9ade (diff)
downloadrneovim-70a7517d17080e8de6616fa16608fd14da0498a1.tar.gz
rneovim-70a7517d17080e8de6616fa16608fd14da0498a1.tar.bz2
rneovim-70a7517d17080e8de6616fa16608fd14da0498a1.zip
Macro cleanup: UNICODE16
Fix clint warnings as well.
Diffstat (limited to 'src/nvim/types.h')
-rw-r--r--src/nvim/types.h16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/nvim/types.h b/src/nvim/types.h
index a87122d24b..afd684925a 100644
--- a/src/nvim/types.h
+++ b/src/nvim/types.h
@@ -13,19 +13,11 @@
// dummy to pass an ACL to a function
typedef void *vim_acl_T;
-/*
- * Shorthand for unsigned variables. Many systems, but not all, have u_char
- * already defined, so we use char_u to avoid trouble.
- */
+// Shorthand for unsigned variables. Many systems, but not all, have u_char
+// already defined, so we use char_u to avoid trouble.
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
+// Can hold one decoded UTF-8 character.
typedef uint32_t u8char_T;
-#endif
-#endif /* NVIM_TYPES_H */
+#endif // NVIM_TYPES_H