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
c38c471b
Commit
c38c471b
authored
Mar 10, 2013
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 11, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xmllite: Actually resume comment and PI parsing while on Misc part.
parent
c87a85cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
reader.c
dlls/xmllite/reader.c
+13
-2
No files found.
dlls/xmllite/reader.c
View file @
c38c471b
...
...
@@ -63,6 +63,7 @@ typedef enum
XmlReadResumeState_Initial
,
XmlReadResumeState_PITarget
,
XmlReadResumeState_PIBody
,
XmlReadResumeState_Comment
,
XmlReadResumeState_STag
}
XmlReaderResumeState
;
...
...
@@ -1064,6 +1065,7 @@ static HRESULT reader_parse_comment(xmlreader *reader)
ptr
=
start
=
reader_get_cur
(
reader
);
reader
->
nodetype
=
XmlNodeType_Comment
;
reader
->
resume
[
XmlReadResume_Body
]
=
start
;
reader
->
resumestate
=
XmlReadResumeState_Comment
;
reader_set_strvalue
(
reader
,
StringValue_LocalName
,
NULL
);
reader_set_strvalue
(
reader
,
StringValue_QualifiedName
,
NULL
);
reader_set_strvalue
(
reader
,
StringValue_Value
,
NULL
);
...
...
@@ -1088,6 +1090,7 @@ static HRESULT reader_parse_comment(xmlreader *reader)
reader_set_strvalue
(
reader
,
StringValue_QualifiedName
,
&
strval_empty
);
reader_set_strvalue
(
reader
,
StringValue_Value
,
&
value
);
reader
->
resume
[
XmlReadResume_Body
]
=
NULL
;
reader
->
resumestate
=
XmlReadResumeState_Initial
;
return
S_OK
;
}
else
...
...
@@ -1354,14 +1357,22 @@ static HRESULT reader_parse_misc(xmlreader *reader)
{
HRESULT
hr
=
S_FALSE
;
if
(
is_reader_pending
(
reader
)
)
if
(
reader
->
resumestate
!=
XmlReadResumeState_Initial
)
{
hr
=
reader_more
(
reader
);
if
(
FAILED
(
hr
))
return
hr
;
/* finish current node */
if
(
reader
->
nodetype
==
XmlNodeType_Comment
)
switch
(
reader
->
resumestate
)
{
case
XmlReadResumeState_PITarget
:
case
XmlReadResumeState_PIBody
:
return
reader_parse_pi
(
reader
);
case
XmlReadResumeState_Comment
:
return
reader_parse_comment
(
reader
);
default:
ERR
(
"unknown resume state %d
\n
"
,
reader
->
resumestate
);
}
}
while
(
1
)
...
...
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