diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2015-11-12 12:19:58 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2015-11-12 12:19:58 +0000 |
commit | fb591537f8a623ac9ef3386af91916eb82537f76 (patch) | |
tree | 1d3424922971f03da951253452603714a24328d1 /usr.bin/tmux/tmux.h | |
parent | 757c0ecefee5f43cd1dad0c570020466884aca60 (diff) |
Tidy utf8.c a little: build table on first use, and make utf8_width take
a u_int rather than splitting and then combining again in utf8_split.
Diffstat (limited to 'usr.bin/tmux/tmux.h')
-rw-r--r-- | usr.bin/tmux/tmux.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h index f44c98da3d8..f19ed3c3c5a 100644 --- a/usr.bin/tmux/tmux.h +++ b/usr.bin/tmux/tmux.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tmux.h,v 1.573 2015/11/12 11:10:50 nicm Exp $ */ +/* $OpenBSD: tmux.h,v 1.574 2015/11/12 12:19:57 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -2181,7 +2181,7 @@ void session_group_synchronize1(struct session *, struct session *); void session_renumber_windows(struct session *); /* utf8.c */ -void utf8_build(void); +u_int utf8_width(u_int); void utf8_set(struct utf8_data *, u_char); int utf8_open(struct utf8_data *, u_char); int utf8_append(struct utf8_data *, u_char); |