~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/hash.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:
46
46
}
47
47
 
48
48
bool
49
 
_hash_init(HASH *hash,uint growth_size, CHARSET_INFO *charset,
 
49
_hash_init(HASH *hash,uint growth_size, const CHARSET_INFO * const charset,
50
50
           ulong size, size_t key_offset, size_t key_length,
51
51
           hash_get_key get_key,
52
52
           void (*free_element)(void*),uint flags CALLER_INFO_PROTO)