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
23860234
Commit
23860234
authored
Aug 19, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Aug 19, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use a single function to create all IXMLDOMNode implementations.
parent
3f2d5d7f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
30 deletions
+7
-30
domdoc.c
dlls/msxml3/domdoc.c
+2
-2
element.c
dlls/msxml3/element.c
+1
-1
msxml_private.h
dlls/msxml3/msxml_private.h
+2
-5
node.c
dlls/msxml3/node.c
+1
-21
nodemap.c
dlls/msxml3/nodemap.c
+1
-1
No files found.
dlls/msxml3/domdoc.c
View file @
23860234
...
...
@@ -729,7 +729,7 @@ static HRESULT WINAPI domdoc_load(
if
(
!
xmldoc
)
return
S_FALSE
;
This
->
node
=
create_
domdoc_node
(
xmldoc
);
This
->
node
=
create_
node
(
(
xmlNodePtr
)
xmldoc
);
if
(
!
This
->
node
)
{
*
isSuccessful
=
VARIANT_FALSE
;
...
...
@@ -847,7 +847,7 @@ static HRESULT WINAPI domdoc_loadXML(
xmldoc
=
doparse
(
str
,
len
);
HeapFree
(
GetProcessHeap
(),
0
,
str
);
This
->
node
=
create_
domdoc_node
(
xmldoc
);
This
->
node
=
create_
node
(
(
xmlNodePtr
)
xmldoc
);
if
(
!
This
->
node
)
return
S_FALSE
;
...
...
dlls/msxml3/element.c
View file @
23860234
...
...
@@ -580,7 +580,7 @@ IXMLDOMElement* create_element( xmlNodePtr element )
return
NULL
;
This
->
lpVtbl
=
&
domelem_vtbl
;
This
->
node
=
create_
element_
node
(
element
);
This
->
node
=
create_node
(
element
);
This
->
ref
=
1
;
if
(
!
This
->
node
)
...
...
dlls/msxml3/msxml_private.h
View file @
23860234
...
...
@@ -30,15 +30,12 @@
#endif
/* constructors */
extern
IXMLDOMNode
*
create_domdoc_node
(
xmlDocPtr
node
);
extern
IUnknown
*
create_domdoc
(
void
);
extern
IXMLDOMNode
*
create_attribute_node
(
xmlAttrPtr
attr
);
extern
IUnknown
*
create_xmldoc
(
void
);
extern
IXMLDOMNode
*
create_node
(
xmlNodePtr
node
);
extern
IXMLDOMElement
*
create_element
(
xmlNodePtr
element
);
extern
IXMLDOMNode
*
create_element_node
(
xmlNodePtr
element
);
extern
IXMLDOMNamedNodeMap
*
create_nodemap
(
IXMLDOMNode
*
node
);
extern
IXMLDOMNode
*
create_generic_node
(
xmlNodePtr
node
);
extern
IXMLDOMNodeList
*
create_nodelist
(
xmlNodePtr
node
);
extern
IXMLDOMNamedNodeMap
*
create_nodemap
(
IXMLDOMNode
*
node
);
/* data accessors */
xmlNodePtr
xmlNodePtr_from_domnode
(
IXMLDOMNode
*
iface
,
xmlElementType
type
);
...
...
dlls/msxml3/node.c
View file @
23860234
...
...
@@ -624,7 +624,7 @@ static const struct IXMLDOMNodeVtbl xmlnode_vtbl =
xmlnode_transformNodeToObject
,
};
static
IXMLDOMNode
*
create_node
(
xmlNodePtr
node
)
IXMLDOMNode
*
create_node
(
xmlNodePtr
node
)
{
xmlnode
*
This
;
...
...
@@ -670,24 +670,4 @@ static IXMLDOMNode *create_node( xmlNodePtr node )
return
(
IXMLDOMNode
*
)
&
This
->
lpVtbl
;
}
IXMLDOMNode
*
create_domdoc_node
(
xmlDocPtr
node
)
{
return
create_node
(
(
xmlNodePtr
)
node
);
}
IXMLDOMNode
*
create_attribute_node
(
xmlAttrPtr
node
)
{
return
create_node
(
(
xmlNodePtr
)
node
);
}
IXMLDOMNode
*
create_element_node
(
xmlNodePtr
element
)
{
return
create_node
(
element
);
}
IXMLDOMNode
*
create_generic_node
(
xmlNodePtr
node
)
{
return
create_node
(
node
);
}
#endif
dlls/msxml3/nodemap.c
View file @
23860234
...
...
@@ -168,7 +168,7 @@ static HRESULT WINAPI xmlnodemap_getNamedItem(
if
(
!
attr
)
return
E_FAIL
;
*
namedItem
=
create_
attribute_node
(
attr
);
*
namedItem
=
create_
node
(
(
xmlNodePtr
)
attr
);
return
S_OK
;
}
...
...
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