diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2016-02-19 13:14:17 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2016-02-19 13:14:17 +0000 |
commit | acc1090e778090b8c5d2488220897873266dc368 (patch) | |
tree | 861af8b648615a979ffe91dfbb64c0ca75f74658 /tmux.h | |
parent | fc864529f587fc4c913d1ad40da41eab2e512521 (diff) | |
download | rtmux-acc1090e778090b8c5d2488220897873266dc368.tar.gz rtmux-acc1090e778090b8c5d2488220897873266dc368.tar.bz2 rtmux-acc1090e778090b8c5d2488220897873266dc368.zip |
Use system wcwidth() instead of carrying around UTF-8 width tables.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -29,6 +29,7 @@ #include <stdarg.h> #include <stdio.h> #include <termios.h> +#include <wchar.h> #ifdef HAVE_UTEMPTER #include <utempter.h> @@ -2313,14 +2314,13 @@ void session_group_synchronize1(struct session *, struct session *); void session_renumber_windows(struct session *); /* utf8.c */ -u_int utf8_width(u_int); void utf8_set(struct utf8_data *, u_char); void utf8_copy(struct utf8_data *, const struct utf8_data *); enum utf8_state utf8_open(struct utf8_data *, u_char); enum utf8_state utf8_append(struct utf8_data *, u_char); -u_int utf8_combine(const struct utf8_data *); -enum utf8_state utf8_split(u_int, struct utf8_data *); -u_int utf8_split2(u_int, u_char *); +u_int utf8_width(wchar_t); +wchar_t utf8_combine(const struct utf8_data *); +enum utf8_state utf8_split(wchar_t, struct utf8_data *); int utf8_strvis(char *, const char *, size_t, int); char *utf8_sanitize(const char *); struct utf8_data *utf8_fromcstr(const char *); |