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:
Daniel Veillard 2001-08-28 20:39:49 +00:00
parent b06c61455f
commit 3ec4c618bf
2 changed files with 9 additions and 4 deletions

View File

@ -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
View File

@ -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);
}