~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/internal/m_string.h

  • Committer: Andrew Hutchings
  • Date: 2011-02-01 10:23:22 UTC
  • mto: (2136.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 2137.
  • Revision ID: andrew@linuxjedi.co.uk-20110201102322-oxztcyrjzg3c7yta
Fix counters cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
 
20
20
 
21
 
#pragma once
 
21
#ifndef DRIZZLED_INTERNAL_M_STRING_H
 
22
#define DRIZZLED_INTERNAL_M_STRING_H
22
23
 
23
24
#if defined(HAVE_STRINGS_H)
24
25
#include <strings.h>
39
40
#endif
40
41
 
41
42
 
42
 
#include <drizzled/visibility.h>
 
43
#include "drizzled/visibility.h"
43
44
 
44
45
namespace drizzled
45
46
{
94
95
*/
95
96
#define MAX_DECPT_FOR_F_FORMAT DBL_DIG
96
97
 
 
98
/*
 
99
  The maximum possible field width for my_gcvt() conversion.
 
100
  (DBL_DIG + 2) significant digits + sign + "." + ("e-NNN" or
 
101
  MAX_DECPT_FOR_F_FORMAT zeros for cases when |x|<1 and the 'f' format is used).
 
102
*/
 
103
#define MY_GCVT_MAX_FIELD_WIDTH (DBL_DIG + 4 + cmax(5, MAX_DECPT_FOR_F_FORMAT))
 
104
 
 
105
 
97
106
extern char *llstr(int64_t value,char *buff);
98
107
extern char *ullstr(int64_t value,char *buff);
99
108
 
125
134
} /* namespace internal */
126
135
} /* namespace drizzled */
127
136
 
 
137
#endif /* DRIZZLED_INTERNAL_M_STRING_H */