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
ec749f4e
Commit
ec749f4e
authored
Nov 20, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 21, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xmllite/reader: Use consistent formatting for traces.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
df012ba4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
29 deletions
+31
-29
reader.c
dlls/xmllite/reader.c
+31
-29
No files found.
dlls/xmllite/reader.c
View file @
ec749f4e
...
...
@@ -2641,9 +2641,7 @@ static HRESULT reader_parse_nextnode(xmlreader *reader)
static
HRESULT
WINAPI
xmlreader_QueryInterface
(
IXmlReader
*
iface
,
REFIID
riid
,
void
**
ppvObject
)
{
xmlreader
*
This
=
impl_from_IXmlReader
(
iface
);
TRACE
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppvObject
);
TRACE
(
"%p, %s, %p.
\n
"
,
iface
,
debugstr_guid
(
riid
),
ppvObject
);
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_IXmlReader
))
...
...
@@ -2732,7 +2730,7 @@ static HRESULT WINAPI xmlreader_SetInput(IXmlReader* iface, IUnknown *input)
IXmlReaderInput
*
readerinput
;
HRESULT
hr
;
TRACE
(
"
(%p)->(%p)
\n
"
,
This
,
input
);
TRACE
(
"
%p, %p.
\n
"
,
iface
,
input
);
if
(
This
->
input
)
{
...
...
@@ -2789,7 +2787,7 @@ static HRESULT WINAPI xmlreader_GetProperty(IXmlReader* iface, UINT property, LO
{
xmlreader
*
This
=
impl_from_IXmlReader
(
iface
);
TRACE
(
"
(%p)->(%s %p)
\n
"
,
This
,
debugstr_reader_prop
(
property
),
value
);
TRACE
(
"
%p, %s, %p.
\n
"
,
iface
,
debugstr_reader_prop
(
property
),
value
);
if
(
!
value
)
return
E_INVALIDARG
;
...
...
@@ -2868,7 +2866,7 @@ static HRESULT WINAPI xmlreader_Read(IXmlReader* iface, XmlNodeType *nodetype)
XmlNodeType
type
;
HRESULT
hr
;
TRACE
(
"
(%p)->(%p)
\n
"
,
This
,
nodetype
);
TRACE
(
"
%p, %p.
\n
"
,
iface
,
nodetype
);
if
(
!
nodetype
)
nodetype
=
&
type
;
...
...
@@ -2905,7 +2903,7 @@ static HRESULT WINAPI xmlreader_GetNodeType(IXmlReader* iface, XmlNodeType *node
{
xmlreader
*
This
=
impl_from_IXmlReader
(
iface
);
TRACE
(
"
(%p)->(%p)
\n
"
,
This
,
node_type
);
TRACE
(
"
%p, %p.
\n
"
,
iface
,
node_type
);
if
(
!
node_type
)
return
E_INVALIDARG
;
...
...
@@ -2939,7 +2937,7 @@ static HRESULT WINAPI xmlreader_MoveToFirstAttribute(IXmlReader* iface)
{
xmlreader
*
This
=
impl_from_IXmlReader
(
iface
);
TRACE
(
"
(%p)
\n
"
,
This
);
TRACE
(
"
%p.
\n
"
,
iface
);
return
reader_move_to_first_attribute
(
This
);
}
...
...
@@ -2949,7 +2947,7 @@ static HRESULT WINAPI xmlreader_MoveToNextAttribute(IXmlReader* iface)
xmlreader
*
This
=
impl_from_IXmlReader
(
iface
);
const
struct
list
*
next
;
TRACE
(
"
(%p)
\n
"
,
This
);
TRACE
(
"
%p.
\n
"
,
iface
);
if
(
!
This
->
attr_count
)
return
S_FALSE
;
...
...
@@ -3030,7 +3028,7 @@ static HRESULT WINAPI xmlreader_MoveToAttributeByName(IXmlReader* iface,
UINT
target_name_len
,
target_uri_len
;
struct
attribute
*
attr
;
TRACE
(
"
(%p)->(%s %s)
\n
"
,
This
,
debugstr_w
(
local_name
),
debugstr_w
(
namespace_uri
));
TRACE
(
"
%p, %s, %s.
\n
"
,
iface
,
debugstr_w
(
local_name
),
debugstr_w
(
namespace_uri
));
if
(
!
local_name
)
return
E_INVALIDARG
;
...
...
@@ -3067,7 +3065,7 @@ static HRESULT WINAPI xmlreader_MoveToElement(IXmlReader* iface)
{
xmlreader
*
This
=
impl_from_IXmlReader
(
iface
);
TRACE
(
"
(%p)
\n
"
,
This
);
TRACE
(
"
%p.
\n
"
,
iface
);
if
(
!
This
->
attr_count
)
return
S_FALSE
;
...
...
@@ -3101,7 +3099,7 @@ static HRESULT WINAPI xmlreader_GetQualifiedName(IXmlReader* iface, LPCWSTR *nam
struct
element
*
element
;
UINT
length
;
TRACE
(
"
(%p)->(%p %p)
\n
"
,
This
,
name
,
len
);
TRACE
(
"
%p, %p, %p.
\n
"
,
iface
,
name
,
len
);
if
(
!
len
)
len
=
&
length
;
...
...
@@ -3170,7 +3168,7 @@ static HRESULT WINAPI xmlreader_GetNamespaceUri(IXmlReader* iface, const WCHAR *
struct
ns
*
ns
;
UINT
length
;
TRACE
(
"
(%p %p %p)
\n
"
,
iface
,
uri
,
len
);
TRACE
(
"
%p, %p, %p.
\n
"
,
iface
,
uri
,
len
);
if
(
!
len
)
len
=
&
length
;
...
...
@@ -3224,7 +3222,7 @@ static HRESULT WINAPI xmlreader_GetLocalName(IXmlReader* iface, LPCWSTR *name, U
struct
element
*
element
;
UINT
length
;
TRACE
(
"
(%p)->(%p %p)
\n
"
,
This
,
name
,
len
);
TRACE
(
"
%p, %p, %p.
\n
"
,
iface
,
name
,
len
);
if
(
!
len
)
len
=
&
length
;
...
...
@@ -3262,7 +3260,7 @@ static HRESULT WINAPI xmlreader_GetPrefix(IXmlReader* iface, const WCHAR **ret,
XmlNodeType
nodetype
;
UINT
length
;
TRACE
(
"
(%p)->(%p %p)
\n
"
,
This
,
ret
,
len
);
TRACE
(
"
%p, %p, %p.
\n
"
,
iface
,
ret
,
len
);
if
(
!
len
)
len
=
&
length
;
...
...
@@ -3349,7 +3347,7 @@ static HRESULT WINAPI xmlreader_GetValue(IXmlReader* iface, const WCHAR **value,
const
strval
*
val
=
&
reader
->
strvalues
[
StringValue_Value
];
UINT
off
;
TRACE
(
"
(%p)->(%p %p)
\n
"
,
reader
,
value
,
len
);
TRACE
(
"
%p, %p, %p.
\n
"
,
iface
,
value
,
len
);
*
value
=
NULL
;
...
...
@@ -3383,7 +3381,7 @@ static HRESULT WINAPI xmlreader_ReadValueChunk(IXmlReader* iface, WCHAR *buffer,
const
strval
*
val
;
UINT
len
=
0
;
TRACE
(
"
(%p)->(%p %u %p)
\n
"
,
reader
,
buffer
,
chunk_size
,
read
);
TRACE
(
"
%p, %p, %u, %p.
\n
"
,
iface
,
buffer
,
chunk_size
,
read
);
val
=
reader_get_value
(
reader
,
FALSE
);
...
...
@@ -3408,20 +3406,22 @@ static HRESULT WINAPI xmlreader_GetBaseUri(IXmlReader* iface,
LPCWSTR
*
baseUri
,
UINT
*
baseUri_length
)
{
FIXME
(
"
(%p %p %p)
: stub
\n
"
,
iface
,
baseUri
,
baseUri_length
);
FIXME
(
"
%p, %p, %p
: stub
\n
"
,
iface
,
baseUri
,
baseUri_length
);
return
E_NOTIMPL
;
}
static
BOOL
WINAPI
xmlreader_IsDefault
(
IXmlReader
*
iface
)
{
FIXME
(
"
(%p)
: stub
\n
"
,
iface
);
FIXME
(
"
%p
: stub
\n
"
,
iface
);
return
FALSE
;
}
static
BOOL
WINAPI
xmlreader_IsEmptyElement
(
IXmlReader
*
iface
)
{
xmlreader
*
This
=
impl_from_IXmlReader
(
iface
);
TRACE
(
"(%p)
\n
"
,
This
);
TRACE
(
"%p.
\n
"
,
iface
);
/* Empty elements are not placed in stack, it's stored as a global reader flag that makes sense
when current node is start tag of an element */
return
(
reader_get_nodetype
(
This
)
==
XmlNodeType_Element
)
?
This
->
is_empty_element
:
FALSE
;
...
...
@@ -3432,7 +3432,7 @@ static HRESULT WINAPI xmlreader_GetLineNumber(IXmlReader* iface, UINT *line_numb
xmlreader
*
This
=
impl_from_IXmlReader
(
iface
);
const
struct
element
*
element
;
TRACE
(
"
(%p %p)
\n
"
,
This
,
line_number
);
TRACE
(
"
%p, %p.
\n
"
,
iface
,
line_number
);
if
(
!
line_number
)
return
E_INVALIDARG
;
...
...
@@ -3464,7 +3464,7 @@ static HRESULT WINAPI xmlreader_GetLinePosition(IXmlReader* iface, UINT *line_po
xmlreader
*
This
=
impl_from_IXmlReader
(
iface
);
const
struct
element
*
element
;
TRACE
(
"
(%p %p)
\n
"
,
This
,
line_position
);
TRACE
(
"
%p, %p.
\n
"
,
iface
,
line_position
);
if
(
!
line_position
)
return
E_INVALIDARG
;
...
...
@@ -3495,7 +3495,7 @@ static HRESULT WINAPI xmlreader_GetAttributeCount(IXmlReader* iface, UINT *count
{
xmlreader
*
This
=
impl_from_IXmlReader
(
iface
);
TRACE
(
"
(%p)->(%p)
\n
"
,
This
,
count
);
TRACE
(
"
%p, %p.
\n
"
,
iface
,
count
);
if
(
!
count
)
return
E_INVALIDARG
;
...
...
@@ -3506,7 +3506,9 @@ static HRESULT WINAPI xmlreader_GetAttributeCount(IXmlReader* iface, UINT *count
static
HRESULT
WINAPI
xmlreader_GetDepth
(
IXmlReader
*
iface
,
UINT
*
depth
)
{
xmlreader
*
This
=
impl_from_IXmlReader
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
depth
);
TRACE
(
"%p, %p.
\n
"
,
iface
,
depth
);
*
depth
=
This
->
depth
;
return
S_OK
;
}
...
...
@@ -3514,7 +3516,9 @@ static HRESULT WINAPI xmlreader_GetDepth(IXmlReader* iface, UINT *depth)
static
BOOL
WINAPI
xmlreader_IsEOF
(
IXmlReader
*
iface
)
{
xmlreader
*
This
=
impl_from_IXmlReader
(
iface
);
TRACE
(
"(%p)
\n
"
,
iface
);
TRACE
(
"%p.
\n
"
,
iface
);
return
This
->
state
==
XmlReadState_EndOfFile
;
}
...
...
@@ -3551,9 +3555,7 @@ static const struct IXmlReaderVtbl xmlreader_vtbl =
/** IXmlReaderInput **/
static
HRESULT
WINAPI
xmlreaderinput_QueryInterface
(
IXmlReaderInput
*
iface
,
REFIID
riid
,
void
**
ppvObject
)
{
xmlreaderinput
*
This
=
impl_from_IXmlReaderInput
(
iface
);
TRACE
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppvObject
);
TRACE
(
"%p, %s, %p.
\n
"
,
iface
,
debugstr_guid
(
riid
),
ppvObject
);
if
(
IsEqualGUID
(
riid
,
&
IID_IXmlReaderInput
)
||
IsEqualGUID
(
riid
,
&
IID_IUnknown
))
...
...
@@ -3614,7 +3616,7 @@ HRESULT WINAPI CreateXmlReader(REFIID riid, void **obj, IMalloc *imalloc)
HRESULT
hr
;
int
i
;
TRACE
(
"
(%s, %p, %p)
\n
"
,
wine_dbgstr_guid
(
riid
),
obj
,
imalloc
);
TRACE
(
"
%s, %p, %p.
\n
"
,
wine_dbgstr_guid
(
riid
),
obj
,
imalloc
);
if
(
!
(
reader
=
m_alloc
(
imalloc
,
sizeof
(
*
reader
))))
return
E_OUTOFMEMORY
;
...
...
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