Hi, just found a few typos.
-- https://www.juef.tk/
Index: src/allrepo.c
==================================================================
--- src/allrepo.c
+++ src/allrepo.c
@@ -138,11 +138,11 @@
**
** In addition, the following maintenance operations are supported:
**
** add Add all the repositories named to the set of repositories
** tracked by Fossil. Normally Fossil is able to keep up with
-** this list by itself, but sometime it can benefit from this
+** this list by itself, but sometimes it can benefit from this
** hint if you rename repositories.
**
** ignore Arguments are repositories that should be ignored by
** subsequent clean, extras, list, pull, push, rebuild, and
** sync operations. The -c|--ckout option causes the listed
Index: src/bundle.c
==================================================================
--- src/bundle.c
+++ src/bundle.c
@@ -26,11 +26,11 @@
**
** The bblob.delta field can be an integer, a text string, or NULL.
** If an integer, then the corresponding blobid is the delta basis.
** If a text string, then that string is a SHA1 hash for the delta
** basis, which is presumably in the master repository. If NULL, then
-** data contains contain without delta compression.
+** data contain without delta compression.
*/
static const char zBundleInit[] =
@ CREATE TABLE IF NOT EXISTS "%w".bconfig(
@ bcname TEXT,
@ bcvalue ANY
@@ -370,11 +370,11 @@
" WHERE fnid=(SELECT fnid FROM mlink WHERE fid=%d)"
" AND fid<%d", rid, mnToBundle);
}
}
- /* Try to insert the insert the artifact as a delta
+ /* Try to insert the artifact as a delta
*/
if( deltaFrom ){
Blob basis, delta;
content_get(deltaFrom, &basis);
blob_delta_create(&basis, &content, &delta);
Index: src/clone.c
==================================================================
--- src/clone.c
+++ src/clone.c
@@ -224,11 +224,11 @@
}
/*
** If user chooses to use HTTP Authentication over unencrypted HTTP,
** remember decision. Otherwise, if the URL is being changed and no
-** preference has been indicated, err on the safe side and revert the
+** preference has been indicated, error on the safe side and revert the
** decision. Set the global preference if the URL is not being changed.
*/
void remember_or_get_http_auth(
const char *zHttpAuth, /* Credentials in the form "user:password" */
int fRemember, /* True to remember credentials for later reuse */
Index: src/fusefs.c
==================================================================
--- src/fusefs.c
+++ src/fusefs.c
@@ -51,11 +51,11 @@
/* Parsed path */
char *az[3]; /* 0=type, 1=id, 2=path */
} fusefs;
/*
-** Clear the fusefs.sz[] array.
+** Clear the fusefs.az[] array.
*/
static void fusefs_clear_path(void){
int i;
for(i=0; i<count(fusefs.az); i++){
fossil_free(fusefs.az[i]);
Index: src/markdown.c
==================================================================
--- src/markdown.c
+++ src/markdown.c
@@ -35,12 +35,12 @@
#if INTERFACE
/* mkd_autolink -- type of autolink */
enum mkd_autolink {
MKDA_NOT_AUTOLINK, /* used internally when it is not an autolink*/
- MKDA_NORMAL, /* normal http/http/ftp/etc link */
- MKDA_EXPLICIT_EMAIL, /* e-mail link with explit mailto: */
+ MKDA_NORMAL, /* normal http/https/ftp link */
+ MKDA_EXPLICIT_EMAIL, /* e-mail link with explicit mailto: */
MKDA_IMPLICIT_EMAIL /* e-mail link without mailto: */
};
/* mkd_renderer -- functions for rendering parsed data */
struct mkd_renderer {
@@ -348,11 +348,11 @@
if( i>=size || data[i]!='>' || nb!=1 ) return 0;
return i+1;
}
-/* tag_length -- returns the length of the given tag, or 0 is it's not valid */
+/* tag_length -- returns the length of the given tag, or 0 if it's not valid */
static size_t tag_length(char *data, size_t size, enum mkd_autolink *autolink){
size_t i, j;
/* a valid tag can't be shorter than 3 chars */
if( size<3 ) return 0;
@@ -403,11 +403,11 @@
}else if( (j = is_mail_autolink(data+i, size-i))!=0 ){
*autolink = (i==8) ? MKDA_EXPLICIT_EMAIL : MKDA_IMPLICIT_EMAIL;
return i+j;
}
- /* looking for sometinhg looking like a tag end */
+ /* looking for something like a tag end */
while( i<size && data[i]!='>' ){ i++; }
if( i>=size ) return 0;
return i+1;
}
@@ -520,11 +520,11 @@
}
return 0;
}
-/* parse_emph1 -- parsing single emphase */
+/* parse_emph1 -- parsing single emphasis */
/* closed by a symbol not preceded by whitespace and not followed by symbol */
static size_t parse_emph1(
struct Blob *ob,
struct render *rndr,
char *data,
@@ -565,11 +565,11 @@
}
return 0;
}
-/* parse_emph2 -- parsing single emphase */
+/* parse_emph2 -- parsing single emphasis */
static size_t parse_emph2(
struct Blob *ob,
struct render *rndr,
char *data,
size_t size,
@@ -604,11 +604,11 @@
}
return 0;
}
-/* parse_emph3 -- parsing single emphase */
+/* parse_emph3 -- parsing single emphasis */
/* finds the first closing tag, and delegates to the other emph */
static size_t parse_emph3(
struct Blob *ob,
struct render *rndr,
char *data,
@@ -777,11 +777,11 @@
return 2;
}
/* char_entity -- '&' escaped when it doesn't belong to an entity */
-/* valid entities are assumed to be anything mathing &#?[A-Za-z0-9]+; */
+/* valid entities are assumed to be anything matching &#?[A-Za-z0-9]+; */
static size_t char_entity(
struct Blob *ob,
struct render *rndr,
char *data,
size_t offset,
@@ -1022,11 +1022,11 @@
if( i+1==id_end ){
/* implicit id - use the contents */
id_data = data+1;
id_size = txt_e-1;
}else{
- /* explici id - between brackets */
+ /* explicit id - between brackets */
id_data = data+i+1;
id_size = id_end-(i+1);
}
if( get_link_ref(rndr, link, title, id_data, id_size)<0 ){
@@ -1138,11 +1138,11 @@
return 0;
}
-/* is_table_sep -- returns wether there is a table separator at the given pos
*/
+/* is_table_sep -- returns whether there is a table separator at the given pos
*/
static int is_table_sep(char *data, size_t pos){
return data[pos]=='|' && (pos==0 || data[pos-1]!='\\');
}
@@ -1187,11 +1187,11 @@
return 0;
}
}
-/* prefix_code -- returns prefix length for block code*/
+/* prefix_code -- returns prefix length for block code */
static size_t prefix_code(char *data, size_t size){
if( size>0 && data[0]=='\t' ) return 1;
if( size>3 && data[0]==' ' && data[1]==' ' && data[2]==' ' && data[3]==' ' ){
return 4;
}
@@ -1244,11 +1244,11 @@
struct render *rndr,
char *data,
size_t size);
-/* parse_blockquote -- hanldes parsing of a blockquote fragment */
+/* parse_blockquote -- handles parsing of a blockquote fragment */
static size_t parse_blockquote(
struct Blob *ob,
struct render *rndr,
char *data,
size_t size
@@ -1294,11 +1294,11 @@
release_work_buffer(rndr, out);
return end;
}
-/* parse_blockquote -- hanldes parsing of a regular paragraph */
+/* parse_paragraph -- handles parsing of a regular paragraph */
static size_t parse_paragraph(
struct Blob *ob,
struct render *rndr,
char *data,
size_t size
@@ -1377,11 +1377,11 @@
}
return end;
}
-/* parse_blockquote -- hanldes parsing of a block-level code fragment */
+/* parse_blockcode -- handles parsing of a block-level code fragment */
static size_t parse_blockcode(
struct Blob *ob,
struct render *rndr,
char *data,
size_t size
@@ -1813,11 +1813,11 @@
size_t i = 0, col = 0;
size_t beg, end, total = 0;
struct Blob *cells = new_work_buffer(rndr);
int align;
- /* skip leading blanks and sperator */
+ /* skip leading blanks and separator */
while( i<size && (data[i]==' ' || data[i]=='\t') ){ i++; }
if( i<size && data[i]=='|' ) i++;
/* go over all the cells */
while( i<size && total==0 ){
@@ -2030,11 +2030,11 @@
static int is_ref(
char *data, /* input text */
size_t beg, /* offset of the beginning of the line */
size_t end, /* offset of the end of the text */
size_t *last, /* last character of the link */
- struct Blob *refs /* arry of link references */
+ struct Blob *refs /* array of link references */
){
size_t i = 0;
size_t id_offset, id_end;
size_t link_offset, link_end;
size_t title_offset, title_end;
signature.asc
Description: PGP signature
_______________________________________________ fossil-users mailing list [email protected] http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

