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
edf61623
Commit
edf61623
authored
May 15, 2012
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 15, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Remove no longer used get_xml() option to mess with encoding attribute.
parent
fac36c55
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
11 additions
and
44 deletions
+11
-44
attribute.c
dlls/msxml3/attribute.c
+1
-1
cdata.c
dlls/msxml3/cdata.c
+1
-1
comment.c
dlls/msxml3/comment.c
+1
-1
docfrag.c
dlls/msxml3/docfrag.c
+1
-1
element.c
dlls/msxml3/element.c
+1
-1
entityref.c
dlls/msxml3/entityref.c
+1
-1
msxml_private.h
dlls/msxml3/msxml_private.h
+1
-1
node.c
dlls/msxml3/node.c
+2
-35
pi.c
dlls/msxml3/pi.c
+1
-1
text.c
dlls/msxml3/text.c
+1
-1
No files found.
dlls/msxml3/attribute.c
View file @
edf61623
...
...
@@ -497,7 +497,7 @@ static HRESULT WINAPI domattr_get_xml(
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
node_get_xml
(
&
This
->
node
,
FALSE
,
FALSE
,
p
);
return
node_get_xml
(
&
This
->
node
,
FALSE
,
p
);
}
static
HRESULT
WINAPI
domattr_transformNode
(
...
...
dlls/msxml3/cdata.c
View file @
edf61623
...
...
@@ -452,7 +452,7 @@ static HRESULT WINAPI domcdata_get_xml(
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
node_get_xml
(
&
This
->
node
,
FALSE
,
FALSE
,
p
);
return
node_get_xml
(
&
This
->
node
,
FALSE
,
p
);
}
static
HRESULT
WINAPI
domcdata_transformNode
(
...
...
dlls/msxml3/comment.c
View file @
edf61623
...
...
@@ -451,7 +451,7 @@ static HRESULT WINAPI domcomment_get_xml(
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
node_get_xml
(
&
This
->
node
,
FALSE
,
FALSE
,
p
);
return
node_get_xml
(
&
This
->
node
,
FALSE
,
p
);
}
static
HRESULT
WINAPI
domcomment_transformNode
(
...
...
dlls/msxml3/docfrag.c
View file @
edf61623
...
...
@@ -449,7 +449,7 @@ static HRESULT WINAPI domfrag_get_xml(
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
node_get_xml
(
&
This
->
node
,
FALSE
,
FALSE
,
p
);
return
node_get_xml
(
&
This
->
node
,
FALSE
,
p
);
}
static
HRESULT
WINAPI
domfrag_transformNode
(
...
...
dlls/msxml3/element.c
View file @
edf61623
...
...
@@ -926,7 +926,7 @@ static HRESULT WINAPI domelem_get_xml(
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
node_get_xml
(
&
This
->
node
,
TRUE
,
FALSE
,
p
);
return
node_get_xml
(
&
This
->
node
,
TRUE
,
p
);
}
static
HRESULT
WINAPI
domelem_transformNode
(
...
...
dlls/msxml3/entityref.c
View file @
edf61623
...
...
@@ -444,7 +444,7 @@ static HRESULT WINAPI entityref_get_xml(
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
node_get_xml
(
&
This
->
node
,
FALSE
,
FALSE
,
p
);
return
node_get_xml
(
&
This
->
node
,
FALSE
,
p
);
}
static
HRESULT
WINAPI
entityref_transformNode
(
...
...
dlls/msxml3/msxml_private.h
View file @
edf61623
...
...
@@ -329,7 +329,7 @@ extern HRESULT node_get_next_sibling(xmlnode*,IXMLDOMNode**) DECLSPEC_HIDDEN;
extern
HRESULT
node_insert_before
(
xmlnode
*
,
IXMLDOMNode
*
,
const
VARIANT
*
,
IXMLDOMNode
**
)
DECLSPEC_HIDDEN
;
extern
HRESULT
node_replace_child
(
xmlnode
*
,
IXMLDOMNode
*
,
IXMLDOMNode
*
,
IXMLDOMNode
**
)
DECLSPEC_HIDDEN
;
extern
HRESULT
node_put_text
(
xmlnode
*
,
BSTR
)
DECLSPEC_HIDDEN
;
extern
HRESULT
node_get_xml
(
xmlnode
*
,
BOOL
,
B
OOL
,
B
STR
*
)
DECLSPEC_HIDDEN
;
extern
HRESULT
node_get_xml
(
xmlnode
*
,
BOOL
,
BSTR
*
)
DECLSPEC_HIDDEN
;
extern
HRESULT
node_clone
(
xmlnode
*
,
VARIANT_BOOL
,
IXMLDOMNode
**
)
DECLSPEC_HIDDEN
;
extern
HRESULT
node_get_prefix
(
xmlnode
*
,
BSTR
*
)
DECLSPEC_HIDDEN
;
extern
HRESULT
node_get_base_name
(
xmlnode
*
,
BSTR
*
)
DECLSPEC_HIDDEN
;
...
...
dlls/msxml3/node.c
View file @
edf61623
...
...
@@ -787,37 +787,6 @@ BSTR EnsureCorrectEOL(BSTR sInput)
return
sNew
;
}
/* Removes encoding information and last character (nullbyte) */
static
BSTR
EnsureNoEncoding
(
BSTR
sInput
)
{
static
const
WCHAR
wszEncoding
[]
=
{
'e'
,
'n'
,
'c'
,
'o'
,
'd'
,
'i'
,
'n'
,
'g'
,
'='
};
BSTR
sNew
;
WCHAR
*
pBeg
,
*
pEnd
;
pBeg
=
sInput
;
while
(
*
pBeg
!=
'\n'
&&
memcmp
(
pBeg
,
wszEncoding
,
sizeof
(
wszEncoding
)))
pBeg
++
;
if
(
*
pBeg
==
'\n'
)
{
SysReAllocStringLen
(
&
sInput
,
sInput
,
SysStringLen
(
sInput
)
-
1
);
return
sInput
;
}
pBeg
--
;
pEnd
=
pBeg
+
sizeof
(
wszEncoding
)
/
sizeof
(
WCHAR
)
+
2
;
while
(
*
pEnd
!=
'\"'
)
pEnd
++
;
pEnd
++
;
sNew
=
SysAllocStringLen
(
NULL
,
pBeg
-
sInput
+
SysStringLen
(
sInput
)
-
(
pEnd
-
sInput
)
-
1
);
memcpy
(
sNew
,
sInput
,
(
pBeg
-
sInput
)
*
sizeof
(
WCHAR
));
memcpy
(
&
sNew
[
pBeg
-
sInput
],
pEnd
,
(
SysStringLen
(
sInput
)
-
(
pEnd
-
sInput
)
-
1
)
*
sizeof
(
WCHAR
));
SysFreeString
(
sInput
);
return
sNew
;
}
/*
* We are trying to replicate the same behaviour as msxml by converting
* line endings to \r\n and using indents as \t. The problem is that msxml
...
...
@@ -825,7 +794,7 @@ static BSTR EnsureNoEncoding(BSTR sInput)
* reproduce behaviour exactly.
*
*/
HRESULT
node_get_xml
(
xmlnode
*
This
,
BOOL
ensure_eol
,
B
OOL
ensure_no_encoding
,
B
STR
*
ret
)
HRESULT
node_get_xml
(
xmlnode
*
This
,
BOOL
ensure_eol
,
BSTR
*
ret
)
{
xmlBufferPtr
xml_buf
;
xmlNodePtr
xmldecl
;
...
...
@@ -853,8 +822,6 @@ HRESULT node_get_xml(xmlnode *This, BOOL ensure_eol, BOOL ensure_no_encoding, BS
content
=
bstr_from_xmlChar
(
buf_content
+
(
buf_content
[
0
]
==
' '
?
1
:
0
));
if
(
ensure_eol
)
content
=
EnsureCorrectEOL
(
content
);
if
(
ensure_no_encoding
)
content
=
EnsureNoEncoding
(
content
);
*
ret
=
content
;
}
else
{
...
...
@@ -1453,7 +1420,7 @@ static HRESULT WINAPI unknode_get_xml(
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
node_get_xml
(
&
This
->
node
,
FALSE
,
FALSE
,
p
);
return
node_get_xml
(
&
This
->
node
,
FALSE
,
p
);
}
static
HRESULT
WINAPI
unknode_transformNode
(
...
...
dlls/msxml3/pi.c
View file @
edf61623
...
...
@@ -487,7 +487,7 @@ static HRESULT WINAPI dom_pi_get_xml(
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
node_get_xml
(
&
This
->
node
,
FALSE
,
FALSE
,
p
);
return
node_get_xml
(
&
This
->
node
,
FALSE
,
p
);
}
static
HRESULT
WINAPI
dom_pi_transformNode
(
...
...
dlls/msxml3/text.c
View file @
edf61623
...
...
@@ -514,7 +514,7 @@ static HRESULT WINAPI domtext_get_xml(
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
node_get_xml
(
&
This
->
node
,
FALSE
,
FALSE
,
p
);
return
node_get_xml
(
&
This
->
node
,
FALSE
,
p
);
}
static
HRESULT
WINAPI
domtext_transformNode
(
...
...
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