summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2003-11-26 20:39:47 +0000
committerDaniel Veillard <veillard@src.gnome.org>2003-11-26 20:39:47 +0000
commitc76440fcf8ccc826df1792a093cf66b099881418 (patch)
treecfcaee0b13b6830ccbfa4cdb2ac809ae0dd28e97 /include
parentd45325589df2f4f97eae872fcf9f46c3dc38abfa (diff)
downloadlibxml2-c76440fcf8ccc826df1792a093cf66b099881418.tar.gz
stefan on IRC pointed out that XML_GET_LINE is broken on 2.6.x Daniel
* include/libxml/tree.h: stefan on IRC pointed out that XML_GET_LINE is broken on 2.6.x Daniel
Diffstat (limited to 'include')
-rw-r--r--include/libxml/tree.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/libxml/tree.h b/include/libxml/tree.h
index cfa95ec2..caeaf131 100644
--- a/include/libxml/tree.h
+++ b/include/libxml/tree.h
@@ -477,11 +477,9 @@ struct _xmlNode {
* XML_GET_LINE:
*
* 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_NODE ? (int) (n)->content : 0)
+ (xmlGetLineNo(n))
/**