Commit 566d4dfa authored by Daniel Veillard's avatar Daniel Veillard
Browse files

Fixed a couple of macro errors pointed out by Denis Beurive, closes #65111

* include/libxml/tree.h: Fixed a couple of macro errors pointed out
  by Denis Beurive, closes #65111
Daniel
parent b4545fd6
Thu Nov 22 13:58:14 CET 2001 Daniel Veillard <daniel@veillard.com>
* include/libxml/tree.h: Fixed a couple of macro errors pointed out
by Denis Beurive, closes #65111
Tue Nov 20 10:34:01 CET 2001 Daniel Veillard <daniel@veillard.com>
* valid.c: in case of content model validity error, don't
......
......@@ -441,15 +441,17 @@ struct _xmlNode {
* macro to extract the content pointer of a node
*/
#define XML_GET_CONTENT(n) \
((n)->type == XML_ELEMENT_PTR ? NULL : (n)->content)
((n)->type == XML_ELEMENT_NODE ? NULL : (n)->content)
/**
* XML_GET_LINE:
*
* macro to extract the line number of an element node
* macro to extract the line number of an element node.
* This will work only if line numbering is activated by
* calling xmlLineNumbersDefault(1) before parsing
*/
#define XML_GET_LINE(n) \
((n)->type == XML_ELEMENT_PTR ? (int) (n)->content : 0)
((n)->type == XML_ELEMENT_NODE ? (int) (n)->content : 0)
/**
* xmlDoc:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment