contrib/gcc-4.7/gcc/cp/class.c
/* Comparison function to compare two TYPE_METHOD_VEC entries by name.  */
Comparison function to compare two TYPE_METHOD_VEC entries by name.
Comparison function to compare two TYPE_METHOD_VEC entries by name .
static int
method_name_cmp (const void* m1_p, const void* m2_p)
{
  const tree *const m1 = (const tree *) m1_p;
  const tree *const m2 = (const tree *) m2_p;
  if (*m1 == NULL_TREE && *m2 == NULL_TREE)
    return 0;
  if (*m1 == NULL_TREE)
    return -1;
  if (*m2 == NULL_TREE)
    return 1;
  if (DECL_NAME (OVL_CURRENT (*m1)) < DECL_NAME (OVL_CURRENT (*m2)))
    return -1;
  return 1;
}
static int method_name_cmp ( const void * m1_p , const void * m2_p ) { const tree * const m1 = ( const tree * ) m1_p ; const tree * const m2 = ( const tree * ) m2_p ; if ( * m1 == NULL_TREE && * m2 == NULL_TREE ) return 0 ; if ( * m1 == NULL_TREE ) return -1 ; if ( * m2 == NULL_TREE ) return 1 ; if ( DECL_NAME ( OVL_CURRENT ( * m1 ) ) < DECL_NAME ( OVL_CURRENT ( * m2 ) ) ) return -1 ; return 1 ; }
Comparison function to compare two TYPE_METHOD_VEC entries by name.
Comparison function to compare two TYPE_METHOD_VEC entries by name .