mirror of
https://github.com/GNOME/libxml2.git
synced 2025-02-23 18:29:14 +08:00
applied patch from Armin Sander to make some pointers const in
* tree.c: applied patch from Armin Sander to make some pointers const in xmlCopyNode() Daniel
This commit is contained in:
parent
b06c61455f
commit
3ec4c618bf
@ -1,3 +1,8 @@
|
||||
Tue Aug 28 22:38:45 CEST 2001 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* tree.c: applied patch from Armin Sander to make some pointers
|
||||
const in xmlCopyNode()
|
||||
|
||||
Mon Aug 27 16:24:47 CEST 2001 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* xpath.c: hum, restrict the integer usage gcc bug workaround
|
||||
|
8
tree.c
8
tree.c
@ -2705,7 +2705,7 @@ static xmlNodePtr
|
||||
xmlStaticCopyNodeList(xmlNodePtr node, xmlDocPtr doc, xmlNodePtr parent);
|
||||
|
||||
static xmlNodePtr
|
||||
xmlStaticCopyNode(xmlNodePtr node, xmlDocPtr doc, xmlNodePtr parent,
|
||||
xmlStaticCopyNode(const xmlNodePtr node, xmlDocPtr doc, xmlNodePtr parent,
|
||||
int recursive) {
|
||||
xmlNodePtr ret;
|
||||
|
||||
@ -2875,7 +2875,7 @@ xmlStaticCopyNodeList(xmlNodePtr node, xmlDocPtr doc, xmlNodePtr parent) {
|
||||
* Returns: a new xmlNodePtr, or NULL in case of error.
|
||||
*/
|
||||
xmlNodePtr
|
||||
xmlCopyNode(xmlNodePtr node, int recursive) {
|
||||
xmlCopyNode(const xmlNodePtr node, int recursive) {
|
||||
xmlNodePtr ret;
|
||||
|
||||
ret = xmlStaticCopyNode(node, NULL, NULL, recursive);
|
||||
@ -2892,7 +2892,7 @@ xmlCopyNode(xmlNodePtr node, int recursive) {
|
||||
* Returns: a new xmlNodePtr, or NULL in case of error.
|
||||
*/
|
||||
xmlNodePtr
|
||||
xmlDocCopyNode(xmlNodePtr node, xmlDocPtr doc, int recursive) {
|
||||
xmlDocCopyNode(const xmlNodePtr node, xmlDocPtr doc, int recursive) {
|
||||
xmlNodePtr ret;
|
||||
|
||||
ret = xmlStaticCopyNode(node, doc, NULL, recursive);
|
||||
@ -2907,7 +2907,7 @@ xmlDocCopyNode(xmlNodePtr node, xmlDocPtr doc, int recursive) {
|
||||
*
|
||||
* Returns: a new xmlNodePtr, or NULL in case of error.
|
||||
*/
|
||||
xmlNodePtr xmlCopyNodeList(xmlNodePtr node) {
|
||||
xmlNodePtr xmlCopyNodeList(const xmlNodePtr node) {
|
||||
xmlNodePtr ret = xmlStaticCopyNodeList(node, NULL, NULL);
|
||||
return(ret);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user