From fa81dc479801ba1343695d66cdb37d8b80bfae9d Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 8 May 2007 02:53:28 +0000 Subject: Added target fullcheck. --- src/xml.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/xml.h') diff --git a/src/xml.h b/src/xml.h index 96964975..b11cb86f 100644 --- a/src/xml.h +++ b/src/xml.h @@ -236,18 +236,23 @@ private: names_map names_index; - terminal_node_t stub; - - public: +public: node_t * top; +private: + terminal_node_t stub; + +public: // Ids 0-9 are reserved. 10-999 are for "builtin" names. 1000+ are // for dynamically registered names. enum special_names_t { CURRENT, PARENT, ROOT, ALL }; - document_t(node_t * _top = NULL); + document_t(node_t * _top = NULL) + : top(_top ? _top : &stub), stub(this) { + TRACE_CTOR(xml::document_t, "node_t *, const char **, const int"); + } ~document_t(); void set_top(node_t * _top); -- cgit v1.2.3