~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/my_decimal.h

Removed/replaced DBUG symbols and standardized TRUE/FALSE

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
  {
100
100
    len= DECIMAL_BUFF_LENGTH;
101
101
    buf= buffer;
102
 
#if !defined (HAVE_purify) && !defined(DBUG_OFF)
 
102
#if !defined (HAVE_purify) 
103
103
    /* Set buffer to 'random' value to find wrong buffer usage */
104
104
    for (uint i= 0; i < DECIMAL_BUFF_LENGTH; i++)
105
105
      buffer[i]= i;
117
117
};
118
118
 
119
119
 
120
 
#ifndef DBUG_OFF
121
120
void print_decimal(const my_decimal *dec);
122
121
void print_decimal_buff(const my_decimal *dec, const uchar* ptr, int length);
123
122
const char *dbug_decimal_as_string(char *buff, const my_decimal *val);
124
 
#else
125
 
#define dbug_decimal_as_string(A) NULL
126
 
#endif
127
123
 
128
124
#ifndef MYSQL_CLIENT
129
125
int decimal_operation_results(int result);
137
133
inline
138
134
void max_my_decimal(my_decimal *to, int precision, int frac)
139
135
{
140
 
  DBUG_ASSERT((precision <= DECIMAL_MAX_PRECISION)&&
 
136
  assert((precision <= DECIMAL_MAX_PRECISION)&&
141
137
              (frac <= DECIMAL_MAX_SCALE));
142
138
  max_decimal(precision, frac, (decimal_t*) to);
143
139
}