63
63
#define get_key_length(length,key) \
64
{ if (*(unsigned char*) (key) != 255) \
65
length= (uint) *(unsigned char*) ((key)++); \
64
{ if (*(uchar*) (key) != 255) \
65
length= (uint) *(uchar*) ((key)++); \
67
67
{ length= mi_uint2korr((key)+1); (key)+=3; } \
70
70
#define get_key_length_rdonly(length,key) \
71
{ if (*(unsigned char*) (key) != 255) \
72
length= ((uint) *(unsigned char*) ((key))); \
71
{ if (*(uchar*) (key) != 255) \
72
length= ((uint) *(uchar*) ((key))); \
74
74
{ length= mi_uint2korr((key)+1); } \
77
77
#define get_key_pack_length(length,length_pack,key) \
78
{ if (*(unsigned char*) (key) != 255) \
79
{ length= (uint) *(unsigned char*) ((key)++); length_pack= 1; }\
78
{ if (*(uchar*) (key) != 255) \
79
{ length= (uint) *(uchar*) ((key)++); length_pack= 1; }\
81
81
{ length=mi_uint2korr((key)+1); (key)+= 3; length_pack= 3; } \
106
106
#define clr_rec_bits(bit_ptr, bit_ofs, bit_len) \
107
107
set_rec_bits(0, bit_ptr, bit_ofs, bit_len)
109
extern int ha_compare_text(const CHARSET_INFO * const, unsigned char *, uint, unsigned char *, uint, bool, bool);
109
extern int ha_compare_text(const CHARSET_INFO * const, uchar *, uint, uchar *, uint, bool, bool);
111
extern HA_KEYSEG *ha_find_null(HA_KEYSEG *keyseg, unsigned char *a);
112
void my_handler_error_register(void);
113
void my_handler_error_unregister(void);
114
extern int ha_key_cmp(HA_KEYSEG *keyseg, unsigned char *a,unsigned char *b,
115
uint32_t key_length,uint32_t nextflag,uint32_t *diff_length);
111
extern HA_KEYSEG *ha_find_null(HA_KEYSEG *keyseg, uchar *a);
112
extern void my_handler_error_register(void);
113
extern void my_handler_error_unregister(void);
114
extern int ha_key_cmp(HA_KEYSEG *keyseg, uchar *a,uchar *b,
115
uint key_length,uint nextflag,uint *diff_length);
118
118
Inside an in-memory data record, memory pointers to pieces of the