Skip to content

Commit 2f0ca1c

Browse files
author
paul@kite-hub.kitebird.com
committed
Fix skipp -> skip once and for all.
(Note: This affects only comments, not variable names.)
1 parent deaa73f commit 2f0ca1c

28 files changed

+42
-42
lines changed

extra/perror.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ int main(int argc,char *argv[])
197197
for (code=1 ; code < sys_nerr ; code++)
198198
{
199199
if (sys_errlist[code][0])
200-
{ /* Skipp if no error-text */
200+
{ /* Skip if no error-text */
201201
printf("%3d = %s\n",code,sys_errlist[code]);
202202
}
203203
}

heap/hp_hash.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ ulong hp_hashnr(register HP_KEYDEF *keydef, register const byte *key)
236236
key+=seg->length;
237237
if (seg->null_bit)
238238
{
239-
key++; /* Skipp null byte */
239+
key++; /* Skip null byte */
240240
if (*pos) /* Found null */
241241
{
242242
nr^= (nr << 1) | 1;

isam/_dynrec.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ uint _nisam_rec_pack(N_INFO *info, register byte *to, register const byte *from)
430430
to+=length+blob->length;
431431
}
432432
blob++;
433-
from+=sizeof(char*); /* Skipp blob-pointer */
433+
from+=sizeof(char*); /* Skip blob-pointer */
434434
}
435435
else if (type == FIELD_SKIP_ZERO)
436436
{
@@ -633,7 +633,7 @@ uint _nisam_rec_unpack(register N_INFO *info, register byte *to, byte *from,
633633
if ((type = (enum en_fieldtype) rec->base.type) != FIELD_NORMAL)
634634
{
635635
if (type == FIELD_ZERO)
636-
continue; /* Skipp this */
636+
continue; /* Skip this */
637637
if (flag & bit)
638638
{
639639
if (type == FIELD_BLOB)
@@ -747,7 +747,7 @@ uint _calc_blob_length(uint length, const byte *pos)
747747
return (uint) (unsigned short) j;
748748
}
749749
#ifdef MSDOS
750-
break; /* skipp microsoft warning */
750+
break; /* skip microsoft warning */
751751
#endif
752752
case 3:
753753
return uint3korr(pos);

isam/isamchk.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ static int chk_size(register N_INFO *info)
858858
#endif
859859
if (skr != size)
860860
{
861-
info->s->state.data_file_length=(ulong) size; /* Skipp other errors */
861+
info->s->state.data_file_length=(ulong) size; /* Skip other errors */
862862
if (skr > size && skr != size + MEMMAP_EXTRA_MARGIN)
863863
{
864864
error=1;
@@ -2672,7 +2672,7 @@ static int sort_get_next_record()
26722672
goto try_next;
26732673
block_info.second_read=0;
26742674
searching=1;
2675-
for (i=1 ; i < 11 ; i++) /* Skipp from read string */
2675+
for (i=1 ; i < 11 ; i++) /* Skip from read string */
26762676
if (block_info.header[i] >= 1 && block_info.header[i] <= 16)
26772677
break;
26782678
pos+=(ulong) i;

isam/isamlog.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ static void get_options(register int *argc, register char ***argv)
144144
switch((option=*pos)) {
145145
case '#':
146146
DBUG_PUSH (++pos);
147-
pos=" "; /* Skipp rest of arg */
147+
pos=" "; /* Skip rest of arg */
148148
break;
149149
case 'c':
150150
if (! *++pos)

isam/pack_isam.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#include <io.h>
2929
#endif
3030
#ifndef __GNU_LIBRARY__
31-
#define __GNU_LIBRARY__ /* Skipp warnings in getopt.h */
31+
#define __GNU_LIBRARY__ /* Skip warnings in getopt.h */
3232
#endif
3333
#include <my_getopt.h>
3434

isam/test1.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ int main(int argc, char *argv[])
136136
err:
137137
printf("got error: %3d when using nisam-database\n",my_errno);
138138
exit(1);
139-
return 0; /* skipp warning */
139+
return 0; /* skip warning */
140140
} /* main */
141141

142142

merge/mrg_open.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ int handle_locking)
6262
{
6363
if ((end=buff+length)[-1] == '\n')
6464
end[-1]='\0';
65-
if (buff[0] && buff[0] != '#') /* Skipp empty lines and comments */
65+
if (buff[0] && buff[0] != '#') /* Skip empty lines and comments */
6666
{
6767
last_isam=isam;
6868
if (!test_if_hard_path(buff))

myisam/mi_check.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ int chk_size(MI_CHECK *param, register MI_INFO *info)
307307
#endif
308308
if (skr != size)
309309
{
310-
info->state->data_file_length=size; /* Skipp other errors */
310+
info->state->data_file_length=size; /* Skip other errors */
311311
if (skr > size && skr != size + MEMMAP_EXTRA_MARGIN)
312312
{
313313
error=1;
@@ -3672,7 +3672,7 @@ int recreate_table(MI_CHECK *param, MI_INFO **org_info, char *filename)
36723672
if (param->language)
36733673
keyseg->language=param->language; /* change language */
36743674
}
3675-
keyseg++; /* Skipp end pointer */
3675+
keyseg++; /* Skip end pointer */
36763676
}
36773677

36783678
/* Copy the unique definitions and change them to point at the new key

myisam/mi_delete.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ static uint remove_key(MI_KEYDEF *keyinfo, uint nod_flag,
816816
if (!(*start & 128))
817817
prev_length=0; /* prev key not packed */
818818
if (keyinfo->seg[0].flag & HA_NULL_PART)
819-
lastkey++; /* Skipp null marker */
819+
lastkey++; /* Skip null marker */
820820
get_key_length(lastkey_length,lastkey);
821821
if (!next_length) /* Same key after */
822822
{

myisam/mi_key.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ uint _mi_pack_key(register MI_INFO *info, uint keynr, uchar *key, uchar *old,
221221
k_length-= 2+length;
222222
set_if_smaller(length,tmp_length); /* Safety */
223223
store_key_length_inc(key,length);
224-
old+=2; /* Skipp length */
224+
old+=2; /* Skip length */
225225
memcpy((byte*) key, pos+2,(size_t) length);
226226
key+= length;
227227
continue;

myisam/mi_search.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ uint _mi_get_pack_key(register MI_KEYDEF *keyinfo, uint nod_flag,
761761
}
762762
if (keyseg->flag & HA_NULL_PART)
763763
{
764-
key++; /* Skipp null marker*/
764+
key++; /* Skip null marker*/
765765
start++;
766766
}
767767

@@ -1395,7 +1395,7 @@ _mi_calc_var_pack_key_length(MI_KEYDEF *keyinfo,uint nod_flag,uchar *next_key,
13951395
if (prev_key && !*prev_key++)
13961396
org_key=prev_key=0; /* Can't pack against prev */
13971397
else if (org_key)
1398-
org_key++; /* Skipp NULL */
1398+
org_key++; /* Skip NULL */
13991399
}
14001400
else
14011401
s_temp->store_not_null=0;

myisam/myisamlog.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ static void get_options(register int *argc, register char ***argv)
145145
switch((option=*pos)) {
146146
case '#':
147147
DBUG_PUSH (++pos);
148-
pos=" "; /* Skipp rest of arg */
148+
pos=" "; /* Skip rest of arg */
149149
break;
150150
case 'c':
151151
if (! *++pos)

mysys/ChangeLog

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Tue Mar 26 15:09:45 1991 Mikael WIDENIUS (monty at panther)
9191

9292
Sat Mar 23 10:49:49 1991 Michael Widenius (monty at LYNX)
9393

94-
* Added init of alarm variables to skipp some warnings from gcc.
94+
* Added init of alarm variables to skip some warnings from gcc.
9595

9696
Tue Mar 5 16:50:34 1991 Michael Widenius (monty at LYNX)
9797

@@ -124,7 +124,7 @@ Mon Aug 27 22:20:38 1990 Michael Widenius (monty at lynx)
124124
Sun Apr 1 23:29:47 1990 Monty (monty at monty)
125125

126126
* Changed mf_keydisk.c to have separate functions for read and write.
127-
Read can now return pointer to intern key-buffer to skipp
127+
Read can now return pointer to intern key-buffer to skip
128128
unessessary memcpy-s.
129129

130130
Fri Mar 23 23:03:39 1990 Monty (monty at monty)

mysys/default.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ int load_defaults(const char *conf_file, const char **groups,
222222
/* copy name + found arguments + command line arguments to new array */
223223
res[0]= argv[0][0]; /* Name MUST be set, even by embedded library */
224224
memcpy((gptr) (res+1), args.buffer, args.elements*sizeof(char*));
225-
/* Skipp --defaults-file and --defaults-extra-file */
225+
/* Skip --defaults-file and --defaults-extra-file */
226226
(*argc)-= args_used;
227227
(*argv)+= args_used;
228228

mysys/mf_iocache.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ int _my_b_async_read(register IO_CACHE *info, byte *Buffer, uint Count)
800800
{ /* Fix if skipped bytes */
801801
if (info->aio_read_pos + read_length < info->pos_in_file)
802802
{
803-
read_length=0; /* Skipp block */
803+
read_length=0; /* Skip block */
804804
next_pos_in_file=info->pos_in_file;
805805
}
806806
else
@@ -894,7 +894,7 @@ int _my_b_async_read(register IO_CACHE *info, byte *Buffer, uint Count)
894894
if (aioread(info->file,read_buffer,(int) max_length,
895895
(my_off_t) next_pos_in_file,MY_SEEK_SET,
896896
&info->aio_result.result))
897-
{ /* Skipp async io */
897+
{ /* Skip async io */
898898
my_errno=errno;
899899
DBUG_PRINT("error",("got error: %d, aio_result: %d from aioread, async skipped",
900900
errno, info->aio_result.result.aio_errno));

mysys/mf_iocache2.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ uint my_b_vprintf(IO_CACHE *info, const char* fmt, va_list args)
266266
fmt++;
267267
/* Found one '%' */
268268
}
269-
/* Skipp if max size is used (to be compatible with printf) */
269+
/* Skip if max size is used (to be compatible with printf) */
270270
while (my_isdigit(&my_charset_latin1, *fmt) || *fmt == '.' || *fmt == '-')
271271
fmt++;
272272
if (*fmt == 's') /* String parameter */

mysys/mf_pack.c

+6-6
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ void pack_dirname(my_string to, const char *from)
4343
(void) intern_filename(to,from); /* Change to intern name */
4444

4545
#ifdef FN_DEVCHAR
46-
if ((start=strrchr(to,FN_DEVCHAR)) != 0) /* Skipp device part */
46+
if ((start=strrchr(to,FN_DEVCHAR)) != 0) /* Skip device part */
4747
start++;
4848
else
4949
#endif
@@ -131,7 +131,7 @@ uint cleanup_dirname(register my_string to, const char *from)
131131
from_ptr=(my_string) from;
132132
#ifdef FN_DEVCHAR
133133
if ((pos=strrchr(from_ptr,FN_DEVCHAR)) != 0)
134-
{ /* Skipp device part */
134+
{ /* Skip device part */
135135
length=(uint) (pos-from_ptr)+1;
136136
start=strnmov(buff,from_ptr,length); from_ptr+=length;
137137
}
@@ -195,7 +195,7 @@ uint cleanup_dirname(register my_string to, const char *from)
195195
pos--; /* Remove dupplicate '/' */
196196
}
197197
else if (pos-start > 1 && pos[-1] == FN_CURLIB && pos[-2] == FN_LIBCHAR)
198-
pos-=2; /* Skipp /./ */
198+
pos-=2; /* Skip /./ */
199199
else if (pos > buff+1 && pos[-1] == FN_HOMELIB && pos[-2] == FN_LIBCHAR)
200200
{ /* Found ..../~/ */
201201
buff[0]=FN_HOMELIB;
@@ -409,7 +409,7 @@ uint system_filename(my_string to, const char *from)
409409
libchar_found=0;
410410
(void) strmov(buff,from); /* If to == from */
411411
from_pos= buff;
412-
if ((pos=strrchr(from_pos,FN_DEVCHAR))) /* Skipp device part */
412+
if ((pos=strrchr(from_pos,FN_DEVCHAR))) /* Skip device part */
413413
{
414414
pos++;
415415
to_pos=strnmov(to,from_pos,(size_s) (pos-from_pos));
@@ -419,7 +419,7 @@ uint system_filename(my_string to, const char *from)
419419
to_pos=to;
420420

421421
if (from_pos[0] == FN_CURLIB && from_pos[1] == FN_LIBCHAR)
422-
from_pos+=2; /* Skipp './' */
422+
from_pos+=2; /* Skip './' */
423423
if (strchr(from_pos,FN_LIBCHAR))
424424
{
425425
*(to_pos++) = FN_C_BEFORE_DIR;
@@ -487,7 +487,7 @@ my_string intern_filename(my_string to, const char *from)
487487

488488
convert_dirname(buff,from,NullS); /* change '<>' to '[]' */
489489
from_pos=buff;
490-
if ((pos=strrchr(from_pos,FN_DEVCHAR))) /* Skipp device part */
490+
if ((pos=strrchr(from_pos,FN_DEVCHAR))) /* Skip device part */
491491
{
492492
pos++;
493493
to_pos=strnmov(to,from_pos,(size_s) (pos-from_pos));

mysys/mf_soundex.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ void soundex(CHARSET_INFO * cs,register my_string out_pntr, my_string in_pntr,
5252

5353
if (remove_garbage)
5454
{
55-
while (*in_pntr && !my_isalpha(cs,*in_pntr)) /* Skipp pre-space */
55+
while (*in_pntr && !my_isalpha(cs,*in_pntr)) /* Skip pre-space */
5656
in_pntr++;
5757
}
5858
*out_pntr++ = map[(uchar)*in_pntr]; /* Copy first letter */
@@ -82,7 +82,7 @@ void soundex(CHARSET_INFO * cs,register my_string out_pntr, my_string in_pntr,
8282

8383
/*
8484
If alpha, map input letter to soundex code.
85-
If not alpha and remove_garbage is set then skipp to next char
85+
If not alpha and remove_garbage is set then skip to next char
8686
else return 0
8787
*/
8888

mysys/mf_wfile.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ WF_PACK *wf_comp(my_string str)
3939
WF_PACK *ret;
4040
DBUG_ENTER("wf_comp");
4141

42-
not_pos= -1; /* Skipp space and '!' in front */
42+
not_pos= -1; /* Skip space and '!' in front */
4343
while (*str == ' ')
4444
str++;
4545
if (*str == '!')

mysys/my_error.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ int my_error(int nr,myf MyFlags, ...)
6868
}
6969
else
7070
{
71-
/* Skipp if max size is used (to be compatible with printf) */
71+
/* Skip if max size is used (to be compatible with printf) */
7272
while (my_isdigit(&my_charset_latin1, *tpos) || *tpos == '.' || *tpos == '-')
7373
tpos++;
74-
if (*tpos == 'l') /* Skipp 'l' argument */
74+
if (*tpos == 'l') /* Skip 'l' argument */
7575
tpos++;
7676
if (*tpos == 's') /* String parameter */
7777
{

mysys/my_getwd.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ int my_setwd(const char *dir, myf MyFlags)
108108
{
109109
uint drive,drives;
110110

111-
pos++; /* Skipp FN_DEVCHAR */
111+
pos++; /* Skip FN_DEVCHAR */
112112
drive=(uint) (my_toupper(&my_charset_latin1,dir[0])-'A'+1);
113113
drives= (uint) -1;
114114
if ((pos-(byte*) dir) == 2 && drive > 0 && drive < 32)

scripts/mysql_find_rows.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ usage() if ($opt_help || $opt_Information);
1616
$query=$search=$database=$set=""; $eoq=0;
1717
while (<>)
1818
{
19-
next if (length($query) == 0 && /^\#/); # Skipp comments
19+
next if (length($query) == 0 && /^\#/); # Skip comments
2020
$query.=search($_);
2121
if ($eoq)
2222
{

sql/sql_yacc.yy

+1-1
Original file line numberDiff line numberDiff line change
@@ -4768,7 +4768,7 @@ simple_ident:
47684768

47694769
field_ident:
47704770
ident { $$=$1;}
4771-
| ident '.' ident { $$=$3;} /* Skipp schema name in create*/
4771+
| ident '.' ident { $$=$3;} /* Skip schema name in create*/
47724772
| '.' ident { $$=$2;} /* For Delphi */;
47734773

47744774
table_ident:

sql/time.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ bool str_to_time(const char *str,uint length,TIME *l_time)
745745
for (value=0; str != end && my_isdigit(&my_charset_latin1,*str) ; str++)
746746
value=value*10L + (long) (*str - '0');
747747

748-
/* Skipp all space after 'days' */
748+
/* Skip all space after 'days' */
749749
end_of_days= str;
750750
for (; str != end && my_isspace(&my_charset_latin1, str[0]) ; str++)
751751
;

strings/ctype-big5.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ static my_bool my_like_range_big5(CHARSET_INFO *cs __attribute__((unused)),
402402
}
403403
if (*ptr == escape && ptr+1 != end)
404404
{
405-
ptr++; /* Skipp escape */
405+
ptr++; /* Skip escape */
406406
*min_str++= *max_str++ = *ptr;
407407
continue;
408408
}

strings/ctype-gbk.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2715,7 +2715,7 @@ static my_bool my_like_range_gbk(CHARSET_INFO *cs __attribute__((unused)),
27152715
}
27162716
if (*ptr == escape && ptr+1 != end)
27172717
{
2718-
ptr++; /* Skipp escape */
2718+
ptr++; /* Skip escape */
27192719
*min_str++= *max_str++ = *ptr;
27202720
continue;
27212721
}

strings/ctype-tis620.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ my_bool my_like_range_tis620(CHARSET_INFO *cs __attribute__((unused)),
671671
{
672672
if (*ptr == escape && ptr+1 != end)
673673
{
674-
ptr++; /* Skipp escape */
674+
ptr++; /* Skip escape */
675675
*min_str++ = *max_str++ = *ptr;
676676
continue;
677677
}

0 commit comments

Comments
 (0)