Question about `Avoid const strarray pointers in all functions' patch
27 Feb
27 Feb
9:26 p.m.
Mitch Wilkinson <foo.ami(a)yandex.com> writes:
Patch 0828f33e550 (tools: Avoid const strarray pointers in all functions., 2025-02-26)[1] recently landed to `Wine development'. Can anyone explain me what motivation was behind changing type of function parameter(s)? Does this affect function inlining, or something?
There's no performance improvement, it's for consistency with the other similar functions that take an strarray as input. Not passing a pointer makes it obvious that the array is not modified. -- Alexandre Julliard julliard(a)winehq.org
287
Age (days ago)
287
Last active (days ago)
1 comments
2 participants
participants (2)
-
Alexandre Julliard -
Mitch Wilkinson