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
617a70f6
Commit
617a70f6
authored
Jan 13, 2013
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 14, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xmllite: Add a stub function for DTD parsing.
parent
6ae41d01
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
7 deletions
+34
-7
reader.c
dlls/xmllite/reader.c
+34
-7
No files found.
dlls/xmllite/reader.c
View file @
617a70f6
...
...
@@ -49,7 +49,9 @@ typedef enum
XmlReadInState_Initial
,
XmlReadInState_XmlDecl
,
XmlReadInState_Misc_DTD
,
XmlReadInState_DTD
XmlReadInState_DTD
,
XmlReadInState_DTD_Misc
,
XmlReadInState_Element
}
XmlReaderInternalState
;
typedef
enum
...
...
@@ -1117,12 +1119,22 @@ static HRESULT reader_parse_misc(xmlreader *reader)
else
break
;
if
(
FAILED
(
hr
)
)
return
hr
;
if
(
hr
!=
S_FALSE
)
return
hr
;
}
return
hr
;
}
/* [28] doctypedecl ::= '<!DOCTYPE' S Name (S ExternalID)? S? ('[' intSubset ']' S?)? '>' */
static
HRESULT
reader_parse_dtd
(
xmlreader
*
reader
)
{
static
const
WCHAR
doctypeW
[]
=
{
'D'
,
'O'
,
'C'
,
'T'
,
'Y'
,
'P'
,
'E'
,
0
};
/* check if we have "<!DOCTYPE" */
if
(
reader_cmp
(
reader
,
doctypeW
))
return
S_FALSE
;
FIXME
(
"DTD parsing not implemented
\n
"
);
return
E_NOTIMPL
;
}
static
HRESULT
reader_parse_nextnode
(
xmlreader
*
reader
)
{
HRESULT
hr
;
...
...
@@ -1158,15 +1170,30 @@ static HRESULT reader_parse_nextnode(xmlreader *reader)
case
XmlReadInState_Misc_DTD
:
hr
=
reader_parse_misc
(
reader
);
if
(
FAILED
(
hr
))
return
hr
;
if
(
hr
==
S_FALSE
)
{
if
(
hr
==
S_FALSE
)
{
reader
->
instate
=
XmlReadInState_DTD
;
return
S_OK
;
continue
;
}
else
if
(
hr
==
S_OK
)
return
hr
;
break
;
case
XmlReadInState_DTD
:
FIXME
(
"DTD parsing not supported
\n
"
);
return
E_NOTIMPL
;
hr
=
reader_parse_dtd
(
reader
);
if
(
FAILED
(
hr
))
return
hr
;
if
(
hr
==
S_FALSE
)
{
reader
->
instate
=
XmlReadInState_DTD_Misc
;
continue
;
}
else
if
(
hr
==
S_OK
)
return
hr
;
break
;
case
XmlReadInState_DTD_Misc
:
hr
=
reader_parse_misc
(
reader
);
if
(
FAILED
(
hr
))
return
hr
;
if
(
hr
==
S_FALSE
)
{
reader
->
instate
=
XmlReadInState_Element
;
continue
;
}
else
if
(
hr
==
S_OK
)
return
hr
;
break
;
default:
FIXME
(
"internal state %d not handled
\n
"
,
reader
->
instate
);
return
E_NOTIMPL
;
...
...
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