I'm going to bring back the question of how to statically assign structs with WCHAR strings inside them.
The options are:
* Cast the array notation:
(const WCHAR []){'S','T','R','I','N','G',0}
Which is a C99 feature.
* Assign each string to a variable and assign each variable to the struct: [1]
This has a lot of lines of code, and personally I think it almost looks worse than what was there before.
* Make the structs use arrays: [2]
This brings the fixed length issue, but it seems much cleaner than [1]
Is there any reason to prefer [1] to [2]? Is there a better way of doing this?
[1] https://github.com/jnvsor/wine/commit/9efaba8c3 [2] https://github.com/jnvsor/wine/commit/80ee795c1