~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/field/long.h

  • Committer: Brian Aker
  • Date: 2008-07-22 18:31:32 UTC
  • Revision ID: brian@tangent.org-20080722183132-ne2ntl7g7mdf2eez
uint32 -> uin32_t

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
class Field_long :public Field_num {
27
27
public:
28
 
  Field_long(uchar *ptr_arg, uint32 len_arg, uchar *null_ptr_arg,
 
28
  Field_long(uchar *ptr_arg, uint32_t len_arg, uchar *null_ptr_arg,
29
29
             uchar null_bit_arg,
30
30
             enum utype unireg_check_arg, const char *field_name_arg,
31
31
             bool zero_arg, bool unsigned_arg)
33
33
               unireg_check_arg, field_name_arg,
34
34
               0, zero_arg,unsigned_arg)
35
35
    {}
36
 
  Field_long(uint32 len_arg,bool maybe_null_arg, const char *field_name_arg,
 
36
  Field_long(uint32_t len_arg,bool maybe_null_arg, const char *field_name_arg,
37
37
             bool unsigned_arg)
38
38
    :Field_num((uchar*) 0, len_arg, maybe_null_arg ? (uchar*) "": 0,0,
39
39
               NONE, field_name_arg,0,0,unsigned_arg)
52
52
  String *val_str(String*,String *);
53
53
  int cmp(const uchar *,const uchar *);
54
54
  void sort_string(uchar *buff,uint length);
55
 
  uint32 pack_length() const { return 4; }
 
55
  uint32_t pack_length() const { return 4; }
56
56
  void sql_type(String &str) const;
57
 
  uint32 max_display_length() { return MY_INT32_NUM_DECIMAL_DIGITS; }
 
57
  uint32_t max_display_length() { return MY_INT32_NUM_DECIMAL_DIGITS; }
58
58
  virtual uchar *pack(uchar* to, const uchar *from,
59
59
                      uint max_length __attribute__((__unused__)),
60
60
                      bool low_byte_first __attribute__((__unused__)))
61
61
  {
62
 
    int32 val;
 
62
    int32_t val;
63
63
#ifdef WORDS_BIGENDIAN
64
64
    if (table->s->db_low_byte_first)
65
65
      val = sint4korr(from);
80
80
                              uint param_data __attribute__((__unused__)),
81
81
                              bool low_byte_first __attribute__((__unused__)))
82
82
  {
83
 
    int32 val;
 
83
    int32_t val;
84
84
#ifdef WORDS_BIGENDIAN
85
85
    if (low_byte_first)
86
86
      val = sint4korr(from);