From f50007b856b29d9f106f710313499fef68ba7e09 Mon Sep 17 00:00:00 2001 From: Matteo Bruni Date: Fri, 28 Sep 2012 17:22:40 +0200 Subject: [PATCH] d3dcompiler: Parse struct typedefs. --- dlls/d3dcompiler_43/hlsl.y | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dlls/d3dcompiler_43/hlsl.y b/dlls/d3dcompiler_43/hlsl.y index e7959625091..d8c82a94e35 100644 --- a/dlls/d3dcompiler_43/hlsl.y +++ b/dlls/d3dcompiler_43/hlsl.y @@ -1373,6 +1373,14 @@ typedef: KW_TYPEDEF var_modifiers type type_specs ';' if (!add_typedef($2, $3, $4, &loc)) return 1; } + | KW_TYPEDEF struct_spec type_specs ';' + { + struct source_location loc; + + set_location(&loc, &@1); + if (!add_typedef(0, $2, $3, &loc)) + return 1; + } type_specs: type_spec { -- 2.11.4.GIT