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
db2761a8
Commit
db2761a8
authored
Oct 07, 2008
by
Piotr Caban
Committed by
Alexandre Julliard
Oct 08, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml: Added ISAXLexicalHandler_comment event.
parent
1596a1ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
saxreader.c
dlls/msxml3/saxreader.c
+32
-0
No files found.
dlls/msxml3/saxreader.c
View file @
db2761a8
...
@@ -1260,6 +1260,37 @@ static void libxmlSetDocumentLocator(
...
@@ -1260,6 +1260,37 @@ static void libxmlSetDocumentLocator(
format_error_message_from_id
(
This
,
hr
);
format_error_message_from_id
(
This
,
hr
);
}
}
static
void
libxmlComment
(
void
*
ctx
,
const
xmlChar
*
value
)
{
saxlocator
*
This
=
ctx
;
BSTR
bValue
;
HRESULT
hr
;
xmlChar
*
beg
=
(
xmlChar
*
)
This
->
pParserCtxt
->
input
->
cur
;
while
(
memcmp
(
beg
-
4
,
"<!--"
,
sizeof
(
char
[
4
])))
beg
--
;
update_position
(
This
,
beg
);
if
(
!
This
->
vbInterface
&&
!
This
->
saxreader
->
lexicalHandler
)
return
;
if
(
This
->
vbInterface
&&
!
This
->
saxreader
->
vblexicalHandler
)
return
;
bValue
=
bstr_from_xmlChar
(
value
);
if
(
This
->
vbInterface
)
hr
=
IVBSAXLexicalHandler_comment
(
This
->
saxreader
->
vblexicalHandler
,
&
bValue
);
else
hr
=
ISAXLexicalHandler_comment
(
This
->
saxreader
->
lexicalHandler
,
bValue
,
SysStringLen
(
bValue
));
SysFreeString
(
bValue
);
if
(
FAILED
(
hr
))
format_error_message_from_id
(
This
,
hr
);
update_position
(
This
,
NULL
);
}
static
void
libxmlFatalError
(
void
*
ctx
,
const
char
*
msg
,
...)
static
void
libxmlFatalError
(
void
*
ctx
,
const
char
*
msg
,
...)
{
{
saxlocator
*
This
=
ctx
;
saxlocator
*
This
=
ctx
;
...
@@ -2719,6 +2750,7 @@ HRESULT SAXXMLReader_create(IUnknown *pUnkOuter, LPVOID *ppObj)
...
@@ -2719,6 +2750,7 @@ HRESULT SAXXMLReader_create(IUnknown *pUnkOuter, LPVOID *ppObj)
reader
->
sax
.
endElementNs
=
libxmlEndElementNS
;
reader
->
sax
.
endElementNs
=
libxmlEndElementNS
;
reader
->
sax
.
characters
=
libxmlCharacters
;
reader
->
sax
.
characters
=
libxmlCharacters
;
reader
->
sax
.
setDocumentLocator
=
libxmlSetDocumentLocator
;
reader
->
sax
.
setDocumentLocator
=
libxmlSetDocumentLocator
;
reader
->
sax
.
comment
=
libxmlComment
;
reader
->
sax
.
error
=
libxmlFatalError
;
reader
->
sax
.
error
=
libxmlFatalError
;
reader
->
sax
.
fatalError
=
libxmlFatalError
;
reader
->
sax
.
fatalError
=
libxmlFatalError
;
...
...
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