ptree_check_leaf
ok = ok && ptree_check_leaf(pt, ptn, PT_NODE(node));
ok = ok && ptree_check_leaf(pt, parent, ptn);