~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/mi_key.c

  • 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:
60
60
    enum ha_base_keytype type=(enum ha_base_keytype) keyseg->type;
61
61
    uint length=keyseg->length;
62
62
    uint char_length;
63
 
    CHARSET_INFO *cs=keyseg->charset;
 
63
    const CHARSET_INFO * const cs=keyseg->charset;
64
64
 
65
65
    if (keyseg->null_bit)
66
66
    {
211
211
    uint length= keyseg->length;
212
212
    uint char_length;
213
213
    uchar *pos;
214
 
    CHARSET_INFO *cs=keyseg->charset;
 
214
    const CHARSET_INFO * const cs=keyseg->charset;
215
215
    keypart_map>>= 1;
216
216
    if (keyseg->null_bit)
217
217
    {