~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/int.cc

  • Committer: Monty Taylor
  • Date: 2009-04-14 19:16:51 UTC
  • mto: (997.2.5 mordred)
  • mto: This revision was merged to the branch mainline in revision 994.
  • Revision ID: mordred@inaugust.com-20090414191651-ltbww6hpqks8k7qk
Clarified instructions in README.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#include "config.h"
 
20
#include <drizzled/server_includes.h>
 
21
#include CSTDINT_H
21
22
#include <drizzled/item/int.h>
22
 
#include "drizzled/internal/m_string.h"
23
 
 
24
 
namespace drizzled
25
 
{
26
23
 
27
24
/**
28
25
  Create an item from a string we KNOW points to a valid int64_t
34
31
{
35
32
  char *end_ptr= (char*) str_arg + length;
36
33
  int error;
37
 
  value= internal::my_strtoll10(str_arg, &end_ptr, &error);
 
34
  value= my_strtoll10(str_arg, &end_ptr, &error);
38
35
  max_length= (uint32_t) (end_ptr - str_arg);
39
36
  name= (char*) str_arg;
40
37
  fixed= 1;
86
83
}
87
84
 
88
85
 
89
 
} /* namespace drizzled */
 
86