Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
f4eccde6
Commit
f4eccde6
authored
Oct 10, 2012
by
Matteo Bruni
Committed by
Alexandre Julliard
Oct 10, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dcompiler: Fix "for" syntax.
parent
f90f8957
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
hlsl.y
dlls/d3dcompiler_43/hlsl.y
+5
-6
No files found.
dlls/d3dcompiler_43/hlsl.y
View file @
f4eccde6
...
@@ -320,7 +320,7 @@ enum loop_type
...
@@ -320,7 +320,7 @@ enum loop_type
};
};
static struct list *create_loop(enum loop_type type, struct list *init, struct list *cond,
static struct list *create_loop(enum loop_type type, struct list *init, struct list *cond,
struct
list
*iter, struct list *body, struct source_location *loc)
struct
hlsl_ir_node
*iter, struct list *body, struct source_location *loc)
{
{
struct list *list = NULL;
struct list *list = NULL;
struct hlsl_ir_loop *loop = NULL;
struct hlsl_ir_loop *loop = NULL;
...
@@ -355,14 +355,13 @@ static struct list *create_loop(enum loop_type type, struct list *init, struct l
...
@@ -355,14 +355,13 @@ static struct list *create_loop(enum loop_type type, struct list *init, struct l
list_move_tail(loop->body, body);
list_move_tail(loop->body, body);
if (iter)
if (iter)
list_
move_tail(loop->body, iter
);
list_
add_tail(loop->body, &iter->entry
);
if (type == LOOP_DO_WHILE)
if (type == LOOP_DO_WHILE)
list_add_tail(loop->body, &cond_jump->node.entry);
list_add_tail(loop->body, &cond_jump->node.entry);
d3dcompiler_free(init);
d3dcompiler_free(init);
d3dcompiler_free(cond);
d3dcompiler_free(cond);
d3dcompiler_free(iter);
d3dcompiler_free(body);
d3dcompiler_free(body);
return list;
return list;
...
@@ -375,7 +374,7 @@ oom:
...
@@ -375,7 +374,7 @@ oom:
d3dcompiler_free(list);
d3dcompiler_free(list);
free_instr_list(init);
free_instr_list(init);
free_instr_list(cond);
free_instr_list(cond);
free_instr
_list
(iter);
free_instr(iter);
free_instr_list(body);
free_instr_list(body);
return NULL;
return NULL;
}
}
...
@@ -1651,7 +1650,7 @@ loop_statement: KW_WHILE '(' expr ')' statement
...
@@ -1651,7 +1650,7 @@ loop_statement: KW_WHILE '(' expr ')' statement
set_location(&loc, &@1);
set_location(&loc, &@1);
$$ = create_loop(LOOP_DO_WHILE, NULL, cond, NULL, $2, &loc);
$$ = create_loop(LOOP_DO_WHILE, NULL, cond, NULL, $2, &loc);
}
}
| KW_FOR '(' scope_start expr_statement expr_statement expr
_statement
')' statement
| KW_FOR '(' scope_start expr_statement expr_statement expr ')' statement
{
{
struct source_location loc;
struct source_location loc;
...
@@ -1659,7 +1658,7 @@ loop_statement: KW_WHILE '(' expr ')' statement
...
@@ -1659,7 +1658,7 @@ loop_statement: KW_WHILE '(' expr ')' statement
$$ = create_loop(LOOP_FOR, $4, $5, $6, $8, &loc);
$$ = create_loop(LOOP_FOR, $4, $5, $6, $8, &loc);
pop_scope(&hlsl_ctx);
pop_scope(&hlsl_ctx);
}
}
| KW_FOR '(' scope_start declaration expr_statement expr
_statement
')' statement
| KW_FOR '(' scope_start declaration expr_statement expr ')' statement
{
{
struct source_location loc;
struct source_location loc;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment