~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/myisam/mi_open.cc

  • Committer: Stewart Smith
  • Date: 2009-10-08 13:45:54 UTC
  • mto: This revision was merged to the branch mainline in revision 1179.
  • Revision ID: stewart@flamingspork.com-20091008134554-pe9wsrc76j5n718s
make mi_uniquedef_read() static to myisam/mi_open.cc

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
static unsigned char *mi_recinfo_read(unsigned char *ptr, MI_COLUMNDEF *recinfo);
32
32
static uint64_t mi_safe_mul(uint64_t a, uint64_t b);
33
33
static unsigned char *mi_state_info_read(unsigned char *ptr, MI_STATE_INFO *state);
 
34
static unsigned char *mi_uniquedef_read(unsigned char *ptr, MI_UNIQUEDEF *def);
34
35
 
35
36
#define disk_pos_assert(pos, end_pos) \
36
37
if (pos > end_pos)             \
1002
1003
  return my_write(file, buff, (size_t) (ptr-buff), MYF(MY_NABP)) != 0;
1003
1004
}
1004
1005
 
1005
 
unsigned char *mi_uniquedef_read(unsigned char *ptr, MI_UNIQUEDEF *def)
 
1006
static unsigned char *mi_uniquedef_read(unsigned char *ptr, MI_UNIQUEDEF *def)
1006
1007
{
1007
1008
   def->keysegs = mi_uint2korr(ptr);
1008
1009
   def->key     = ptr[2];