diff options
author | unknown <monty@hundin.mysql.fi> | 2001-11-07 00:13:29 +0200 |
---|---|---|
committer | unknown <monty@hundin.mysql.fi> | 2001-11-07 00:13:29 +0200 |
commit | 8547d05ccc9c00450ae8b226cb38f53f90162958 (patch) | |
tree | 64754ff9c9c94a31f64a96e1a5e3ae60a4a93253 /myisam | |
parent | 9f29fd68bdc85997e5cef96eaa6b1a0758303349 (diff) | |
download | mariadb-git-8547d05ccc9c00450ae8b226cb38f53f90162958.tar.gz |
Portability fix
Cleanup typos (like SKIPP -> SKIP)
BUILD/compile-alpha-cxx:
Fix when using InnoDB
Docs/manual.texi:
FreeBSD note
client/mysqlmanager-pwgen.c:
Portability fix
include/my_base.h:
Cleanup typos
isam/_dynrec.c:
Cleanup typos
isam/_packrec.c:
Cleanup typos
isam/create.c:
Cleanup typos
isam/pack_isam.c:
Cleanup typos
isam/test1.c:
Cleanup typos
isam/test2.c:
Cleanup typos
libmysql/manager.c:
Portability fix
myisam/ft_eval.c:
Cleanup typos
myisam/ft_test1.c:
Cleanup typos
myisam/mi_create.c:
Cleanup typos
myisam/mi_dynrec.c:
Cleanup typos
myisam/mi_packrec.c:
Cleanup typos
myisam/mi_test1.c:
Cleanup typos
myisam/mi_test2.c:
Cleanup typos
myisam/myisampack.c:
Cleanup typos
sql/field.cc:
Cleanup typos
sql/field.h:
Cleanup typos
sql/filesort.cc:
Cleanup typos
sql/gen_lex_hash.cc:
Cleanup typos
sql/ha_isam.cc:
Cleanup typos
sql/ha_myisam.cc:
Cleanup typos
sql/handler.h:
Cleanup typos
sql/hash_filo.h:
Cleanup typos
sql/item.h:
Cleanup typos
sql/item_cmpfunc.cc:
Cleanup typos
sql/item_strfunc.cc:
Cleanup typos
sql/key.cc:
Cleanup typos
sql/mysqld.cc:
Cleanup typos
sql/opt_range.cc:
Cleanup typos
sql/opt_sum.cc:
Cleanup typos
sql/sql_acl.cc:
Cleanup typos
sql/sql_class.h:
Cleanup typos
sql/sql_insert.cc:
Cleanup typos
sql/sql_lex.cc:
Cleanup typos
sql/sql_list.h:
Cleanup typos
sql/sql_load.cc:
Cleanup typos
sql/sql_parse.cc:
Cleanup typos
sql/sql_rename.cc:
Cleanup typos
sql/sql_select.cc:
Cleanup typos
sql/sql_string.cc:
Cleanup typos
sql/sql_yacc.yy:
Fix bug in last changeset
sql/structs.h:
Cleanup typos
sql/table.cc:
Cleanup typos
sql/time.cc:
Cleanup typos
sql/unireg.h:
Cleanup typos
Diffstat (limited to 'myisam')
-rw-r--r-- | myisam/ft_eval.c | 2 | ||||
-rw-r--r-- | myisam/ft_test1.c | 2 | ||||
-rw-r--r-- | myisam/mi_create.c | 8 | ||||
-rw-r--r-- | myisam/mi_dynrec.c | 26 | ||||
-rw-r--r-- | myisam/mi_packrec.c | 6 | ||||
-rw-r--r-- | myisam/mi_test1.c | 2 | ||||
-rw-r--r-- | myisam/mi_test2.c | 10 | ||||
-rw-r--r-- | myisam/myisampack.c | 30 |
8 files changed, 43 insertions, 43 deletions
diff --git a/myisam/ft_eval.c b/myisam/ft_eval.c index 1f4b0cb4563..c498725daab 100644 --- a/myisam/ft_eval.c +++ b/myisam/ft_eval.c @@ -32,7 +32,7 @@ int main(int argc,char *argv[]) bzero((char*)recinfo,sizeof(recinfo)); /* First define 2 columns */ - recinfo[0].type=FIELD_SKIPP_ENDSPACE; + recinfo[0].type=FIELD_SKIP_ENDSPACE; recinfo[0].length=docid_length; recinfo[1].type=FIELD_BLOB; recinfo[1].length= 4+mi_portable_sizeof_char_ptr; diff --git a/myisam/ft_test1.c b/myisam/ft_test1.c index 61d9a50e9c3..e1a47ff87c3 100644 --- a/myisam/ft_test1.c +++ b/myisam/ft_test1.c @@ -20,7 +20,7 @@ #include "ft_test1.h" #include <getopt.h> -static int key_field=FIELD_VARCHAR,extra_field=FIELD_SKIPP_ENDSPACE; +static int key_field=FIELD_VARCHAR,extra_field=FIELD_SKIP_ENDSPACE; static uint key_length=200,extra_length=50; static int key_type=HA_KEYTYPE_TEXT; static int verbose=0,silent=0,skip_update=0, diff --git a/myisam/mi_create.c b/myisam/mi_create.c index aad0300c978..3395566e9df 100644 --- a/myisam/mi_create.c +++ b/myisam/mi_create.c @@ -119,8 +119,8 @@ int mi_create(const char *name,uint keys,MI_KEYDEF *keydefs, pack_reclength+=(1 << ((rec->length-mi_portable_sizeof_char_ptr)*8)); /* Max blob length */ } } - else if (type == FIELD_SKIPP_PRESPACE || - type == FIELD_SKIPP_ENDSPACE) + else if (type == FIELD_SKIP_PRESPACE || + type == FIELD_SKIP_ENDSPACE) { if (pack_reclength != INT_MAX32) pack_reclength+= rec->length > 255 ? 2 : 1; @@ -138,7 +138,7 @@ int mi_create(const char *name,uint keys,MI_KEYDEF *keydefs, pack_reclength+=2; } } - else if (type != FIELD_SKIPP_ZERO) + else if (type != FIELD_SKIP_ZERO) { min_pack_length+=rec->length; packed--; /* Not a pack record type */ @@ -152,7 +152,7 @@ int mi_create(const char *name,uint keys,MI_KEYDEF *keydefs, while (rec != recinfo) { rec--; - if (rec->type == (int) FIELD_SKIPP_ZERO && rec->length == 1) + if (rec->type == (int) FIELD_SKIP_ZERO && rec->length == 1) { rec->type=(int) FIELD_NORMAL; packed--; diff --git a/myisam/mi_dynrec.c b/myisam/mi_dynrec.c index 4facda91626..f55d646851d 100644 --- a/myisam/mi_dynrec.c +++ b/myisam/mi_dynrec.c @@ -642,7 +642,7 @@ uint _mi_rec_pack(MI_INFO *info, register byte *to, register const byte *from) } blob++; } - else if (type == FIELD_SKIPP_ZERO) + else if (type == FIELD_SKIP_ZERO) { if (memcmp((byte*) from,zero_string,length) == 0) flag|=bit; @@ -651,11 +651,11 @@ uint _mi_rec_pack(MI_INFO *info, register byte *to, register const byte *from) memcpy((byte*) to,from,(size_t) length); to+=length; } } - else if (type == FIELD_SKIPP_ENDSPACE || - type == FIELD_SKIPP_PRESPACE) + else if (type == FIELD_SKIP_ENDSPACE || + type == FIELD_SKIP_PRESPACE) { pos= (byte*) from; end= (byte*) from + length; - if (type == FIELD_SKIPP_ENDSPACE) + if (type == FIELD_SKIP_ENDSPACE) { /* Pack trailing spaces */ while (end > from && *(end-1) == ' ') end--; @@ -750,7 +750,7 @@ my_bool _mi_rec_check(MI_INFO *info,const char *record) if (blob_length) to+=length - mi_portable_sizeof_char_ptr+ blob_length; } - else if (type == FIELD_SKIPP_ZERO) + else if (type == FIELD_SKIP_ZERO) { if (memcmp((byte*) record,zero_string,length) == 0) { @@ -760,11 +760,11 @@ my_bool _mi_rec_check(MI_INFO *info,const char *record) else to+=length; } - else if (type == FIELD_SKIPP_ENDSPACE || - type == FIELD_SKIPP_PRESPACE) + else if (type == FIELD_SKIP_ENDSPACE || + type == FIELD_SKIP_PRESPACE) { pos= (byte*) record; end= (byte*) record + length; - if (type == FIELD_SKIPP_ENDSPACE) + if (type == FIELD_SKIP_ENDSPACE) { /* Pack trailing spaces */ while (end > record && *(end-1) == ' ') end--; @@ -876,10 +876,10 @@ ulong _mi_rec_unpack(register MI_INFO *info, register byte *to, byte *from, } if (flag & bit) { - if (type == FIELD_BLOB || type == FIELD_SKIPP_ZERO) + if (type == FIELD_BLOB || type == FIELD_SKIP_ZERO) bzero((byte*) to,rec_length); - else if (type == FIELD_SKIPP_ENDSPACE || - type == FIELD_SKIPP_PRESPACE) + else if (type == FIELD_SKIP_ENDSPACE || + type == FIELD_SKIP_PRESPACE) { if (rec->length > 255 && *from & 128) { @@ -897,7 +897,7 @@ ulong _mi_rec_unpack(register MI_INFO *info, register byte *to, byte *from, if (length >= rec_length || min_pack_length + length > (uint) (from_end - from)) goto err; - if (type == FIELD_SKIPP_ENDSPACE) + if (type == FIELD_SKIP_ENDSPACE) { memcpy(to,(byte*) from,(size_t) length); bfill((byte*) to+length,rec_length-length,' '); @@ -924,7 +924,7 @@ ulong _mi_rec_unpack(register MI_INFO *info, register byte *to, byte *from, } else { - if (type == FIELD_SKIPP_ENDSPACE || type == FIELD_SKIPP_PRESPACE) + if (type == FIELD_SKIP_ENDSPACE || type == FIELD_SKIP_PRESPACE) min_pack_length--; if (min_pack_length + rec_length > (uint) (from_end - from)) goto err; diff --git a/myisam/mi_packrec.c b/myisam/mi_packrec.c index 68d546b2010..31be2113c20 100644 --- a/myisam/mi_packrec.c +++ b/myisam/mi_packrec.c @@ -465,7 +465,7 @@ static void (*get_unpack_function(MI_COLUMNDEF *rec)) (MI_COLUMNDEF *, MI_BIT_BUFF *, uchar *, uchar *) { switch (rec->base_type) { - case FIELD_SKIPP_ZERO: + case FIELD_SKIP_ZERO: if (rec->pack_type & PACK_TYPE_ZERO_FILL) return &uf_zerofill_skipp_zero; return &uf_skipp_zero; @@ -475,7 +475,7 @@ static void (*get_unpack_function(MI_COLUMNDEF *rec)) if (rec->pack_type & PACK_TYPE_ZERO_FILL) return &uf_zerofill_normal; return &decode_bytes; - case FIELD_SKIPP_ENDSPACE: + case FIELD_SKIP_ENDSPACE: if (rec->pack_type & PACK_TYPE_SPACE_FIELDS) { if (rec->pack_type & PACK_TYPE_SELECTED) @@ -485,7 +485,7 @@ static void (*get_unpack_function(MI_COLUMNDEF *rec)) if (rec->pack_type & PACK_TYPE_SELECTED) return &uf_endspace_selected; return &uf_endspace; - case FIELD_SKIPP_PRESPACE: + case FIELD_SKIP_PRESPACE: if (rec->pack_type & PACK_TYPE_SPACE_FIELDS) { if (rec->pack_type & PACK_TYPE_SELECTED) diff --git a/myisam/mi_test1.c b/myisam/mi_test1.c index ae09bd4142e..4db48ccab89 100644 --- a/myisam/mi_test1.c +++ b/myisam/mi_test1.c @@ -23,7 +23,7 @@ #define MAX_REC_LENGTH 1024 static int rec_pointer_size=0,verbose=0,flags[50]; -static int key_field=FIELD_SKIPP_PRESPACE,extra_field=FIELD_SKIPP_ENDSPACE; +static int key_field=FIELD_SKIP_PRESPACE,extra_field=FIELD_SKIP_ENDSPACE; static int key_type=HA_KEYTYPE_NUM; static int create_flag=0; diff --git a/myisam/mi_test2.c b/myisam/mi_test2.c index cb60aeb8618..d03ed16d4b8 100644 --- a/myisam/mi_test2.c +++ b/myisam/mi_test2.c @@ -148,15 +148,15 @@ int main(int argc, char *argv[]) keyinfo[5].keysegs=1; keyinfo[5].flag = pack_type; - recinfo[0].type=pack_fields ? FIELD_SKIPP_PRESPACE : 0; + recinfo[0].type=pack_fields ? FIELD_SKIP_PRESPACE : 0; recinfo[0].length=7; recinfo[0].null_bit=0; recinfo[0].null_pos=0; - recinfo[1].type=pack_fields ? FIELD_SKIPP_PRESPACE : 0; + recinfo[1].type=pack_fields ? FIELD_SKIP_PRESPACE : 0; recinfo[1].length=5; recinfo[1].null_bit=0; recinfo[1].null_pos=0; - recinfo[2].type=pack_fields ? FIELD_SKIPP_PRESPACE : 0; + recinfo[2].type=pack_fields ? FIELD_SKIP_PRESPACE : 0; recinfo[2].length=9; recinfo[2].null_bit=0; recinfo[2].null_pos=0; @@ -164,11 +164,11 @@ int main(int argc, char *argv[]) recinfo[3].length=STANDARD_LENGTH-7-5-9-4; recinfo[3].null_bit=0; recinfo[3].null_pos=0; - recinfo[4].type=pack_fields ? FIELD_SKIPP_ZERO : 0; + recinfo[4].type=pack_fields ? FIELD_SKIP_ZERO : 0; recinfo[4].length=4; recinfo[4].null_bit=0; recinfo[4].null_pos=0; - recinfo[5].type=pack_fields ? FIELD_SKIPP_ENDSPACE : 0; + recinfo[5].type=pack_fields ? FIELD_SKIP_ENDSPACE : 0; recinfo[5].length=60; recinfo[5].null_bit=0; recinfo[5].null_pos=0; diff --git a/myisam/myisampack.c b/myisam/myisampack.c index 85e55df167a..f6c886f6596 100644 --- a/myisam/myisampack.c +++ b/myisam/myisampack.c @@ -672,7 +672,7 @@ static HUFF_COUNTS *init_huff_count(MI_INFO *info,my_off_t records) type = FIELD_NORMAL; if (count[i].field_length <= 8 && (type == FIELD_NORMAL || - type == FIELD_SKIPP_ZERO)) + type == FIELD_SKIP_ZERO)) count[i].max_zero_fill= count[i].field_length; init_tree(&count[i].int_tree,0,0,-1,(qsort_cmp2) compare_tree,0,NULL,NULL); if (records && type != FIELD_BLOB && type != FIELD_VARCHAR) @@ -796,7 +796,7 @@ static int get_statistic(PACK_MRG_INFO *mrg,HUFF_COUNTS *huff_counts) /* Save character counters and space-counts and zero-field-counts */ if (count->field_type == FIELD_NORMAL || - count->field_type == FIELD_SKIPP_ENDSPACE) + count->field_type == FIELD_SKIP_ENDSPACE) { for ( ; end_pos > pos ; end_pos--) if (end_pos[-1] != ' ') @@ -815,7 +815,7 @@ static int get_statistic(PACK_MRG_INFO *mrg,HUFF_COUNTS *huff_counts) count->max_end_space = length; } if (count->field_type == FIELD_NORMAL || - count->field_type == FIELD_SKIPP_PRESPACE) + count->field_type == FIELD_SKIP_PRESPACE) { for (pos=start_pos; pos < end_pos ; pos++) if (pos[0] != ' ') @@ -851,7 +851,7 @@ static int get_statistic(PACK_MRG_INFO *mrg,HUFF_COUNTS *huff_counts) } if (count->field_length <= 8 && (count->field_type == FIELD_NORMAL || - count->field_type == FIELD_SKIPP_ZERO)) + count->field_type == FIELD_SKIP_ZERO)) { uint i; if (!memcmp((byte*) start_pos,zero_string,count->field_length)) @@ -956,7 +956,7 @@ static void check_counts(HUFF_COUNTS *huff_counts, uint trees, new_length=calc_packed_length(huff_counts,0); if (old_length < new_length && huff_counts->field_length > 1) { - huff_counts->field_type=FIELD_SKIPP_ZERO; + huff_counts->field_type=FIELD_SKIP_ZERO; huff_counts->counts[0]-=length; huff_counts->bytes_packed=old_length- records/8; goto found_pack; @@ -1000,7 +1000,7 @@ static void check_counts(HUFF_COUNTS *huff_counts, uint trees, huff_counts->counts[' ']+=huff_counts->tot_pre_space; if (test_space_compress(huff_counts,records,huff_counts->max_end_space, huff_counts->end_space, - huff_counts->tot_end_space,FIELD_SKIPP_ENDSPACE)) + huff_counts->tot_end_space,FIELD_SKIP_ENDSPACE)) goto found_pack; huff_counts->counts[' ']-=huff_counts->tot_pre_space; } @@ -1008,7 +1008,7 @@ static void check_counts(HUFF_COUNTS *huff_counts, uint trees, { if (test_space_compress(huff_counts,records,huff_counts->max_pre_space, huff_counts->pre_space, - huff_counts->tot_pre_space,FIELD_SKIPP_PRESPACE)) + huff_counts->tot_pre_space,FIELD_SKIP_PRESPACE)) goto found_pack; } @@ -1018,10 +1018,10 @@ static void check_counts(HUFF_COUNTS *huff_counts, uint trees, if (huff_counts->max_zero_fill && (huff_counts->field_type == FIELD_NORMAL || - huff_counts->field_type == FIELD_SKIPP_ZERO)) + huff_counts->field_type == FIELD_SKIP_ZERO)) { huff_counts->counts[0]-=huff_counts->max_zero_fill* - (huff_counts->field_type == FIELD_SKIPP_ZERO ? + (huff_counts->field_type == FIELD_SKIP_ZERO ? records - huff_counts->zero_fields : records); huff_counts->pack_type|=PACK_TYPE_ZERO_FILL; huff_counts->bytes_packed=calc_packed_length(huff_counts,0); @@ -1061,9 +1061,9 @@ static void check_counts(HUFF_COUNTS *huff_counts, uint trees, if (verbose) printf("\nnormal: %3d empty-space: %3d empty-zero: %3d empty-fill: %3d\npre-space: %3d end-space: %3d intervall-fields: %3d zero: %3d\n", field_count[FIELD_NORMAL],space_fields, - field_count[FIELD_SKIPP_ZERO],fill_zero_fields, - field_count[FIELD_SKIPP_PRESPACE], - field_count[FIELD_SKIPP_ENDSPACE], + field_count[FIELD_SKIP_ZERO],fill_zero_fields, + field_count[FIELD_SKIP_PRESPACE], + field_count[FIELD_SKIP_ENDSPACE], field_count[FIELD_INTERVALL], field_count[FIELD_ZERO]); DBUG_VOID_RETURN; @@ -1729,7 +1729,7 @@ static int compress_isam_file(PACK_MRG_INFO *mrg, HUFF_COUNTS *huff_counts) field_length-=count->max_zero_fill; switch(count->field_type) { - case FIELD_SKIPP_ZERO: + case FIELD_SKIP_ZERO: if (!memcmp((byte*) start_pos,zero_string,field_length)) { write_bits(1,1); @@ -1743,7 +1743,7 @@ static int compress_isam_file(PACK_MRG_INFO *mrg, HUFF_COUNTS *huff_counts) write_bits(tree->code[(uchar) *start_pos], (uint) tree->code_len[(uchar) *start_pos]); break; - case FIELD_SKIPP_ENDSPACE: + case FIELD_SKIP_ENDSPACE: for (pos=end_pos ; pos > start_pos && pos[-1] == ' ' ; pos--) ; length=(uint) (end_pos-pos); if (count->pack_type & PACK_TYPE_SELECTED) @@ -1766,7 +1766,7 @@ static int compress_isam_file(PACK_MRG_INFO *mrg, HUFF_COUNTS *huff_counts) (uint) tree->code_len[(uchar) *start_pos]); start_pos=end_pos; break; - case FIELD_SKIPP_PRESPACE: + case FIELD_SKIP_PRESPACE: for (pos=start_pos ; pos < end_pos && pos[0] == ' ' ; pos++) ; length=(uint) (pos-start_pos); if (count->pack_type & PACK_TYPE_SELECTED) |