From: klemens Date: Sun, 29 May 2016 12:39:05 +0000 (+0200) Subject: spelling-fixes ( code-comments in .c, .h. .y ... ) X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/942561da2455ee50a1eb82c8c4f2bdb5e25133d1?ds=sidebyside;hp=fa92642a21119eda8bfc961f8d5a8d3e9ee7d494 spelling-fixes ( code-comments in .c, .h. .y ... ) --- diff --git a/NEWS b/NEWS index 4d4248d9..3aa5c3af 100644 --- a/NEWS +++ b/NEWS @@ -52,7 +52,7 @@ The following are new features for the 1.6 release of nmh: message/rfc822 parts instead of messages formatted with RFC 934). - All proc entries (showproc, moreproc, etc) can now accept entries that contain spaces and shell metacharacters. If found, such entries will - either be space-splitted or processed by /bin/sh. + either be space-split or processed by /bin/sh. - A new program, fmttest(1) is included to help debug format files. See NOTABLE CHANGES below. - mhshow/mhstore now have support for RFC-2017 (access-type=url) for @@ -96,7 +96,7 @@ The following are new features for the 1.6 release of nmh: - mh-mime(7) now provides an introduction to nmh's MIME handling. - mhshow(1) will now by default display all text content under one pager, and display markers for non-text and non-inline content. The content - markers are changeable via mh-format(5). See NOTABLE CHANGES bellow. + markers are changeable via mh-format(5). See NOTABLE CHANGES below. ----------------- OBSOLETE FEATURES @@ -233,7 +233,7 @@ pagers for each part as was in the past. Non-displayed parts will be indicated using a marker string, which can be customized by a new mh-format(5) string. -All nmh utilites now understand RFC 2231-encoded MIME parameters and +All nmh utilities now understand RFC 2231-encoded MIME parameters and will automatically convert the encoded parameters into the native character set, when appropriate (again, assuming nmh was built with iconv support). diff --git a/etc/scan.curses b/etc/scan.curses index 53f6bb69..f2d5d137 100644 --- a/etc/scan.curses +++ b/etc/scan.curses @@ -1,6 +1,6 @@ %; scan.curses %; -%; This file shows how to use function escapes to enable hilighting +%; This file shows how to use function escapes to enable highlighting %; sequences for terminals that have the appropriate entries in their %; termcap/terminfo files. Also it goes into more detail on exactly %; what each line does. @@ -40,7 +40,7 @@ %<(mymbox{from})%<{to}To:%14(unquote(decode(friendly{to})))%>%>\ %<(zero)%17(unquote(decode(friendly{from})))%> \ %; -%; Print out the subject and any of th mesage body that will fit on the +%; Print out the subject and any of the message body that will fit on the %; rest of the line. After that, print the terminal reset code to reset %; all of the attributes to the next line. %; diff --git a/h/fmt_scan.h b/h/fmt_scan.h index 5f659d4c..dfd26420 100644 --- a/h/fmt_scan.h +++ b/h/fmt_scan.h @@ -6,7 +6,7 @@ /* * This structure describes an "interesting" component. It holds * the name & text from the component (if found) and one piece of - * auxilary info. The structure for a particular component is located + * auxiliary info. The structure for a particular component is located * by (open) hashing the name and using it as an index into the ptr array * "wantcomp". All format entries that reference a particular component * point to its comp struct (so we only have to do component specific @@ -129,7 +129,7 @@ void free_fs (); * format engine. * reset - If set to true, the format compiler will reset the * component hash table. The component hash table contains - * all of the references to message components refered to in + * all of the references to message components referred to in * the format instructions. If you have multiple format * strings that you want to compile and operate on the * same message, this should be set to false. @@ -243,7 +243,7 @@ int fmt_addcompentry(char *component); * component buffer is a newline, it will be separated * from previous text by ",\n\t"; otherwise if the last * character of the previous text is a newline it will - * simply be seperated by a "\t". This unusual processing + * simply be separated by a "\t". This unusual processing * is designed to handle the case where you have multiple * headers with the same name (e.g.: multiple "cc:" headers, * even though that isn't technically allowed in the RFCs). diff --git a/h/mh.h b/h/mh.h index 4b3818c0..59132103 100644 --- a/h/mh.h +++ b/h/mh.h @@ -160,7 +160,7 @@ extern struct swit anoyes[]; /* standard yes/no switches */ * general folder attributes */ #define READONLY (1<<0) /* No write access to folder */ -#define SEQMOD (1<<1) /* folder's sequences modifed */ +#define SEQMOD (1<<1) /* folder's sequences modified */ #define ALLOW_NEW (1<<2) /* allow the "new" sequence */ #define OTHERS (1<<3) /* folder has other files */ #define MODIFIED (1<<4) /* msh in-core folder modified */ diff --git a/h/mhparse.h b/h/mhparse.h index 5d7668fb..08dd77c1 100644 --- a/h/mhparse.h +++ b/h/mhparse.h @@ -503,7 +503,7 @@ char *get_param_value(PM pm, char replace); * inlineonly - If true, only display MIME parts that are marked with * a disposition of "inline" (includes parts that lack a * Content-Disposition header). - * markerform - The name of a file containg mh-format(5) code used to + * markerform - The name of a file containing mh-format(5) code used to * display markers about non-displayed MIME parts. */ void show_all_messages(CT *cts, int concat, int textonly, int inlineonly); diff --git a/mts/smtp/smtp.c b/mts/smtp/smtp.c index 873e0cd8..8b89dec3 100644 --- a/mts/smtp/smtp.c +++ b/mts/smtp/smtp.c @@ -96,7 +96,7 @@ static FILE *sm_wfp = NULL; */ static sasl_conn_t *conn = NULL; /* SASL connection state */ -static int sasl_complete = 0; /* Has authentication succeded? */ +static int sasl_complete = 0; /* Has authentication succeeded? */ static sasl_ssf_t sasl_ssf; /* Our security strength factor */ static int maxoutbuf; /* Maximum crypto output buffer */ static char *sasl_outbuffer; /* SASL output buffer for encryption */ @@ -1402,7 +1402,7 @@ tls_negotiate(void) #endif /* TLS_SUPPORT */ /* - * Convenience functions to replace occurences of fputs() and fputc() + * Convenience functions to replace occurrences of fputs() and fputc() */ static int diff --git a/mts/smtp/smtp.h b/mts/smtp/smtp.h index 72caaccb..bd67775c 100644 --- a/mts/smtp/smtp.h +++ b/mts/smtp/smtp.h @@ -256,7 +256,7 @@ char *rp_string (int); /* - * The next three give the numeric value withing the field + * The next three give the numeric value within the field */ /* get the basic part right-shifted */ diff --git a/sbr/addrparse.y b/sbr/addrparse.y index 7121545d..634a5ebd 100644 --- a/sbr/addrparse.y +++ b/sbr/addrparse.y @@ -20,7 +20,7 @@ * * COMMENT is a comment string, which is printable ASCII characters except * for '(', ')', and '\'. Uses same quoting rules as QSTRING. To make - * the grammer slightly less conflict-happy, COMMENT must include any FWS + * the grammar slightly less conflict-happy, COMMENT must include any FWS * in front or behind of it (simply have it eaten in the lexer). * * Everything else is a SPECIAL, which is returned directly. These are @@ -184,7 +184,7 @@ atom: /* * Making dot-atom work was a little confusing; I finally handled it by - * defining "dot_atom_text" as having two or more ATEXTs separted by + * defining "dot_atom_text" as having two or more ATEXTs separated by * '.', and defining dot_atom as allowing a single atom. */ dot_atom: diff --git a/sbr/addrsbr.c b/sbr/addrsbr.c index 23a7cb4c..0196b217 100644 --- a/sbr/addrsbr.c +++ b/sbr/addrsbr.c @@ -49,7 +49,7 @@ If an explicit host is not present, then MH checks for a bang to indicate an explicit UUCP-style address. If so, this is noted. If not, the host is - defaulted, typically to the local host. The lack of an explict host is + defaulted, typically to the local host. The lack of an explicit host is also noted. If an explicit 822-style host is present, then MH checks to see if it diff --git a/sbr/arglist.c b/sbr/arglist.c index f40f1e89..37dcec09 100644 --- a/sbr/arglist.c +++ b/sbr/arglist.c @@ -68,7 +68,7 @@ argsplit(char *command, char **file, int *argp) } /* - * Spaces, but no shell metacharacters; space-split into seperate + * Spaces, but no shell metacharacters; space-split into separate * arguments */ diff --git a/sbr/context_replace.c b/sbr/context_replace.c index bceb9dfd..45d5a31d 100644 --- a/sbr/context_replace.c +++ b/sbr/context_replace.c @@ -17,7 +17,7 @@ context_replace (char *key, char *value) register struct node *np; /* - * If list is emtpy, allocate head of profile/context list. + * If list is empty, allocate head of profile/context list. */ if (!m_defs) { m_defs = (struct node *) mh_xmalloc (sizeof(*np)); diff --git a/sbr/getcpy.c b/sbr/getcpy.c index 846d33a9..4d99a803 100644 --- a/sbr/getcpy.c +++ b/sbr/getcpy.c @@ -2,7 +2,7 @@ /* * getcpy.c -- copy a string in managed memory * - * THIS IS OBSOLETE. NEED TO REPLACE ALL OCCURENCES + * THIS IS OBSOLETE. NEED TO REPLACE ALL OCCURRENCES * OF GETCPY WITH STRDUP. BUT THIS WILL REQUIRE * CHANGING PARTS OF THE CODE TO DEAL WITH NULL VALUES. * diff --git a/sbr/getpass.c b/sbr/getpass.c index 95e9178c..865f231b 100644 --- a/sbr/getpass.c +++ b/sbr/getpass.c @@ -36,7 +36,7 @@ /* We don't use MAX_PASS here because the maximum password length on a remote POP daemon will have nothing to do with the length on our OS. 256 is - arbitrary but hopefully big enough to accomodate everyone. */ + arbitrary but hopefully big enough to accommodate everyone. */ #define MAX_PASSWORD_LEN 256 #ifndef TCSANOW diff --git a/sbr/m_getfld.c b/sbr/m_getfld.c index b0960547..9315059d 100644 --- a/sbr/m_getfld.c +++ b/sbr/m_getfld.c @@ -90,7 +90,7 @@ be parsed as well. Unfortunately the speed issue finally caught up with us since this routine is at the very heart of MH. - To speed things up considerably, the routine Eom() was made an auxilary + To speed things up considerably, the routine Eom() was made an auxiliary function called by the macro eom(). Unless we are bursting a maildrop, the eom() macro returns FALSE saying we aren't at the end of the message. diff --git a/sbr/mf.c b/sbr/mf.c index d99d2b38..c11b0c10 100644 --- a/sbr/mf.c +++ b/sbr/mf.c @@ -65,7 +65,7 @@ isat (const char *p) * getadrx() implements a partial 822-style address parser. The parser * is neither complete nor correct. It does however recognize nearly all * of the 822 address syntax. In addition it handles the majority of the - * 733 syntax as well. Most problems arise from trying to accomodate both. + * 733 syntax as well. Most problems arise from trying to accommodate both. * * In terms of 822, the route-specification in * diff --git a/sbr/seq_read.c b/sbr/seq_read.c index 9b071a4e..759dba49 100644 --- a/sbr/seq_read.c +++ b/sbr/seq_read.c @@ -186,7 +186,7 @@ seq_init (struct msgs *mp, char *name, char *field) * Search for this sequence name to see if we've seen * it already. If we've seen this sequence before, * then clear the bit for this sequence from all the - * mesages in this folder. + * messages in this folder. */ for (i = 0; i < svector_size (mp->msgattrs); i++) { if (!strcmp (svector_at (mp->msgattrs, i), name)) { diff --git a/test/common.sh.in b/test/common.sh.in index 29e88019..74e5f632 100644 --- a/test/common.sh.in +++ b/test/common.sh.in @@ -170,7 +170,7 @@ prepare_space() { #### Optional arguments: #### 'keep first' -- first file is removed unless this is present. #### 'ignore space' -- spacing differences will not be considered -#### signficant, emulating GNU diff -w. It is assumed that the +#### significant, emulating GNU diff -w. It is assumed that the #### first file has already been run through prepare_space. #### ':' -- will print '' in the failure message, #### to make it easier to tell which of multiple tests has failed. diff --git a/tools/Doxygen b/tools/Doxygen index d72f1281..b06f6b8f 100644 --- a/tools/Doxygen +++ b/tools/Doxygen @@ -1730,7 +1730,7 @@ UML_LOOK = NO # the class node. If there are many fields or methods and many nodes the # graph may become too big to be useful. The UML_LIMIT_NUM_FIELDS # threshold limits the number of items for each type to make the size more -# managable. Set this to 0 for no limit. Note that the threshold may be +# manageable. Set this to 0 for no limit. Note that the threshold may be # exceeded by 50% before the limit is enforced. UML_LIMIT_NUM_FIELDS = 10 diff --git a/uip/anno.c b/uip/anno.c index 26706eda..7a91f251 100644 --- a/uip/anno.c +++ b/uip/anno.c @@ -34,7 +34,7 @@ * option is specified, only the last path name component of each field * body is output. The entire field body is output if the -text option * is used; the contents of the -text argument are ignored. If the -list - * option is used in conjuction with the new -number option described + * option is used in conjunction with the new -number option described * below, each line is numbered starting with 1. A tab separates the * number from the field body. * diff --git a/uip/burst.c b/uip/burst.c index 5375f8a1..418fb909 100644 --- a/uip/burst.c +++ b/uip/burst.c @@ -287,7 +287,7 @@ find_delim (int msgnum, struct smsg *smsgs, int *mimesw) /* * Read in lines until we get to a message delimiter. * - * Previously we checked to make sure the preceeding line and + * Previously we checked to make sure the preceding line and * next line was a newline. That actually does not comply with * RFC 934, so make sure we break on a message delimiter even * if the previous character was NOT a newline. @@ -503,7 +503,7 @@ burst (struct msgs **mpp, int msgnum, struct smsg *smsgs, int numburst, #define S4 3 /* - * Copy a mesage which is being burst out of a digest. + * Copy a message which is being burst out of a digest. * It will remove any "dashstuffing" in the message. */ diff --git a/uip/mhfixmsg.c b/uip/mhfixmsg.c index 65abd513..cd169dff 100644 --- a/uip/mhfixmsg.c +++ b/uip/mhfixmsg.c @@ -1,5 +1,5 @@ /* - * mhfixmsg.c -- rewrite a message with various tranformations + * mhfixmsg.c -- rewrite a message with various transformations * * This code is Copyright (c) 2002 and 2013, by the authors of nmh. * See the COPYRIGHT file in the root directory of the nmh diff --git a/uip/scansbr.c b/uip/scansbr.c index 7391a3bd..2ef32c4e 100644 --- a/uip/scansbr.c +++ b/uip/scansbr.c @@ -242,7 +242,7 @@ scan (FILE *inb, int innum, int outnum, char *nfs, int width, int curflg, * The previous code here used to call m_getfld() using * pointers to the underlying output stdio buffers to * avoid the extra copy. Tests by Markus Schnalke show - * no noticable performance loss on larger mailboxes + * no noticeable performance loss on larger mailboxes * if we incur an extra copy, and messing around with * internal stdio buffers is becoming more and more * unportable as times go on. So from now on just deal diff --git a/uip/sendsbr.c b/uip/sendsbr.c index 07c7f974..6bfc548e 100644 --- a/uip/sendsbr.c +++ b/uip/sendsbr.c @@ -194,7 +194,7 @@ splitmsg (char **vec, int vecp, char *program, char *drft, * of message/partials. For the "Subject" header * field, we also record it, so that a modified * version of it, can be copied to the header - * of each messsage/partial in the collection. + * of each message/partial in the collection. */ if (!strcasecmp (name, "Subject")) { size_t sublen; diff --git a/uip/whatnowsbr.c b/uip/whatnowsbr.c index 62320f94..303f1b86 100644 --- a/uip/whatnowsbr.c +++ b/uip/whatnowsbr.c @@ -1287,7 +1287,7 @@ removefile (char *drft) /* - * Return 1 if we already have a MIME-Verson header, 0 otherwise. + * Return 1 if we already have a MIME-Version header, 0 otherwise. */ static int