Mercurial > vim
diff src/vim.h @ 15609:b440c7becbca v8.1.0812
patch 8.1.0812: Unicode 16 feature is not useful
commit https://github.com/vim/vim/commit/9ba6117de6dc2993f8b42ccb9754c23694db2950
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jan 24 18:20:17 2019 +0100
patch 8.1.0812: Unicode 16 feature is not useful
Problem: Unicode 16 feature is not useful and cannot be detected.
Solution: Remove UNICODE16.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 24 Jan 2019 18:30:06 +0100 |
parents | 2dcaa860e3fc |
children | bfbdef46aa7d |
line wrap: on
line diff
--- a/src/vim.h +++ b/src/vim.h @@ -431,15 +431,9 @@ typedef unsigned short sattr_T; /* * 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. + * We use 32 bits, since some Asian characters don't fit in 16 bits. */ -#ifdef UNICODE16 -typedef unsigned short u8char_T; /* short should be 16 bits */ -#else -typedef unsigned int u8char_T; /* int is 32 bits or more */ -#endif +typedef unsigned int u8char_T; // int is 32 bits or more #ifndef UNIX /* For Unix this is included in os_unix.h */ # include <stdio.h>