~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/queues.c

  • Committer: Brian Aker
  • Date: 2008-07-13 18:27:33 UTC
  • Revision ID: brian@tangent.org-20080713182733-3u1et5nrmofi8a8n
my_bool cleanup.

Show diffs side-by-side

added added

removed removed

Lines of Context:
276
276
{
277
277
  uchar *element;
278
278
  uint elements,half_queue,offset_to_key, next_index;
279
 
  my_bool first= TRUE;
 
279
  bool first= TRUE;
280
280
  uint start_idx= idx;
281
281
 
282
282
  offset_to_key=queue->offset_to_key;
384
384
static uint tot_no_loops= 0;
385
385
static uint expected_part= 0;
386
386
static uint expected_num= 0;
387
 
static my_bool max_ind= 0;
388
 
static my_bool fix_used= 0;
 
387
static bool max_ind= 0;
 
388
static bool fix_used= 0;
389
389
static ulonglong start_time= 0;
390
390
 
391
 
static my_bool is_divisible_by(uint num, uint divisor)
 
391
static bool is_divisible_by(uint num, uint divisor)
392
392
{
393
393
  uint quotient= num / divisor;
394
394
  if (quotient * divisor == num)
495
495
  return 0;
496
496
}
497
497
 
498
 
my_bool check_num(uint num_part)
 
498
bool check_num(uint num_part)
499
499
{
500
500
  uint part= num_part >> 22;
501
501
  uint num= num_part & 0x3FFFFF;
546
546
  }
547
547
}
548
548
 
549
 
my_bool perform_ins_del(QUEUE *queue, my_bool max_ind)
 
549
bool perform_ins_del(QUEUE *queue, bool max_ind)
550
550
{
551
551
  uint i= 0, no_loops= tot_no_loops, j= tot_no_parts;
552
552
  do
574
574
  return FALSE;
575
575
}
576
576
 
577
 
my_bool do_test(uint no_parts, uint l_max_ind, my_bool l_fix_used)
 
577
bool do_test(uint no_parts, uint l_max_ind, bool l_fix_used)
578
578
{
579
579
  QUEUE queue;
580
 
  my_bool result;
 
580
  bool result;
581
581
  max_ind= l_max_ind;
582
582
  fix_used= l_fix_used;
583
583
  init_queue(&queue, no_parts, 0, max_ind, test_compare, NULL);