0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.1.0812: Unicode 16 feature is not useful

Problem:    Unicode 16 feature is not useful and cannot be detected.
Solution:   Remove UNICODE16.
This commit is contained in:
Bram Moolenaar
2019-01-24 18:20:17 +01:00
parent 30276f2beb
commit 9ba6117de6
4 changed files with 9 additions and 48 deletions

View File

@@ -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>