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
35b59556
Commit
35b59556
authored
Oct 06, 2011
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 06, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Use a helper to get property values.
parent
5931af02
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
30 deletions
+12
-30
mxwriter.c
dlls/msxml3/mxwriter.c
+12
-30
No files found.
dlls/msxml3/mxwriter.c
View file @
35b59556
...
...
@@ -186,6 +186,13 @@ static HRESULT writer_set_property(mxwriter *writer, MXWRITER_PROPS property, VA
return
S_OK
;
}
static
HRESULT
writer_get_property
(
const
mxwriter
*
writer
,
MXWRITER_PROPS
property
,
VARIANT_BOOL
*
value
)
{
if
(
!
value
)
return
E_POINTER
;
*
value
=
writer
->
props
[
property
];
return
S_OK
;
}
static
inline
mxwriter
*
impl_from_IMXWriter
(
IMXWriter
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
mxwriter
,
IMXWriter_iface
);
...
...
@@ -469,12 +476,7 @@ static HRESULT WINAPI mxwriter_get_byteOrderMark(IMXWriter *iface, VARIANT_BOOL
mxwriter
*
This
=
impl_from_IMXWriter
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
value
);
if
(
!
value
)
return
E_POINTER
;
*
value
=
This
->
props
[
MXWriter_BOM
];
return
S_OK
;
return
writer_get_property
(
This
,
MXWriter_BOM
,
value
);
}
static
HRESULT
WINAPI
mxwriter_put_indent
(
IMXWriter
*
iface
,
VARIANT_BOOL
value
)
...
...
@@ -490,12 +492,7 @@ static HRESULT WINAPI mxwriter_get_indent(IMXWriter *iface, VARIANT_BOOL *value)
mxwriter
*
This
=
impl_from_IMXWriter
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
value
);
if
(
!
value
)
return
E_POINTER
;
*
value
=
This
->
props
[
MXWriter_Indent
];
return
S_OK
;
return
writer_get_property
(
This
,
MXWriter_Indent
,
value
);
}
static
HRESULT
WINAPI
mxwriter_put_standalone
(
IMXWriter
*
iface
,
VARIANT_BOOL
value
)
...
...
@@ -511,12 +508,7 @@ static HRESULT WINAPI mxwriter_get_standalone(IMXWriter *iface, VARIANT_BOOL *va
mxwriter
*
This
=
impl_from_IMXWriter
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
value
);
if
(
!
value
)
return
E_POINTER
;
*
value
=
This
->
props
[
MXWriter_Standalone
];
return
S_OK
;
return
writer_get_property
(
This
,
MXWriter_Standalone
,
value
);
}
static
HRESULT
WINAPI
mxwriter_put_omitXMLDeclaration
(
IMXWriter
*
iface
,
VARIANT_BOOL
value
)
...
...
@@ -532,12 +524,7 @@ static HRESULT WINAPI mxwriter_get_omitXMLDeclaration(IMXWriter *iface, VARIANT_
mxwriter
*
This
=
impl_from_IMXWriter
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
value
);
if
(
!
value
)
return
E_POINTER
;
*
value
=
This
->
props
[
MXWriter_OmitXmlDecl
];
return
S_OK
;
return
writer_get_property
(
This
,
MXWriter_OmitXmlDecl
,
value
);
}
static
HRESULT
WINAPI
mxwriter_put_version
(
IMXWriter
*
iface
,
BSTR
version
)
...
...
@@ -578,12 +565,7 @@ static HRESULT WINAPI mxwriter_get_disableOutputEscaping(IMXWriter *iface, VARIA
mxwriter
*
This
=
impl_from_IMXWriter
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
value
);
if
(
!
value
)
return
E_POINTER
;
*
value
=
This
->
props
[
MXWriter_DisableEscaping
];
return
S_OK
;
return
writer_get_property
(
This
,
MXWriter_DisableEscaping
,
value
);
}
static
HRESULT
WINAPI
mxwriter_flush
(
IMXWriter
*
iface
)
...
...
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