]> 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>
Sat, 17 Oct 2015 16:30:16 +0000 (17:30 +0100)
commit1f7f422d7aef019a6e17526f97ba9d15b56e78d3
tree2670cfec8c80577bf93415d42caf21d2a8c31e5b
parent557a99e78e51e791eac0216aa5a4b01005ac5115
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.

(cherry picked from commit 7762d7122609207059cf5cf58fb2b9c2de98dd36)
Recipe
misc.h
miscucs.c [new file with mode: 0644]