[BACK]Return to utf8.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/utf8.c between version 1.57 and 1.58

version 1.57, 2020/09/16 18:37:55 version 1.58, 2021/06/10 07:56:47
Line 65 
Line 65 
 static u_int utf8_next_index;  static u_int utf8_next_index;
   
 #define UTF8_GET_SIZE(uc) (((uc) >> 24) & 0x1f)  #define UTF8_GET_SIZE(uc) (((uc) >> 24) & 0x1f)
 #define UTF8_GET_WIDTH(flags) (((uc) >> 29) - 1)  #define UTF8_GET_WIDTH(uc) (((uc) >> 29) - 1)
   
 #define UTF8_SET_SIZE(size) (((utf8_char)(size)) << 24)  #define UTF8_SET_SIZE(size) (((utf8_char)(size)) << 24)
 #define UTF8_SET_WIDTH(width) ((((utf8_char)(width)) + 1) << 29)  #define UTF8_SET_WIDTH(width) ((((utf8_char)(width)) + 1) << 29)

Legend:
Removed from v.1.57  
changed lines
  Added in v.1.58