commit | f50007b856b29d9f106f710313499fef68ba7e09 | [log] [tgz] |
---|---|---|
author | Matteo Bruni <mbruni@codeweavers.com> | Fri Sep 28 17:22:40 2012 +0200 |
committer | Alexandre Julliard <julliard@winehq.org> | Fri Sep 28 17:53:03 2012 +0200 |
tree | 153c0d0890720845c3ae59ec295f9d0513584cab | |
parent | 6b2ecb509abeb53ed552da14161c694afd9284ee [diff] |
d3dcompiler: Parse struct typedefs.
diff --git a/dlls/d3dcompiler_43/hlsl.y b/dlls/d3dcompiler_43/hlsl.y index e795962..d8c82a9 100644 --- a/dlls/d3dcompiler_43/hlsl.y +++ b/dlls/d3dcompiler_43/hlsl.y
@@ -1373,6 +1373,14 @@ 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 {