FreeBSD/contrib/gcc/c-common.c
/* This routine compares two fields like field_decl_cmp but using the
pointer operator in resort_data.  */
This routine compares two fields like field_decl_cmp but using the
pointer operator in resort_data.
This routine compares two fields like field_decl_cmp but using the pointer operator in resort_data .
static int
resort_field_decl_cmp (const void *x_p, const void *y_p)
{
  const tree *const x = (const tree *const) x_p;
  const tree *const y = (const tree *const) y_p;
  if (DECL_NAME (*x) == DECL_NAME (*y))
    return (TREE_CODE (*y) == TYPE_DECL) - (TREE_CODE (*x) == TYPE_DECL);
  if (DECL_NAME (*x) == NULL_TREE)
    return -1;
  if (DECL_NAME (*y) == NULL_TREE)
    return 1;
  {
    tree d1 = DECL_NAME (*x);
    tree d2 = DECL_NAME (*y);
    resort_data.new_value (&d1, resort_data.cookie);
    resort_data.new_value (&d2, resort_data.cookie);
    if (d1 < d2)
      return -1;
  }
  return 1;
}
static int resort_field_decl_cmp ( const void * x_p , const void * y_p ) { const tree * const x = ( const tree * const ) x_p ; const tree * const y = ( const tree * const ) y_p ; if ( DECL_NAME ( * x ) == DECL_NAME ( * y ) ) return ( TREE_CODE ( * y ) == TYPE_DECL ) - ( TREE_CODE ( * x ) == TYPE_DECL ) ; if ( DECL_NAME ( * x ) == NULL_TREE ) return -1 ; if ( DECL_NAME ( * y ) == NULL_TREE ) return 1 ; { tree d1 = DECL_NAME ( * x ) ; tree d2 = DECL_NAME ( * y ) ; resort_data . new_value ( & d1 , resort_data . cookie ) ; resort_data . new_value ( & d2 , resort_data . cookie ) ; if ( d1 < d2 ) return -1 ; } return 1 ; }
This routine compares two fields like field_decl_cmp but using the
pointer operator in resort_data.
This routine compares two fields like field_decl_cmp but using the pointer operator in resort_data .
/* A nontype is "greater" than a type.  */