~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/internal/ptr_cmp.cc

  • Committer: Olaf van der Spek
  • Date: 2011-02-21 21:45:55 UTC
  • mto: (2190.1.2 drizzle-build)
  • mto: This revision was merged to the branch mainline in revision 2191.
  • Revision ID: olafvdspek@gmail.com-20110221214555-ryzxlqrw5tm1ypp1
Remove register keyword

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
 
63
63
static int ptr_compare(size_t *compare_length, unsigned char **a, unsigned char **b)
64
64
{
65
 
  register int length= *compare_length;
66
 
  register unsigned char *first,*last;
 
65
  int length= *compare_length;
 
66
  unsigned char *first,*last;
67
67
 
68
68
  first= *a; last= *b;
69
69
  while (--length)
77
77
 
78
78
static int ptr_compare_0(size_t *compare_length,unsigned char **a, unsigned char **b)
79
79
{
80
 
  register int length= *compare_length;
81
 
  register unsigned char *first,*last;
 
80
  int length= *compare_length;
 
81
  unsigned char *first,*last;
82
82
 
83
83
  first= *a; last= *b;
84
84
 loop:
98
98
 
99
99
static int ptr_compare_1(size_t *compare_length,unsigned char **a, unsigned char **b)
100
100
{
101
 
  register int length= *compare_length-1;
102
 
  register unsigned char *first,*last;
 
101
  int length= *compare_length-1;
 
102
  unsigned char *first,*last;
103
103
 
104
104
  first= *a+1; last= *b+1;
105
105
  cmp(-1);
119
119
 
120
120
static int ptr_compare_2(size_t *compare_length,unsigned char **a, unsigned char **b)
121
121
{
122
 
  register int length= *compare_length-2;
123
 
  register unsigned char *first,*last;
 
122
  int length= *compare_length-2;
 
123
  unsigned char *first,*last;
124
124
 
125
125
  first= *a +2 ; last= *b +2;
126
126
  cmp(-2);
141
141
 
142
142
static int ptr_compare_3(size_t *compare_length,unsigned char **a, unsigned char **b)
143
143
{
144
 
  register int length= *compare_length-3;
145
 
  register unsigned char *first,*last;
 
144
  int length= *compare_length-3;
 
145
  unsigned char *first,*last;
146
146
 
147
147
  first= *a +3 ; last= *b +3;
148
148
  cmp(-3);