~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/internal/m_string.h

  • Committer: Stewart Smith
  • Date: 2011-03-29 01:30:47 UTC
  • mto: (2257.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 2258.
  • Revision ID: stewart@flamingspork.com-20110329013047-5ujzfx6pahmwuko2
have CachedDirectory print out a warning if we can't stat() something in a directory. We should always have access to at least stat() things in directories Drizzle is running in (otherwise there is likely a problem)

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
/* There may be prolems include all of theese. Try to test in
17
17
   configure with ones are needed? */
18
18
 
19
 
/*  This is needed for the definitions of strchr... on solaris */
20
 
 
21
 
 
22
 
#ifndef DRIZZLED_INTERNAL_M_STRING_H
23
 
#define DRIZZLED_INTERNAL_M_STRING_H
 
19
 
 
20
 
 
21
#pragma once
24
22
 
25
23
#if defined(HAVE_STRINGS_H)
26
24
#include <strings.h>
40
38
#include <memory.h>
41
39
#endif
42
40
 
 
41
 
 
42
#include <drizzled/visibility.h>
 
43
 
43
44
namespace drizzled
44
45
{
45
46
namespace internal
68
69
  MY_GCVT_ARG_DOUBLE
69
70
} my_gcvt_arg_type;
70
71
 
71
 
double my_strtod(const char *str, char **end, int *error);
72
 
double my_atof(const char *nptr);
73
 
size_t my_fcvt(double x, int precision, char *to, bool *error);
74
 
size_t my_gcvt(double x, my_gcvt_arg_type type, int width, char *to,
75
 
               bool *error);
 
72
DRIZZLED_API double my_strtod(const char *str, char **end, int *error);
 
73
DRIZZLED_API double my_atof(const char *nptr);
 
74
DRIZZLED_API size_t my_fcvt(double x, int precision, char *to, bool *error);
 
75
DRIZZLED_API size_t my_gcvt(double x, my_gcvt_arg_type type, int width, char *to,
 
76
                            bool *error);
76
77
 
77
78
#define NOT_FIXED_DEC (uint8_t)31
78
79
 
106
107
 
107
108
extern char *int2str(int32_t val, char *dst, int radix, int upcase);
108
109
extern char *int10_to_str(int32_t val,char *dst,int radix);
109
 
int64_t my_strtoll10(const char *nptr, char **endptr, int *error);
110
 
extern char *int64_t2str(int64_t val,char *dst,int radix);
111
 
extern char *int64_t10_to_str(int64_t val,char *dst,int radix);
 
110
DRIZZLED_API int64_t my_strtoll10(const char *nptr, char **endptr, int *error);
 
111
DRIZZLED_API char *int64_t2str(int64_t val,char *dst,int radix);
 
112
DRIZZLED_API char *int64_t10_to_str(int64_t val,char *dst,int radix);
112
113
 
113
114
 
114
115
/**
132
133
} /* namespace internal */
133
134
} /* namespace drizzled */
134
135
 
135
 
#endif /* DRIZZLED_INTERNAL_M_STRING_H */