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
1831e549
Commit
1831e549
authored
May 04, 2011
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 04, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Store boolean properties in a single array.
parent
277120bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
mxwriter.c
dlls/msxml3/mxwriter.c
+11
-5
No files found.
dlls/msxml3/mxwriter.c
View file @
1831e549
...
...
@@ -42,6 +42,12 @@ WINE_DEFAULT_DEBUG_CHANNEL(msxml);
static
const
char
crlfA
[]
=
"
\r\n
"
;
typedef
enum
{
MXWriter_Standalone
=
0
,
MXWriter_LastProp
}
MXWRITER_PROPS
;
typedef
struct
_mxwriter
{
IMXWriter
IMXWriter_iface
;
...
...
@@ -49,7 +55,7 @@ typedef struct _mxwriter
LONG
ref
;
VARIANT_BOOL
standalone
;
VARIANT_BOOL
props
[
MXWriter_LastProp
]
;
BSTR
encoding
;
BSTR
version
;
...
...
@@ -320,7 +326,7 @@ static HRESULT WINAPI mxwriter_put_standalone(IMXWriter *iface, VARIANT_BOOL val
mxwriter
*
This
=
impl_from_IMXWriter
(
iface
);
TRACE
(
"(%p)->(%d)
\n
"
,
This
,
value
);
This
->
standalone
=
value
;
This
->
props
[
MXWriter_Standalone
]
=
value
;
return
S_OK
;
}
...
...
@@ -333,7 +339,7 @@ static HRESULT WINAPI mxwriter_get_standalone(IMXWriter *iface, VARIANT_BOOL *va
if
(
!
value
)
return
E_POINTER
;
*
value
=
This
->
standalone
;
*
value
=
This
->
props
[
MXWriter_Standalone
]
;
return
S_OK
;
}
...
...
@@ -473,7 +479,7 @@ static HRESULT WINAPI mxwriter_saxcontent_startDocument(ISAXContentHandler *ifac
/* standalone */
xmlOutputBufferWriteString
(
This
->
buffer
,
" standalone=
\"
"
);
if
(
This
->
standalone
==
VARIANT_TRUE
)
if
(
This
->
props
[
MXWriter_Standalone
]
==
VARIANT_TRUE
)
xmlOutputBufferWriteString
(
This
->
buffer
,
"yes
\"
?>"
);
else
xmlOutputBufferWriteString
(
This
->
buffer
,
"no
\"
?>"
);
...
...
@@ -621,7 +627,7 @@ HRESULT MXWriter_create(IUnknown *pUnkOuter, void **ppObj)
This
->
ISAXContentHandler_iface
.
lpVtbl
=
&
mxwriter_saxcontent_vtbl
;
This
->
ref
=
1
;
This
->
standalone
=
VARIANT_FALSE
;
This
->
props
[
MXWriter_Standalone
]
=
VARIANT_FALSE
;
This
->
encoding
=
SysAllocString
(
utf16W
);
This
->
version
=
SysAllocString
(
version10W
);
...
...
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