aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/types.h
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2014-07-20 18:12:45 -0400
committerJustin M. Keyes <justinkz@gmail.com>2014-07-20 18:12:45 -0400
commita9d679b1d703ff6213651e54e035fcf5ee8d88d0 (patch)
treee9880fffeb58d9795e96f42fe5b56547a0e8ddb5 /src/nvim/types.h
parentc7eb8c5cd7efb12a8096418196408a60053ebc62 (diff)
parent2fcfee39ce56344477f835e57738284790cad305 (diff)
downloadrneovim-a9d679b1d703ff6213651e54e035fcf5ee8d88d0.tar.gz
rneovim-a9d679b1d703ff6213651e54e035fcf5ee8d88d0.tar.bz2
rneovim-a9d679b1d703ff6213651e54e035fcf5ee8d88d0.zip
Merge #962 'Implement startuptime functions on top of profiling functions'
Diffstat (limited to 'src/nvim/types.h')
-rw-r--r--src/nvim/types.h9
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 */