mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2024-12-27 03:21:26 +03:00
better comments for _private fields removed a problem when copying an
* include/libxml/tree.h: better comments for _private fields * tree.c: removed a problem when copying an entity reference. Daniel
This commit is contained in:
parent
d33cfbf16c
commit
0ec986359a
@ -1,3 +1,8 @@
|
||||
Wed Nov 14 16:03:02 CET 2001 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* include/libxml/tree.h: better comments for _private fields
|
||||
* tree.c: removed a problem when copying an entity reference.
|
||||
|
||||
Tue Nov 13 16:23:04 CET 2001 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* vms/*: updated instructions and diffs from John A Fotheringham
|
||||
|
@ -173,7 +173,7 @@ struct _xmlEnumeration {
|
||||
typedef struct _xmlAttribute xmlAttribute;
|
||||
typedef xmlAttribute *xmlAttributePtr;
|
||||
struct _xmlAttribute {
|
||||
void *_private; /* for Corba, must be first ! */
|
||||
void *_private; /* application data */
|
||||
xmlElementType type; /* XML_ATTRIBUTE_DECL, must be second ! */
|
||||
const xmlChar *name; /* Attribute name */
|
||||
struct _xmlNode *children; /* NULL */
|
||||
@ -258,7 +258,7 @@ typedef enum {
|
||||
typedef struct _xmlElement xmlElement;
|
||||
typedef xmlElement *xmlElementPtr;
|
||||
struct _xmlElement {
|
||||
void *_private; /* for Corba, must be first ! */
|
||||
void *_private; /* application data */
|
||||
xmlElementType type; /* XML_ELEMENT_DECL, must be second ! */
|
||||
const xmlChar *name; /* Element name */
|
||||
struct _xmlNode *children; /* NULL */
|
||||
@ -311,7 +311,7 @@ struct _xmlNs {
|
||||
typedef struct _xmlDtd xmlDtd;
|
||||
typedef xmlDtd *xmlDtdPtr;
|
||||
struct _xmlDtd {
|
||||
void *_private; /* for Corba, must be first ! */
|
||||
void *_private; /* application data */
|
||||
xmlElementType type; /* XML_DTD_NODE, must be second ! */
|
||||
const xmlChar *name; /* Name of the DTD */
|
||||
struct _xmlNode *children; /* the value of the property link */
|
||||
@ -339,7 +339,7 @@ struct _xmlDtd {
|
||||
typedef struct _xmlAttr xmlAttr;
|
||||
typedef xmlAttr *xmlAttrPtr;
|
||||
struct _xmlAttr {
|
||||
void *_private; /* for Corba, must be first ! */
|
||||
void *_private; /* application data */
|
||||
xmlElementType type; /* XML_ATTRIBUTE_NODE, must be second ! */
|
||||
const xmlChar *name; /* the name of the property */
|
||||
struct _xmlNode *children; /* the value of the property */
|
||||
@ -414,7 +414,7 @@ struct _xmlBuffer {
|
||||
typedef struct _xmlNode xmlNode;
|
||||
typedef xmlNode *xmlNodePtr;
|
||||
struct _xmlNode {
|
||||
void *_private; /* for Corba, must be first ! */
|
||||
void *_private; /* application data */
|
||||
xmlElementType type; /* type number, must be second ! */
|
||||
const xmlChar *name; /* the name of the node, or the entity */
|
||||
struct _xmlNode *children; /* parent->childs link */
|
||||
@ -459,7 +459,7 @@ struct _xmlNode {
|
||||
typedef struct _xmlDoc xmlDoc;
|
||||
typedef xmlDoc *xmlDocPtr;
|
||||
struct _xmlDoc {
|
||||
void *_private; /* for Corba, must be first ! */
|
||||
void *_private; /* application data */
|
||||
xmlElementType type; /* XML_DOCUMENT_NODE, must be second ! */
|
||||
char *name; /* name/filename/URI of the document */
|
||||
struct _xmlNode *children; /* the document tree */
|
||||
|
6
tree.c
6
tree.c
@ -2822,9 +2822,11 @@ xmlStaticCopyNode(const xmlNodePtr node, xmlDocPtr doc, xmlNodePtr parent,
|
||||
} else {
|
||||
ret->children = node->children;
|
||||
}
|
||||
} else if (node->children != NULL)
|
||||
ret->last = ret->children;
|
||||
} else if (node->children != NULL) {
|
||||
ret->children = xmlStaticCopyNodeList(node->children, doc, ret);
|
||||
UPDATE_LAST_CHILD_AND_PARENT(ret)
|
||||
UPDATE_LAST_CHILD_AND_PARENT(ret)
|
||||
}
|
||||
return(ret);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user