contrib/gdb-7/gdb/jit.c
static int
compare_block (const struct gdb_block *const old,
               const struct gdb_block *const new)
{
  if (old == NULL)
    return 1;
  if (old->begin < new->begin)
    return 1;
  else if (old->begin == new->begin)
    {
      if (old->end > new->end)
        return 1;
      else
        return 0;
    }
  else
    return 0;
}
/* Returns true if the block corresponding to old should be placed
   before the block corresponding to new in the final blockvector.  */
Returns true if the block corresponding to old should be placed
before the block corresponding to new in the final blockvector.
Returns true if the block corresponding to old should be placed before the block corresponding to new in the final blockvector .
static int
compare_block (const struct gdb_block *const old,
               const struct gdb_block *const new)
{
  if (old == NULL)
    return 1;
  if (old->begin < new->begin)
    return 1;
  else if (old->begin == new->begin)
    {
      if (old->end > new->end)
        return 1;
      else
        return 0;
    }
  else
    return 0;
}
static int compare_block ( const struct gdb_block * const old , const struct gdb_block * const new ) { if ( old == NULL ) return 1 ; if ( old -> begin < new -> begin ) return 1 ; else if ( old -> begin == new -> begin ) { if ( old -> end > new -> end ) return 1 ; else return 0 ; } else return 0 ; }
Returns true if the block corresponding to old should be placed
before the block corresponding to new in the final blockvector.
Returns true if the block corresponding to old should be placed before the block corresponding to new in the final blockvector .