21 Feb
2023
21 Feb
'23
11:34 p.m.
Zebediah Figura (@zfigura) commented about libs/vkd3d-shader/hlsl.c:
}
-struct hlsl_type *hlsl_get_type(struct hlsl_scope *scope, const char *name, bool recursive) +static const char * get_case_insensitive_typename(const char *name) +{ + static const char *const names[] = + { + "dword", + }; + unsigned int i; + + for (i = 0; i < ARRAY_SIZE(names); ++i) + if (!ascii_strcasecmp(names[i], name)) + { + return names[i]; + } Sorry, I wasn't clear enough. I mean braces for the "for" body, not the "if" body.
-- https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/101#note_25093