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
555f6349
Commit
555f6349
authored
May 08, 2012
by
Matteo Bruni
Committed by
Alexandre Julliard
May 08, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dcompiler: Make set_parse_status() more general.
parent
167612ae
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
7 deletions
+16
-7
asmparser.c
dlls/d3dcompiler_43/asmparser.c
+0
-0
asmshader.l
dlls/d3dcompiler_43/asmshader.l
+1
-1
asmshader.y
dlls/d3dcompiler_43/asmshader.y
+0
-0
d3dcompiler_private.h
dlls/d3dcompiler_43/d3dcompiler_private.h
+15
-6
No files found.
dlls/d3dcompiler_43/asmparser.c
View file @
555f6349
This diff is collapsed.
Click to expand it.
dlls/d3dcompiler_43/asmshader.l
View file @
555f6349
...
...
@@ -480,7 +480,7 @@ false {
{ANY} {
asmparser_message(&asm_ctx, "Line %u: Unexpected input %s\n", asm_ctx.line_no, yytext);
set_parse_status(&asm_ctx, PARSE_ERR);
set_parse_status(&asm_ctx
.status
, PARSE_ERR);
}
%%
...
...
dlls/d3dcompiler_43/asmshader.y
View file @
555f6349
This diff is collapsed.
Click to expand it.
dlls/d3dcompiler_43/d3dcompiler_private.h
View file @
555f6349
...
...
@@ -209,6 +209,13 @@ BOOL record_sampler(struct bwriter_shader *shader, DWORD samptype, DWORD mod, DW
#define MESSAGEBUFFER_INITIAL_SIZE 256
enum
parse_status
{
PARSE_SUCCESS
=
0
,
PARSE_WARN
=
1
,
PARSE_ERR
=
2
};
struct
asm_parser
{
/* The function table of the parser implementation */
const
struct
asmparser_backend
*
funcs
;
...
...
@@ -217,11 +224,7 @@ struct asm_parser {
struct
bwriter_shader
*
shader
;
unsigned
int
m3x3pad_count
;
enum
parse_status
{
PARSE_SUCCESS
=
0
,
PARSE_WARN
=
1
,
PARSE_ERR
=
2
}
status
;
enum
parse_status
status
;
char
*
messages
;
unsigned
int
messagesize
;
unsigned
int
messagecapacity
;
...
...
@@ -253,7 +256,13 @@ struct bwriter_shader *parse_asm_shader(char **messages) DECLSPEC_HIDDEN;
#endif
void
asmparser_message
(
struct
asm_parser
*
ctx
,
const
char
*
fmt
,
...)
PRINTF_ATTR
(
2
,
3
)
DECLSPEC_HIDDEN
;
void
set_parse_status
(
struct
asm_parser
*
ctx
,
enum
parse_status
status
)
DECLSPEC_HIDDEN
;
static
inline
void
set_parse_status
(
enum
parse_status
*
current
,
enum
parse_status
update
)
{
if
(
update
==
PARSE_ERR
)
*
current
=
PARSE_ERR
;
else
if
(
update
==
PARSE_WARN
&&
*
current
==
PARSE_SUCCESS
)
*
current
=
PARSE_WARN
;
}
/* A reasonable value as initial size */
#define BYTECODEBUFFER_INITIAL_SIZE 32
...
...
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