Matteo Bruni : d3dcompiler: Parse "for" loops without variable declarations .
Alexandre Julliard
julliard at winehq.org
Fri Sep 21 14:22:41 CDT 2012
Module: wine
Branch: master
Commit: 6e4617c14a7f6e4ebee90c3e4b811b727ad06bf9
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6e4617c14a7f6e4ebee90c3e4b811b727ad06bf9
Author: Matteo Bruni <mbruni at codeweavers.com>
Date: Fri Sep 21 16:25:58 2012 +0200
d3dcompiler: Parse "for" loops without variable declarations.
---
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 9bc9145..11764e5 100644
--- a/dlls/d3dcompiler_43/hlsl.y
+++ b/dlls/d3dcompiler_43/hlsl.y
@@ -1383,6 +1383,14 @@ loop_statement: KW_WHILE '(' expr ')' statement
set_location(&loc, &@1);
$$ = create_loop(LOOP_DO_WHILE, NULL, cond, NULL, $2, &loc);
}
+ | KW_FOR '(' scope_start expr_statement expr_statement expr_statement ')' statement
+ {
+ struct source_location loc;
+
+ set_location(&loc, &@1);
+ $$ = create_loop(LOOP_FOR, $4, $5, $6, $8, &loc);
+ pop_scope(&hlsl_ctx);
+ }
expr_statement: ';'
{
More information about the wine-cvs
mailing list