m3-sys/m3cc/gcc-4.5/gcc/c-common.c
/* Function to help qsort sort FIELD_DECLs by name order.  */
Function to help qsort sort FIELD_DECLs by name order.
Function to help qsort sort FIELD_DECLs by name order .
int
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;
  if (DECL_NAME (*x) < DECL_NAME (*y))
    return -1;
  return 1;
}
int 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 ; if ( DECL_NAME ( * x ) < DECL_NAME ( * y ) ) return -1 ; return 1 ; }
Function to help qsort sort FIELD_DECLs by name order.
Function to help qsort sort FIELD_DECLs by name order .
/* A nontype is "greater" than a type.  */