~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mystrings/decimal.c

  • Committer: Jay Pipes
  • Date: 2008-08-25 21:12:17 UTC
  • mfrom: (322.2.4 stdize-code)
  • Revision ID: jay@mysql.com-20080825211217-eqvfmcgvkoktdvtr
From Mats.  Corrected build issue with missing Makefile target

Show diffs side-by-side

added added

removed removed

Lines of Context:
210
210
          (to)=a;                                                       \
211
211
        } while(0)
212
212
 
 
213
/**
 
214
  Swap the contents of two variables.
 
215
 */
 
216
#define swap_variables(TYPE, a, b) \
 
217
  do {                             \
 
218
    TYPE dummy;                    \
 
219
    dummy= a;                      \
 
220
    a= b;                          \
 
221
    b= dummy;                      \
 
222
  } while (0)
 
223
 
 
224
 
213
225
/*
214
226
  Get maximum value for given precision and scale
215
227