~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/mi_static.c

  • Committer: Monty Taylor
  • Date: 2008-10-16 06:32:30 UTC
  • mto: (511.1.5 codestyle)
  • mto: This revision was merged to the branch mainline in revision 521.
  • Revision ID: monty@inaugust.com-20081016063230-4brxsra0qsmsg84q
Added -Wunused-macros.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
  a shared library
19
19
*/
20
20
 
21
 
#ifndef _global_h
22
21
#include "myisamdef.h"
23
 
#endif
24
22
 
25
23
LIST    *myisam_open_list=0;
26
 
uchar    myisam_file_magic[]=
27
 
{ (uchar) 254, (uchar) 254,'\007', '\001', };
28
 
uchar    myisam_pack_file_magic[]=
29
 
{ (uchar) 254, (uchar) 254,'\010', '\002', };
 
24
unsigned char    myisam_file_magic[]=
 
25
{ (unsigned char) 254, (unsigned char) 254,'\007', '\001', };
 
26
unsigned char    myisam_pack_file_magic[]=
 
27
{ (unsigned char) 254, (unsigned char) 254,'\010', '\002', };
30
28
char * myisam_log_filename=(char*) "myisam.log";
31
29
File    myisam_log_file= -1;
32
30
uint    myisam_quick_table_bits=9;
33
 
ulong   myisam_block_size= MI_KEY_BLOCK_LENGTH;         /* Best by test */
34
 
my_bool myisam_flush=0, myisam_delay_key_write=0, myisam_single_user=0;
35
 
#if !defined(DONT_USE_RW_LOCKS)
36
 
ulong myisam_concurrent_insert= 2;
37
 
#else
38
 
ulong myisam_concurrent_insert= 0;
39
 
#endif
 
31
uint32_t myisam_block_size= MI_KEY_BLOCK_LENGTH;                /* Best by test */
 
32
bool myisam_flush= false;
 
33
bool myisam_delay_key_write= false;
 
34
bool myisam_single_user= false;
 
35
uint32_t myisam_concurrent_insert= 2;
40
36
my_off_t myisam_max_temp_length= MAX_FILE_SIZE;
41
 
ulong    myisam_bulk_insert_tree_size=8192*1024;
42
 
ulong    myisam_data_pointer_size=4;
 
37
uint32_t myisam_bulk_insert_tree_size=8192*1024;
 
38
uint32_t myisam_data_pointer_size=4;
43
39
 
44
40
/*
45
41
  read_vec[] is used for converting between P_READ_KEY.. and SEARCH_
46
42
  Position is , == , >= , <= , > , <
47
43
*/
48
44
 
49
 
uint  myisam_read_vec[]=
 
45
uint32_t  myisam_read_vec[]=
50
46
{
51
47
  SEARCH_FIND, SEARCH_FIND | SEARCH_BIGGER, SEARCH_FIND | SEARCH_SMALLER,
52
48
  SEARCH_NO_FIND | SEARCH_BIGGER, SEARCH_NO_FIND | SEARCH_SMALLER,
54
50
  MBR_CONTAIN, MBR_INTERSECT, MBR_WITHIN, MBR_DISJOINT, MBR_EQUAL
55
51
};
56
52
 
57
 
uint  myisam_readnext_vec[]=
 
53
uint32_t  myisam_readnext_vec[]=
58
54
{
59
55
  SEARCH_BIGGER, SEARCH_BIGGER, SEARCH_SMALLER, SEARCH_BIGGER, SEARCH_SMALLER,
60
56
  SEARCH_BIGGER, SEARCH_SMALLER, SEARCH_SMALLER