Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
5bcf8de8
Commit
5bcf8de8
authored
Jul 12, 2012
by
Matteo Bruni
Committed by
Alexandre Julliard
Jul 12, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dcompiler: Introduce source_location structure.
parent
40cbcabc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
6 deletions
+11
-6
d3dcompiler_private.h
dlls/d3dcompiler_43/d3dcompiler_private.h
+8
-3
hlsl.y
dlls/d3dcompiler_43/hlsl.y
+2
-2
utils.c
dlls/d3dcompiler_43/utils.c
+1
-1
No files found.
dlls/d3dcompiler_43/d3dcompiler_private.h
View file @
5bcf8de8
...
...
@@ -690,6 +690,13 @@ struct hlsl_struct_field
DWORD
modifiers
;
};
struct
source_location
{
const
char
*
file
;
unsigned
int
line
;
unsigned
int
col
;
};
enum
hlsl_ir_node_type
{
HLSL_IR_VAR
=
0
,
...
...
@@ -705,9 +712,7 @@ struct hlsl_ir_node
enum
hlsl_ir_node_type
type
;
struct
hlsl_type
*
data_type
;
const
char
*
source_file
;
unsigned
int
line
;
unsigned
int
column
;
struct
source_location
loc
;
};
#define HLSL_STORAGE_EXTERN 0x00000001
...
...
dlls/d3dcompiler_43/hlsl.y
View file @
5bcf8de8
...
...
@@ -136,7 +136,7 @@ static BOOL declare_variable(struct hlsl_ir_var *decl, BOOL local)
struct hlsl_ir_var *old = get_variable(hlsl_ctx.cur_scope, decl->name);
hlsl_message("Line %u: \"%s\" already declared.\n", hlsl_ctx.line_no, decl->name);
hlsl_message("Line %u: \"%s\" was previously declared here.\n", old->node.line, decl->name);
hlsl_message("Line %u: \"%s\" was previously declared here.\n", old->node.l
oc.l
ine, decl->name);
set_parse_status(&hlsl_ctx.status, PARSE_ERR);
return FALSE;
}
...
...
@@ -616,7 +616,7 @@ declaration: var_modifiers type variables_def ';'
var->name = v->name;
var->modifiers = $1;
var->semantic = v->semantic;
var->node.line = hlsl_ctx.line_no;
var->node.l
oc.l
ine = hlsl_ctx.line_no;
if (v->initializer)
{
FIXME("Variable with an initializer.\n");
...
...
dlls/d3dcompiler_43/utils.c
View file @
5bcf8de8
...
...
@@ -816,7 +816,7 @@ BOOL add_func_parameter(struct list *list, struct parse_parameter *param, unsign
}
decl
->
node
.
type
=
HLSL_IR_VAR
;
decl
->
node
.
data_type
=
param
->
type
;
decl
->
node
.
line
=
line
;
decl
->
node
.
l
oc
.
l
ine
=
line
;
decl
->
name
=
param
->
name
;
decl
->
semantic
=
param
->
semantic
;
decl
->
modifiers
=
param
->
modifiers
;
...
...
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