]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
New centralised helper function dup_mb_to_wc().
authorSimon Tatham <anakin@pobox.com>
Mon, 27 Jul 2015 19:06:02 +0000 (20:06 +0100)
committerSimon Tatham <anakin@pobox.com>
Mon, 27 Jul 2015 19:06:02 +0000 (20:06 +0100)
commit7762d7122609207059cf5cf58fb2b9c2de98dd36
tree570346b61f21796ab8880dd128b53be77fdb57fa
parent9bea08a298580c98889834cbaffe289301753989
New centralised helper function dup_mb_to_wc().

PuTTY's main mb_to_wc() function is all very well for embedding in
fiddly data pipelines, but for the simple job of turning a C string
into a C wide string, really I want something much more like
dupprintf. So here is one.

I've had to put it in a new separate source file miscucs.c rather than
throwing it into misc.c, because misc.c is linked into tools that
don't also include a module providing the internal Unicode API (winucs
or uxucs). The new miscucs.c appears only in Unicode-using tools.
Recipe
misc.h
miscucs.c [new file with mode: 0644]