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
b5158497
Commit
b5158497
authored
Nov 30, 2008
by
Christian Costa
Committed by
Alexandre Julliard
Dec 01, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dxof: Handle comments when going to next template or object.
parent
3310c72d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
10 deletions
+36
-10
d3dxof.c
dlls/d3dxof/d3dxof.c
+36
-10
No files found.
dlls/d3dxof/d3dxof.c
View file @
b5158497
...
...
@@ -1177,6 +1177,40 @@ static BOOL parse_template_parts(parse_buffer * buf)
return
TRUE
;
}
static
void
go_to_next_definition
(
parse_buffer
*
buf
)
{
while
(
buf
->
rem_bytes
)
{
char
c
=
*
buf
->
buffer
;
if
((
c
==
'#'
)
||
(
c
==
'/'
))
{
read_bytes
(
buf
,
&
c
,
1
);
/* Handle comment (# or //) */
if
(
c
==
'/'
)
{
if
(
!
read_bytes
(
buf
,
&
c
,
1
))
return
;
if
(
c
!=
'/'
)
return
;
}
c
=
0
;
while
(
c
!=
0x0A
)
{
if
(
!
read_bytes
(
buf
,
&
c
,
1
))
return
;
}
continue
;
}
else
if
(
is_space
(
*
buf
->
buffer
))
{
buf
->
buffer
++
;
buf
->
rem_bytes
--
;
}
else
break
;
}
}
static
BOOL
parse_template
(
parse_buffer
*
buf
)
{
if
(
get_TOKEN
(
buf
)
!=
TOKEN_TEMPLATE
)
...
...
@@ -1196,11 +1230,7 @@ static BOOL parse_template(parse_buffer * buf)
if
(
buf
->
txt
)
{
/* Go to the next template */
while
(
buf
->
rem_bytes
&&
is_space
(
*
buf
->
buffer
))
{
buf
->
buffer
++
;
buf
->
rem_bytes
--
;
}
go_to_next_definition
(
buf
);
}
TRACE
(
"%d - %s - %s
\n
"
,
buf
->
pdxf
->
nb_xtemplates
,
buf
->
pdxf
->
xtemplates
[
buf
->
pdxf
->
nb_xtemplates
].
name
,
debugstr_guid
(
&
buf
->
pdxf
->
xtemplates
[
buf
->
pdxf
->
nb_xtemplates
].
class_id
));
...
...
@@ -2136,11 +2166,7 @@ static BOOL parse_object(parse_buffer * buf)
if
(
buf
->
txt
)
{
/* Go to the next object */
while
(
buf
->
rem_bytes
&&
is_space
(
*
buf
->
buffer
))
{
buf
->
buffer
++
;
buf
->
rem_bytes
--
;
}
go_to_next_definition
(
buf
);
}
return
TRUE
;
...
...
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