~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/set.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:
29
29
            uchar null_bit_arg,
30
30
            enum utype unireg_check_arg, const char *field_name_arg,
31
31
            uint32_t packlength_arg,
32
 
            TYPELIB *typelib_arg, CHARSET_INFO *charset_arg)
 
32
            TYPELIB *typelib_arg, const CHARSET_INFO * const charset_arg)
33
33
    :Field_enum(ptr_arg, len_arg, null_ptr_arg, null_bit_arg,
34
34
                    unireg_check_arg, field_name_arg,
35
35
                packlength_arg,
37
37
    {
38
38
      flags=(flags & ~ENUM_FLAG) | SET_FLAG;
39
39
    }
40
 
  int  store(const char *to,uint length,CHARSET_INFO *charset);
 
40
  int  store(const char *to,uint length, const CHARSET_INFO * const charset);
41
41
  int  store(double nr) { return Field_set::store((int64_t) nr, false); }
42
42
  int  store(int64_t nr, bool unsigned_val);
43
43