Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
bcd85854
Commit
bcd85854
authored
Apr 15, 2012
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 16, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Use expected/actual sequence concept for reader tests including attributes tests.
parent
8a8ba19e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
saxreader.c
dlls/msxml3/saxreader.c
+10
-9
saxreader.c
dlls/msxml3/tests/saxreader.c
+0
-0
No files found.
dlls/msxml3/saxreader.c
View file @
bcd85854
...
...
@@ -371,7 +371,7 @@ static BSTR find_element_uri(saxlocator *locator, const xmlChar *uri)
/* used to localize version dependent error check behaviour */
static
inline
BOOL
sax_callback_failed
(
saxlocator
*
This
,
HRESULT
hr
)
{
return
This
->
saxreader
->
version
>=
MSXML
6
?
FAILED
(
hr
)
:
hr
!=
S_OK
;
return
This
->
saxreader
->
version
>=
MSXML
4
?
FAILED
(
hr
)
:
hr
!=
S_OK
;
}
/* index value -1 means it tries to loop for a first time */
...
...
@@ -1158,7 +1158,7 @@ static void libxmlStartDocument(void *ctx)
saxlocator
*
This
=
ctx
;
HRESULT
hr
;
if
(
This
->
saxreader
->
version
>=
MSXML6
)
if
(
This
->
saxreader
->
version
>=
MSXML4
)
{
const
xmlChar
*
p
=
This
->
pParserCtxt
->
input
->
cur
-
1
;
update_position
(
This
,
FALSE
);
...
...
@@ -1190,7 +1190,7 @@ static void libxmlEndDocument(void *ctx)
saxlocator
*
This
=
ctx
;
HRESULT
hr
;
if
(
This
->
saxreader
->
version
>=
MSXML6
)
{
if
(
This
->
saxreader
->
version
>=
MSXML4
)
{
update_position
(
This
,
FALSE
);
if
(
This
->
column
>
1
)
This
->
line
++
;
...
...
@@ -1232,7 +1232,7 @@ static void libxmlStartElementNS(
update_position
(
This
,
TRUE
);
if
(
*
(
This
->
pParserCtxt
->
input
->
cur
)
==
'/'
)
This
->
column
++
;
if
(
This
->
saxreader
->
version
<
MSXML
6
)
if
(
This
->
saxreader
->
version
<
MSXML
4
)
This
->
column
++
;
element
=
alloc_element_entry
(
localname
,
prefix
,
nb_namespaces
,
namespaces
);
...
...
@@ -1301,7 +1301,8 @@ static void libxmlEndElementNS(
update_position
(
This
,
FALSE
);
p
=
This
->
pParserCtxt
->
input
->
cur
;
if
(
This
->
saxreader
->
version
>=
MSXML6
)
if
(
This
->
saxreader
->
version
>=
MSXML4
)
{
p
--
;
while
(
p
>
This
->
pParserCtxt
->
input
->
base
&&
*
p
!=
'>'
)
...
...
@@ -1418,7 +1419,7 @@ static void libxmlCharacters(
end
++
;
}
if
(
This
->
saxreader
->
version
>=
MSXML6
)
if
(
This
->
saxreader
->
version
>=
MSXML4
)
{
xmlChar
*
p
;
...
...
@@ -1454,7 +1455,7 @@ static void libxmlCharacters(
return
;
}
if
(
This
->
saxreader
->
version
<
MSXML6
)
if
(
This
->
saxreader
->
version
<
MSXML4
)
This
->
column
+=
end
-
cur
;
if
(
lastEvent
)
...
...
@@ -2022,10 +2023,10 @@ static HRESULT SAXLocator_create(saxreader *reader, saxlocator **ppsaxlocator, B
locator
->
pParserCtxt
=
NULL
;
locator
->
publicId
=
NULL
;
locator
->
systemId
=
NULL
;
locator
->
line
=
(
reader
->
version
>=
MSXML6
?
1
:
0
)
;
locator
->
line
=
reader
->
version
<
MSXML4
?
0
:
1
;
locator
->
column
=
0
;
locator
->
ret
=
S_OK
;
if
(
locator
->
saxreader
->
version
>=
MSXML6
)
if
(
locator
->
saxreader
->
version
>=
MSXML6
)
locator
->
namespaceUri
=
SysAllocString
(
w3xmlns
);
else
locator
->
namespaceUri
=
SysAllocStringLen
(
NULL
,
0
);
...
...
dlls/msxml3/tests/saxreader.c
View file @
bcd85854
This diff is collapsed.
Click to expand it.
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