13 Jun
2023
13 Jun
'23
5:06 a.m.
This introduces temporary helpers block_to_list and list_to_block. The job of block_to_list(), at least, could be done by simply writing "&block->instrs" everywhere instead. Using the helper instead ensures that all of these instances will eventually be converted. -- v3: vkd3d-shader/hlsl: Store the fields of struct parse_if_body as hlsl_block pointers. vkd3d-shader/hlsl: Store the "instrs" field of struct parse_initializer as a hlsl_block pointer. vkd3d-shader/hlsl: Merge the "discard_statement" rule into "jump_statement". vkd3d-shader/hlsl: Use add_unary_arithmetic_expr() in the subtraction rule. vkd3d-shader/hlsl: Factor out add_binary_expr_merge(). https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/230