~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_handler.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:
47
47
 
48
48
typedef struct st_HA_KEYSEG             /* Key-portion */
49
49
{
50
 
  CHARSET_INFO *charset;
 
50
  const CHARSET_INFO *charset;
51
51
  uint32_t start;                               /* Start of key in record */
52
52
  uint32_t null_pos;                    /* position to NULL indicator */
53
53
  uint16_t bit_pos;                       /* Position to bit part */
106
106
#define clr_rec_bits(bit_ptr, bit_ofs, bit_len) \
107
107
  set_rec_bits(0, bit_ptr, bit_ofs, bit_len)
108
108
 
109
 
extern int ha_compare_text(CHARSET_INFO *, uchar *, uint, uchar *, uint, bool, bool);
 
109
extern int ha_compare_text(const CHARSET_INFO * const, uchar *, uint, uchar *, uint, bool, bool);
110
110
 
111
111
extern HA_KEYSEG *ha_find_null(HA_KEYSEG *keyseg, uchar *a);
112
112
extern void my_handler_error_register(void);