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
f39547f5
Commit
f39547f5
authored
May 30, 2013
by
Christian Costa
Committed by
Alexandre Julliard
Jun 03, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dxof: Uncomment some traces and use better name for some variables.
parent
edf46d91
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
14 deletions
+11
-14
parsing.c
dlls/d3dxof/parsing.c
+11
-14
No files found.
dlls/d3dxof/parsing.c
View file @
f39547f5
...
...
@@ -647,7 +647,6 @@ static WORD parse_TOKEN(parse_buffer * buf)
char
c
;
if
(
!
read_bytes
(
buf
,
&
c
,
1
))
return
TOKEN_NONE
;
/*TRACE("char = '%c'\n", is_space(c) ? ' ' : c);*/
if
((
c
==
'#'
)
||
(
c
==
'/'
))
{
/* Handle comment (# or //) */
...
...
@@ -766,16 +765,14 @@ static WORD parse_TOKEN(parse_buffer * buf)
case
TOKEN_NAME
:
{
DWORD
count
;
char
strname
[
100
]
;
char
*
name
=
(
char
*
)
buf
->
value
;
if
(
!
read_bytes
(
buf
,
&
count
,
4
))
return
TOKEN_ERROR
;
if
(
!
read_bytes
(
buf
,
str
name
,
count
))
if
(
!
read_bytes
(
buf
,
name
,
count
))
return
TOKEN_ERROR
;
strname
[
count
]
=
0
;
/*TRACE("name = %s\n", strname);*/
strcpy
((
char
*
)
buf
->
value
,
strname
);
name
[
count
]
=
0
;
TRACE
(
"name = %s
\n
"
,
name
);
}
break
;
case
TOKEN_INTEGER
:
...
...
@@ -784,7 +781,7 @@ static WORD parse_TOKEN(parse_buffer * buf)
if
(
!
read_bytes
(
buf
,
&
integer
,
4
))
return
TOKEN_ERROR
;
/*TRACE("integer = %ld\n", integer);*/
TRACE
(
"integer = %u
\n
"
,
integer
);
*
(
DWORD
*
)
buf
->
value
=
integer
;
}
...
...
@@ -799,7 +796,7 @@ static WORD parse_TOKEN(parse_buffer * buf)
sprintf
(
strguid
,
CLSIDFMT
,
class_id
.
Data1
,
class_id
.
Data2
,
class_id
.
Data3
,
class_id
.
Data4
[
0
],
class_id
.
Data4
[
1
],
class_id
.
Data4
[
2
],
class_id
.
Data4
[
3
],
class_id
.
Data4
[
4
],
class_id
.
Data4
[
5
],
class_id
.
Data4
[
6
],
class_id
.
Data4
[
7
]);
/*TRACE("guid = {%s}\n", strguid);*/
TRACE
(
"guid = %s
\n
"
,
strguid
);
*
(
GUID
*
)
buf
->
value
=
class_id
;
}
...
...
@@ -808,19 +805,19 @@ static WORD parse_TOKEN(parse_buffer * buf)
{
DWORD
count
;
WORD
tmp_token
;
char
strname
[
100
];
char
*
string
=
(
char
*
)
buf
->
value
;
if
(
!
read_bytes
(
buf
,
&
count
,
4
))
return
TOKEN_ERROR
;
if
(
!
read_bytes
(
buf
,
str
name
,
count
))
if
(
!
read_bytes
(
buf
,
str
ing
,
count
))
return
TOKEN_ERROR
;
str
name
[
count
]
=
0
;
str
ing
[
count
]
=
0
;
if
(
!
read_bytes
(
buf
,
&
tmp_token
,
2
))
return
TOKEN_ERROR
;
if
((
tmp_token
!=
TOKEN_COMMA
)
&&
(
tmp_token
!=
TOKEN_SEMICOLON
))
ERR
(
"No comma or semicolon (got %d)
\n
"
,
tmp_token
);
/*TRACE("name = %s\n", strname);*/
TRACE
(
"string = %s
\n
"
,
string
);
strcpy
((
char
*
)
buf
->
value
,
strname
);
token
=
TOKEN_LPSTR
;
}
break
;
...
...
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