src/gedlib/equaliso.c
/*====================================================
 * equal_nodes -- See if two node structures are equal
 *==================================================*/
- See if two node structures are equal
- See if two node structures are equal
BOOLEAN
equal_nodes (NODE root1,
             NODE root2,
             BOOLEAN kids,
             BOOLEAN sibs)
{
	if (!root1 && !root2) return TRUE;
	while (root1) {
		if (!equal_node(root1, root2)) return FALSE;
		if (kids && !equal_nodes(nchild(root1), nchild(root2), 1, 1))
			return FALSE;
		if (!sibs) return TRUE;
		root1 = nsibling(root1);
		root2 = nsibling(root2);
	}
	return (root2 == NULL);
}
BOOLEAN equal_nodes ( NODE root1 , NODE root2 , BOOLEAN kids , BOOLEAN sibs ) { if ( ! root1 && ! root2 ) return TRUE ; while ( root1 ) { if ( ! equal_node ( root1 , root2 ) ) return FALSE ; if ( kids && ! equal_nodes ( nchild ( root1 ) , nchild ( root2 ) , 1 , 1 ) ) return FALSE ; if ( ! sibs ) return TRUE ; root1 = nsibling ( root1 ) ; root2 = nsibling ( root2 ) ; } return ( root2 == NULL ) ; }
equal_nodes -- See if two node structures are equal
equal_nodes -- See if two node structures are equal