Question about `Avoid const strarray pointers in all functions' patch
February 2025
3: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
391
Age (days ago)
391
Last active (days ago)
1 comments
2 participants
participants (2)
-
Alexandre Julliard -
Mitch Wilkinson