1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-25 01:02:24 +00:00
putty-source/windows/utils
Simon Tatham be8d3974ff Generalise strbuf_catf() into put_fmt().
marshal.h now provides a macro put_fmt() which allows you to write
arbitrary printf-formatted data to an arbitrary BinarySink.

We already had this facility for strbufs in particular, in the form of
strbuf_catf(). That was able to take advantage of knowing the inner
structure of a strbuf to minimise memory allocation (it would snprintf
directly into the strbuf's existing buffer if possible). For a general
black-box BinarySink we can't do that, so instead we dupvprintf into a
temporary buffer.

For consistency, I've removed strbuf_catf, and converted all uses of
it into the new put_fmt - and I've also added an extra vtable method
in the BinarySink API, so that put_fmt can still use strbuf_catf's
more efficient memory management when talking to a strbuf, and fall
back to the simpler strategy when that's not available.
2021-11-19 11:32:47 +00:00
..
arm_arch_queries.c Break up crypto modules containing HW acceleration. 2021-04-21 21:55:26 +01:00
cryptoapi.c Merge connshare socket naming fix from 'pre-0.75'. 2021-05-02 08:19:28 +01:00
defaults.c
dll_hijacking_protection.c
dputs.c Windows dputs: use WriteFile to avoid stdio buffering. 2021-09-30 19:00:11 +01:00
escape_registry_key.c
filename.c
fontspec.c
get_system_dir.c Factor out Windows utility function get_system_dir(). 2021-05-08 17:18:17 +01:00
get_username.c
getdlgitemtext_alloc.c
is_console_handle.c
load_system32_dll.c Factor out Windows utility function get_system_dir(). 2021-05-08 17:18:17 +01:00
ltime.c
makedlgitemborderless.c
message_box.c
minefield.c
open_for_write_would_lose_data.c
pgp_fingerprints_msgbox.c
platform_get_x_display.c
registry_get_string.c
request_file.c New library-style 'utils' subdirectories. 2021-04-18 08:18:27 +01:00
security.c Rename most of the platform source files. 2021-04-26 18:00:01 +01:00
split_into_argv.c Generalise strbuf_catf() into put_fmt(). 2021-11-19 11:32:47 +00:00
strtoumax.c
version.c
win_strerror.c