summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/malloc.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2009-10-20 19:18:28 +0000
committernicm <nicm@openbsd.org>2009-10-20 19:18:28 +0000
commit40cac5277baf64e035a0a2810e0bdbcaa50b0552 (patch)
treef52a5cdb6a5ff319f718cedc47acf7895d051cc3 /lib/libc/stdlib/malloc.c
parentUTF-8 combined character fixes. (diff)
downloadwireguard-openbsd-40cac5277baf64e035a0a2810e0bdbcaa50b0552.tar.xz
wireguard-openbsd-40cac5277baf64e035a0a2810e0bdbcaa50b0552.zip
Try to reduce the UTF-8 mess.
Get rid of passing around u_char[4]s and define a struct utf8_data which has character data, size (sequence length) and width. Move UTF-8 character collection into two functions utf8_open/utf8_append in utf8.c which fill in this struct and use these functions from input.c and the various functions in screen-write.c. Space for rather more data than is necessary for one UTF-8 sequence is in the utf8_data struct because screen_write_copy is still nasty and needs to reinject the character (after combining) into screen_write_cell.
Diffstat (limited to 'lib/libc/stdlib/malloc.c')
0 files changed, 0 insertions, 0 deletions