~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/timestamp.h

  • Committer: Andrey Hristov
  • Date: 2008-08-06 00:04:45 UTC
  • mto: (264.1.5 codestyle)
  • mto: This revision was merged to the branch mainline in revision 266.
  • Revision ID: ahristov@mysql.com-20080806000445-84urmltikgwk9v5d
Constify the usage of CHARSET_INFO almost to the last place in the code.
99% of the parameters are const CHARSET_INFO * const cs.
Wherever possible stack variables are also double consted.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
  Field_timestamp(uchar *ptr_arg, uint32_t len_arg,
29
29
                  uchar *null_ptr_arg, uchar null_bit_arg,
30
30
                  enum utype unireg_check_arg, const char *field_name_arg,
31
 
                  TABLE_SHARE *share, CHARSET_INFO *cs);
 
31
                  TABLE_SHARE *share, const CHARSET_INFO * const cs);
32
32
  Field_timestamp(bool maybe_null_arg, const char *field_name_arg,
33
 
                  CHARSET_INFO *cs);
 
33
                  const CHARSET_INFO * const cs);
34
34
  enum_field_types type() const { return DRIZZLE_TYPE_TIMESTAMP;}
35
35
  enum ha_base_keytype key_type() const { return HA_KEYTYPE_ULONG_INT; }
36
36
  enum Item_result cmp_type () const { return INT_RESULT; }
37
 
  int  store(const char *to,uint length,CHARSET_INFO *charset);
 
37
  int  store(const char *to,uint length, const CHARSET_INFO * const charset);
38
38
  int  store(double nr);
39
39
  int  store(int64_t nr, bool unsigned_val);
40
40
  int  reset(void) { ptr[0]=ptr[1]=ptr[2]=ptr[3]=0; return 0; }