Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
4cdcc025
Commit
4cdcc025
authored
Jul 17, 2008
by
Piotr Caban
Committed by
Alexandre Julliard
Jul 17, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Added ISAXLocator_getLineNumber and ISAXLocator_getColumnNumber partial implementation.
parent
072383e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
saxreader.c
dlls/msxml3/saxreader.c
+11
-4
No files found.
dlls/msxml3/saxreader.c
View file @
4cdcc025
...
...
@@ -62,6 +62,8 @@ typedef struct _saxlocator
saxreader
*
saxreader
;
HRESULT
ret
;
xmlParserCtxtPtr
pParserCtxt
;
int
lastLine
;
int
lastColumn
;
}
saxlocator
;
static
inline
saxreader
*
impl_from_IVBSAXXMLReader
(
IVBSAXXMLReader
*
iface
)
...
...
@@ -94,6 +96,9 @@ static void libxmlStartDocument(void *ctx)
This
->
ret
=
hr
;
}
}
This
->
lastColumn
=
xmlSAX2GetColumnNumber
(
This
->
pParserCtxt
);
This
->
lastLine
=
xmlSAX2GetLineNumber
(
This
->
pParserCtxt
);
}
/*** ISAXLocator interface ***/
...
...
@@ -154,8 +159,8 @@ static HRESULT WINAPI isaxlocator_getColumnNumber(
{
saxlocator
*
This
=
impl_from_ISAXLocator
(
iface
);
FIXME
(
"(%p)->(%p) stub
\n
"
,
This
,
pnColumn
)
;
return
E_NOTIMPL
;
*
pnColumn
=
This
->
lastColumn
;
return
S_OK
;
}
static
HRESULT
WINAPI
isaxlocator_getLineNumber
(
...
...
@@ -164,8 +169,8 @@ static HRESULT WINAPI isaxlocator_getLineNumber(
{
saxlocator
*
This
=
impl_from_ISAXLocator
(
iface
);
FIXME
(
"(%p)->(%p) stub
\n
"
,
This
,
pnLine
)
;
return
E_NOTIMPL
;
*
pnLine
=
This
->
lastLine
;
return
S_OK
;
}
static
HRESULT
WINAPI
isaxlocator_getPublicId
(
...
...
@@ -214,6 +219,8 @@ static HRESULT SAXLocator_create(saxreader *reader, saxlocator **ppsaxlocator)
ISAXXMLReader_AddRef
((
ISAXXMLReader
*
)
&
reader
->
lpSAXXMLReaderVtbl
);
locator
->
pParserCtxt
=
NULL
;
locator
->
lastLine
=
0
;
locator
->
lastColumn
=
0
;
locator
->
ret
=
S_OK
;
*
ppsaxlocator
=
locator
;
...
...
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