[PATCH 2/7] reg: Split reg_printfW into separate functions

Alexandre Julliard julliard at winehq.org
Tue Feb 9 00:24:58 CST 2016


Hugh McMaster <hugh.mcmaster at outlook.com> writes:

> I considered output_string, but I thought it might cause confusion.
> Consider this:
>
> output_message(STRING_INVALID_KEY); // message as resource string
> output_string(pointer to some array of WCHAR, ...) // we pass in a
> pointer. Why don't we do output_string(STRING_INVALID_KEY)?
>
> So the reference to a string in the function name and in the resource
> identifier could cause confusion because it looks as though
> they should be related. Or that's my reading of it, at least.
>
> Is either output_arraystr or output_strarray suitable?

Now it feels like it will output an array of strings...

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list