Mercurial > vim
comparison src/libvterm/src/utf8.h @ 20518:a4652d7ec99f v8.2.0813
patch 8.2.0813: libvterm code is slightly different from upstream
Commit: https://github.com/vim/vim/commit/591cec8366e87a172495c362477cbf5de8d399f0
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri May 22 22:06:06 2020 +0200
patch 8.2.0813: libvterm code is slightly different from upstream
Problem: libvterm code is slightly different from upstream.
Solution: Use upstream text to avoid future merge problems. Mainly comment
style changes.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 22 May 2020 22:15:04 +0200 |
parents | 811a12a78164 |
children |
comparison
equal
deleted
inserted
replaced
20517:a7c6cd0d7ba0 | 20518:a4652d7ec99f |
---|---|
14 if(codepoint < 0x4000000) return 5; | 14 if(codepoint < 0x4000000) return 5; |
15 return 6; | 15 return 6; |
16 } | 16 } |
17 #endif | 17 #endif |
18 | 18 |
19 // Does NOT NUL-terminate the buffer | 19 /* Does NOT NUL-terminate the buffer */ |
20 int fill_utf8(long codepoint, char *str); | 20 int fill_utf8(long codepoint, char *str); |
21 | 21 |
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 { |
42 } | 42 } |
43 | 43 |
44 return nbytes; | 44 return nbytes; |
45 } | 45 } |
46 #endif | 46 #endif |
47 // end copy | 47 /* end copy */ |