ns-allinone-2.35/queue/cbq.cc
int
CBQClass::ancestor(CBQClass *p)
{
	if (!p->permit_borrowing_ || p->lender_ == NULL)
		return (0);
	else if (p->lender_ == this)
		return (1);
	return (ancestor(p->lender_));
}
/*
 * return 1 if we are an ancestor of p, 0 otherwise
 */
return 1 if we are an ancestor of p, 0 otherwise
return 1 if we are an ancestor of p 0 otherwise
int
CBQClass::ancestor(CBQClass *p)
{
	if (!p->permit_borrowing_ || p->lender_ == NULL)
		return (0);
	else if (p->lender_ == this)
		return (1);
	return (ancestor(p->lender_));
}
int CBQClass :: ancestor ( CBQClass * p ) { if ( ! p -> permit_borrowing_ || p -> lender_ == NULL ) return ( 0 ) ; else if ( p -> lender_ == this ) return ( 1 ) ; return ( ancestor ( p -> lender_ ) ) ; }
return 1 if we are an ancestor of p, 0 otherwise
return 1 if we are an ancestor of p 0 otherwise