contrib/gdb-7/gdb/linespec.c
static int
compare_msyms (const void *a, const void *b)
{
  const minsym_and_objfile_d *moa = a;
  const minsym_and_objfile_d *mob = b;
  enum minimal_symbol_type ta = MSYMBOL_TYPE (moa->minsym);
  enum minimal_symbol_type tb = MSYMBOL_TYPE (mob->minsym);

  return classify_mtype (ta) - classify_mtype (tb);
}
/* Callback for qsort that sorts symbols by priority.  */
Callback for qsort that sorts symbols by priority.
Callback for qsort that sorts symbols by priority .
static int
compare_msyms (const void *a, const void *b)
{
  const minsym_and_objfile_d *moa = a;
  const minsym_and_objfile_d *mob = b;
  enum minimal_symbol_type ta = MSYMBOL_TYPE (moa->minsym);
  enum minimal_symbol_type tb = MSYMBOL_TYPE (mob->minsym);
  return classify_mtype (ta) - classify_mtype (tb);
}
static int compare_msyms ( const void * a , const void * b ) { const minsym_and_objfile_d * moa = a ; const minsym_and_objfile_d * mob = b ; enum minimal_symbol_type ta = MSYMBOL_TYPE ( moa -> minsym ) ; enum minimal_symbol_type tb = MSYMBOL_TYPE ( mob -> minsym ) ; return classify_mtype ( ta ) - classify_mtype ( tb ) ; }
Callback for qsort that sorts symbols by priority.
Callback for qsort that sorts symbols by priority .