[PATCH 3/5] d3dcompiler: Parse struct typedefs.
Matteo Bruni
mbruni at codeweavers.com
Fri Sep 28 10:22:40 CDT 2012
---
dlls/d3dcompiler_43/hlsl.y | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
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 @@ 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
{
--
1.7.8.6
More information about the wine-patches
mailing list