~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mystrings/decimal.h

  • Committer: Brian Aker
  • Date: 2008-08-11 04:55:59 UTC
  • Revision ID: brian@tangent.org-20080811045559-azgfc343y0igyzsz
ulong cleanup, remove log code from myisam.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
#ifndef _decimal_h
17
17
#define _decimal_h
18
18
 
19
 
#if defined(__cplusplus)
20
 
extern "C" {
21
 
#endif
22
 
 
23
19
typedef enum
24
20
{TRUNCATE=0, HALF_EVEN, HALF_UP, CEILING, FLOOR}
25
21
  decimal_round_mode;
43
39
int decimal2double(decimal_t *from, double *to);
44
40
int double2decimal(double from, decimal_t *to);
45
41
int decimal_actual_fraction(decimal_t *from);
46
 
int decimal2bin(decimal_t *from, unsigned char *to, int precision, int scale);
47
 
int bin2decimal(const unsigned char *from, decimal_t *to, int precision, int scale);
 
42
int decimal2bin(decimal_t *from, uchar *to, int precision, int scale);
 
43
int bin2decimal(const uchar *from, decimal_t *to, int precision, int scale);
48
44
 
49
45
int decimal_size(int precision, int scale);
50
46
int decimal_bin_size(int precision, int scale);
107
103
#define E_DEC_ERROR            31
108
104
#define E_DEC_FATAL_ERROR      30
109
105
 
110
 
#if defined(__cplusplus)
111
 
}
112
 
#endif
113
 
 
114
106
#endif
115
107