contrib/gcc/cp/typeck.c
/* Returns 1 if TYPE1 is more cv-qualified than TYPE2, -1 if TYPE2 is
   more cv-qualified that TYPE1, and 0 otherwise.  */
Returns 1 if TYPE1 is more cv-qualified than TYPE2, -1 if TYPE2 is
more cv-qualified that TYPE1, and 0 otherwise.
Returns 1 if TYPE1 is more cv - qualified than TYPE2 - 1 if TYPE2 is more cv - qualified that TYPE1 and 0 otherwise .
int
comp_cv_qualification (tree type1, tree type2)
{
  int q1 = cp_type_quals (type1);
  int q2 = cp_type_quals (type2);
  if (q1 == q2)
    return 0;
  if ((q1 & q2) == q2)
    return 1;
  else if ((q1 & q2) == q1)
    return -1;
  return 0;
}
int comp_cv_qualification ( tree type1 , tree type2 ) { int q1 = cp_type_quals ( type1 ) ; int q2 = cp_type_quals ( type2 ) ; if ( q1 == q2 ) return 0 ; if ( ( q1 & q2 ) == q2 ) return 1 ; else if ( ( q1 & q2 ) == q1 ) return -1 ; return 0 ; }
Returns 1 if TYPE1 is more cv-qualified than TYPE2, -1 if TYPE2 is
more cv-qualified that TYPE1, and 0 otherwise.
Returns 1 if TYPE1 is more cv - qualified than TYPE2 - 1 if TYPE2 is more cv - qualified that TYPE1 and 0 otherwise .