and retrung NULLT if the argument is ther root node. It's consistent with
the behaviour of calling FirstChild on a leaf node.
git-svn-id: svn+ssh://idea.nguyen.vg/svn/sxsi/trunk/XMLTree@65
3cdefd35-fc62-479d-8e8d-
bae585ffb9ca
fprintf(stderr, "Error: data structure has not been constructed properly\n");\r
exit(1);\r
}\r
fprintf(stderr, "Error: data structure has not been constructed properly\n");\r
exit(1);\r
}\r
+ if (x == Root())\r
+ return NULLT;\r
+ \r
return next_sibling(Par, x);\r
}\r
\r
return next_sibling(Par, x);\r
}\r
\r