comparison src/libvterm/src/utf8.h @ 13770:2449b6ce1456 v8.0.1757

patch 8.0.1757: unnecessary changes in libvterm commit https://github.com/vim/vim/commit/b691de05f69905fe417f583083d7e3cc16eb865e Author: Bram Moolenaar <Bram@vim.org> Date: Tue Apr 24 18:39:14 2018 +0200 patch 8.0.1757: unnecessary changes in libvterm Problem: Unnecessary changes in libvterm. Solution: Bring back // comments and trailing comma in enums.
author Christian Brabandt <cb@256bit.org>
date Tue, 24 Apr 2018 18:45:07 +0200
parents b8299e742f41
children 811a12a78164
comparison
equal deleted inserted replaced
13769:804c3b21ce59 13770:2449b6ce1456
22 #if defined(DEFINE_INLINES) || USE_INLINE 22 #if defined(DEFINE_INLINES) || USE_INLINE
23 INLINE int fill_utf8(long codepoint, char *str) 23 INLINE int fill_utf8(long codepoint, char *str)
24 { 24 {
25 int nbytes = utf8_seqlen(codepoint); 25 int nbytes = utf8_seqlen(codepoint);
26 26
27 /* This is easier done backwards */ 27 // This is easier done backwards
28 int b = nbytes; 28 int b = nbytes;
29 while(b > 1) { 29 while(b > 1) {
30 b--; 30 b--;
31 str[b] = 0x80 | (codepoint & 0x3f); 31 str[b] = 0x80 | (codepoint & 0x3f);
32 codepoint >>= 6; 32 codepoint >>= 6;