diff options
Diffstat (limited to 'WWW/Library/Implementation')
29 files changed, 102 insertions, 95 deletions
diff --git a/WWW/Library/Implementation/HTAnchor.c b/WWW/Library/Implementation/HTAnchor.c index ee983a77..b5ca251c 100644 --- a/WWW/Library/Implementation/HTAnchor.c +++ b/WWW/Library/Implementation/HTAnchor.c @@ -1,5 +1,5 @@ /* - * $LynxId: HTAnchor.c,v 1.81 2018/03/11 18:34:50 tom Exp $ + * $LynxId: HTAnchor.c,v 1.82 2020/01/21 21:58:52 tom Exp $ * * Hypertext "Anchor" Object HTAnchor.c * ========================== @@ -684,7 +684,7 @@ BOOL HTAnchor_delete(HTParentAnchor0 *me) } /* - * Unnamed children (children_notag) have no sence without HText - delete them + * Unnamed children (children_notag) have no sense without HText - delete them * and their links if we are about to free HText. Document currently exists. * Called within HText_free(). */ @@ -1340,9 +1340,9 @@ static void setup_switch_display_charset(HTParentAnchor *me, int h) if (!Switch_Display_Charset(h, SWITCH_DISPLAY_CHARSET_MAYBE)) return; HTAnchor_setUCInfoStage(me, current_char_set, - UCT_STAGE_HTEXT, UCT_SETBY_MIME); /* highest priorty! */ + UCT_STAGE_HTEXT, UCT_SETBY_MIME); /* highest priority! */ HTAnchor_setUCInfoStage(me, current_char_set, - UCT_STAGE_STRUCTURED, UCT_SETBY_MIME); /* highest priorty! */ + UCT_STAGE_STRUCTURED, UCT_SETBY_MIME); /* highest priority! */ CTRACE((tfp, "changing UCInfoStage: HTEXT/STRUCTURED stages charset='%s'.\n", LYCharSet_UC[current_char_set].MIMEname)); diff --git a/WWW/Library/Implementation/HTChunk.h b/WWW/Library/Implementation/HTChunk.h index 1a9dbbae..fa51c99c 100644 --- a/WWW/Library/Implementation/HTChunk.h +++ b/WWW/Library/Implementation/HTChunk.h @@ -1,5 +1,5 @@ /* - * $LynxId: HTChunk.h,v 1.20 2010/09/24 08:37:39 tom Exp $ + * $LynxId: HTChunk.h,v 1.21 2020/01/21 22:02:43 tom Exp $ * * HTChunk: Flexible array handling for libwww * CHUNK HANDLING: @@ -61,7 +61,7 @@ extern "C" { * error if failok != 0, but merely resets the chunk. When using a chunk * created this way, the caller should always check whether the contents * are ok each time after data have been appended. - * The create call may also fail and will reurn NULL in that case. - kw + * The create call may also fail and will return NULL in that case. - kw */ extern HTChunk *HTChunkCreateMayFail(int growby, int failok); @@ -211,7 +211,7 @@ extern "C" { * ON EXIT, * * returns original chunk or a pointer to the new chunk - * (orginal chunk is referenced to the new one + * (original chunk is referenced to the new one * by the field 'next') * */ diff --git a/WWW/Library/Implementation/HTFTP.c b/WWW/Library/Implementation/HTFTP.c index a993762a..7a7efaa4 100644 --- a/WWW/Library/Implementation/HTFTP.c +++ b/WWW/Library/Implementation/HTFTP.c @@ -1,5 +1,5 @@ /* - * $LynxId: HTFTP.c,v 1.140 2018/12/27 10:24:31 tom Exp $ + * $LynxId: HTFTP.c,v 1.141 2020/01/21 22:07:13 tom Exp $ * * File Transfer Protocol (FTP) Client * for a WorldWideWeb browser @@ -1457,7 +1457,7 @@ static void free_entryinfo_struct_contents(EntryInfo *entry_info) FREE(entry_info->type); FREE(entry_info->date); } - /* dont free the struct */ + /* don't free the struct */ } /* diff --git a/WWW/Library/Implementation/HTFile.h b/WWW/Library/Implementation/HTFile.h index 937907d4..204f5404 100644 --- a/WWW/Library/Implementation/HTFile.h +++ b/WWW/Library/Implementation/HTFile.h @@ -1,5 +1,5 @@ /* - * $LynxId: HTFile.h,v 1.33 2012/02/10 00:59:15 tom Exp $ + * $LynxId: HTFile.h,v 1.34 2020/01/21 22:08:07 tom Exp $ * File access in libwww * FILE ACCESS * @@ -33,7 +33,7 @@ extern "C" { #define HT_DIR_FORBID 0 /* Altogether forbidden */ #define HT_DIR_SELECTIVE 1 /* If HT_DIR_ENABLE_FILE exists */ -#define HT_DIR_OK 2 /* Any accesible directory */ +#define HT_DIR_OK 2 /* Any accessible directory */ #define HT_DIR_ENABLE_FILE ".www_browsable" /* If exists, can browse */ @@ -135,7 +135,7 @@ extern "C" { * Examples: HTSetSuffix(".ps", "application/postscript", "8bit", 1.0); * Examples: HTSetSuffix(".psz", "application/postscript", "gzip", 1.0); * A MIME type could also indicate a non-trivial encoding on its own - * ("application/x-compressed-tar"), but in that case don't use enconding + * ("application/x-compressed-tar"), but in that case don't use encoding * to also indicate it but use "binary" etc. */ extern void HTSetSuffix5(const char *suffix, diff --git a/WWW/Library/Implementation/HTFormat.h b/WWW/Library/Implementation/HTFormat.h index f7e65f2c..20e718a8 100644 --- a/WWW/Library/Implementation/HTFormat.h +++ b/WWW/Library/Implementation/HTFormat.h @@ -1,5 +1,5 @@ /* - * $LynxId: HTFormat.h,v 1.36 2018/03/05 22:25:50 tom Exp $ + * $LynxId: HTFormat.h,v 1.37 2020/01/21 22:02:59 tom Exp $ * * HTFormat: The format manager in the WWW Library * MANAGE DIFFERENT DOCUMENT FORMATS @@ -269,7 +269,7 @@ HTSetPresentation: Register a system command to present a format /* -HTSetConversion: Register a converstion routine +HTSetConversion: Register a conversion routine ON ENTRY, @@ -332,7 +332,7 @@ HTStackValue: Find the cost of a filter stack ON ENTRY, - format_in The fomat of the data to be converted + format_in The format of the data to be converted format_out The format required diff --git a/WWW/Library/Implementation/HTGopher.c b/WWW/Library/Implementation/HTGopher.c index 7c2baebc..f20d35dc 100644 --- a/WWW/Library/Implementation/HTGopher.c +++ b/WWW/Library/Implementation/HTGopher.c @@ -1,5 +1,5 @@ /* - * $LynxId: HTGopher.c,v 1.74 2019/08/26 22:44:21 tom Exp $ + * $LynxId: HTGopher.c,v 1.75 2020/01/21 22:04:23 tom Exp $ * * GOPHER ACCESS HTGopher.c * ============= @@ -186,7 +186,7 @@ static char from_hex(int c) * On entry, * HT is in append mode. * text points to the text to be put into the file, 0 terminated. - * addr points to the hypertext refernce address 0 terminated. + * addr points to the hypertext reference address 0 terminated. */ BOOLEAN HT_Is_Gopher_URL = FALSE; @@ -576,7 +576,7 @@ static void parse_cso(const char *arg, * where # is the search result number and can be multiple * digits (infinite?). * Find the second colon and check the digit to the left of it - * to see if they are diferent. If they are then a different + * to see if they are different. If they are then a different * person is starting. Make this line an <h2>. */ @@ -592,7 +592,7 @@ static void parse_cso(const char *arg, if (second_colon != NULL) { /* error check */ if (*(second_colon - 1) != last_char) - /* print seperator */ + /* print separator */ { END(HTML_PRE); START(HTML_H2); @@ -620,7 +620,7 @@ static void parse_cso(const char *arg, PUTC('\n'); if (*(second_colon - 1) != last_char) - /* end seperator */ + /* end separator */ { END(HTML_H2); START(HTML_PRE); @@ -734,7 +734,7 @@ static void display_index(const char *arg, /* De-escape a selector into a command. * ==================================== * - * The % hex escapes are converted. Otheriwse, the string is copied. + * The % hex escapes are converted. Otherwise, the string is copied. */ static void de_escape(char *command, const char *selector) { @@ -1202,7 +1202,7 @@ static int generate_cso_form(char *host, ; } /* - * Save context, interpet command and restore updated context. + * Save context, interpret command and restore updated context. */ ctx.cur_line = i; ctx.cur_off = j; @@ -1505,7 +1505,7 @@ static int HTLoadCSO(const char *arg, init_acceptable(); if (!arg) - return -3; /* Bad if no name sepcified */ + return -3; /* Bad if no name specified */ if (!*arg) return -2; /* Bad if name had zero length */ CTRACE((tfp, "HTLoadCSO: Looking for %s\n", arg)); @@ -1785,7 +1785,7 @@ static int HTLoadGopher(const char *arg, init_acceptable(); if (!arg) - return -3; /* Bad if no name sepcified */ + return -3; /* Bad if no name specified */ if (!*arg) return -2; /* Bad if name had zero length */ CTRACE((tfp, "HTGopher: Looking for %s\n", arg)); diff --git a/WWW/Library/Implementation/HTGroup.c b/WWW/Library/Implementation/HTGroup.c index c1172f00..42d55dc2 100644 --- a/WWW/Library/Implementation/HTGroup.c +++ b/WWW/Library/Implementation/HTGroup.c @@ -463,7 +463,7 @@ static void print_group_def_list(GroupDefList *group_list) */ /* static part_match() - * MATCH ONE PART OF INET ADDRESS AGAIST + * MATCH ONE PART OF INET ADDRESS AGAINST * A PART OF MASK (inet address has 4 parts) * ON ENTRY: * tcur pointer to the beginning of template part. @@ -507,7 +507,7 @@ static BOOL part_match(const char *tcur, /* static ip_number_match() * MATCH INET NUMBER AGAINST AN INET NUMBER MASK * ON ENTRY: - * template mask to match agaist, e.g., 128.141.*.* + * template mask to match against, e.g., 128.141.*.* * the_inet_addr actual inet address, e.g., 128.141.201.74 * * ON EXIT: diff --git a/WWW/Library/Implementation/HTMLGen.c b/WWW/Library/Implementation/HTMLGen.c index 7480b0fc..c63723c3 100644 --- a/WWW/Library/Implementation/HTMLGen.c +++ b/WWW/Library/Implementation/HTMLGen.c @@ -1,5 +1,5 @@ /* - * $LynxId: HTMLGen.c,v 1.45 2018/05/11 22:41:59 tom Exp $ + * $LynxId: HTMLGen.c,v 1.46 2020/01/21 22:02:35 tom Exp $ * * HTML Generator * ============== @@ -11,7 +11,7 @@ * Should convert old XMP, LISTING and PLAINTEXT to PRE. * * It is not obvious to me right now whether the HEAD should be generated - * from the incomming data or the anchor. Currently it is from the former + * from the incoming data or the anchor. Currently it is from the former * which is cleanest. */ @@ -249,7 +249,7 @@ static void HTMLGen_put_character(HTStructured * me, int c) *q++ = *p++; } me->cleanness = 0; - /* Now we have to check whether ther are any perfectly good breaks + /* Now we have to check whether there are any perfectly good breaks * which weren't good enough for the last line but may be good * enough for the next */ @@ -686,7 +686,7 @@ HTStructured *HTMLGenerator(HTStream *output) * ------------------- * * This object just converts a plain text stream into HTML - * It is officially a structured strem but only the stream bits exist. + * It is officially a structured stream but only the stream bits exist. * This is just the easiest way of typecasting all the routines. */ static const HTStructuredClass PlainToHTMLConversion = diff --git a/WWW/Library/Implementation/HTNews.c b/WWW/Library/Implementation/HTNews.c index 3cd1b791..5fd0e99d 100644 --- a/WWW/Library/Implementation/HTNews.c +++ b/WWW/Library/Implementation/HTNews.c @@ -1,5 +1,5 @@ /* - * $LynxId: HTNews.c,v 1.74 2019/08/20 09:03:18 tom Exp $ + * $LynxId: HTNews.c,v 1.75 2020/01/21 22:12:00 tom Exp $ * * NEWS ACCESS HTNews.c * =========== @@ -3015,7 +3015,7 @@ static int HTLoadNews(const char *arg, #if 0 HTAlert(gettext("Sorry, could not load requested news.")); NXRunAlertPanel(NULL, "Sorry, could not load `%s'.", NULL, NULL, NULL, arg); - /* No -- message earlier wil have covered it */ + /* No -- message earlier will have covered it */ #endif if (!(post_wanted || reply_wanted || diff --git a/WWW/Library/Implementation/HTPlain.c b/WWW/Library/Implementation/HTPlain.c index 1dc63b48..ff527316 100644 --- a/WWW/Library/Implementation/HTPlain.c +++ b/WWW/Library/Implementation/HTPlain.c @@ -1,5 +1,5 @@ /* - * $LynxId: HTPlain.c,v 1.60 2016/11/24 15:29:50 tom Exp $ + * $LynxId: HTPlain.c,v 1.61 2020/01/21 22:05:46 tom Exp $ * * Plain text object HTWrite.c * ================= @@ -502,7 +502,7 @@ static void HTPlain_write(HTStream *me, const char *s, int l) UCGetLYhndl_byMIME("us-ascii"), 0) >= 0)) { /* - * Got a repacement string (yippey). - FM + * Got a replacement string (yippey). - FM */ HText_appendText(me->text, replace_buf); } else if (code == 8204 || code == 8205) { diff --git a/WWW/Library/Implementation/HTRules.h b/WWW/Library/Implementation/HTRules.h index fa5130e5..9bb85931 100644 --- a/WWW/Library/Implementation/HTRules.h +++ b/WWW/Library/Implementation/HTRules.h @@ -114,7 +114,7 @@ HTTranslate: Translate by rules ON ENTRY, - required points to a string whose equivalent value is neeed + required points to a string whose equivalent value is needed ON EXIT, diff --git a/WWW/Library/Implementation/HTString.c b/WWW/Library/Implementation/HTString.c index 54d8207e..bdc622b6 100644 --- a/WWW/Library/Implementation/HTString.c +++ b/WWW/Library/Implementation/HTString.c @@ -1,5 +1,5 @@ /* - * $LynxId: HTString.c,v 1.75 2018/12/27 10:28:12 tom Exp $ + * $LynxId: HTString.c,v 1.76 2020/01/21 21:58:09 tom Exp $ * * Case-independent string comparison HTString.c * @@ -378,7 +378,7 @@ char *HTSACopy_extra(char **dest, * --------------- * * On entry, - * *pstr points to a string containig white space separated + * *pstr points to a string containing white space separated * field, optionlly quoted. * * On exit, @@ -428,8 +428,8 @@ char *HTNextField(char **pstr) * If NULL, default is white space "," ";" or "=". * The word can optionally be quoted or enclosed with * chars from bracks. - * Comments surrrounded by '(' ')' are filtered out - * unless they are specifically reqested by including + * Comments surrounded by '(' ')' are filtered out + * unless they are specifically requested by including * ' ' or '(' in delims or bracks. * bracks lists bracketing chars. Some are recognized as * special, for those give the opening char. diff --git a/WWW/Library/Implementation/HTStyle.h b/WWW/Library/Implementation/HTStyle.h index 0e51e39c..79ba003f 100644 --- a/WWW/Library/Implementation/HTStyle.h +++ b/WWW/Library/Implementation/HTStyle.h @@ -1,5 +1,5 @@ /* - * $LynxId: HTStyle.h,v 1.17 2011/06/06 09:12:01 tom Exp $ + * $LynxId: HTStyle.h,v 1.18 2020/01/21 22:02:35 tom Exp $ HTStyle: Style management for libwww STYLE DEFINITION FOR HYPERTEXT @@ -97,7 +97,7 @@ extern "C" { HTAnchor *anchor; /* Anchor id if any, else zero */ -/* Paragraph Attribtes (a la NXTextStyle) +/* Paragraph Attributes (a la NXTextStyle) */ HTCoord indent1st; /* how far first line in paragraph is * indented */ diff --git a/WWW/Library/Implementation/HTTCP.c b/WWW/Library/Implementation/HTTCP.c index c43ab7ac..2834c2c7 100644 --- a/WWW/Library/Implementation/HTTCP.c +++ b/WWW/Library/Implementation/HTTCP.c @@ -1,5 +1,5 @@ /* - * $LynxId: HTTCP.c,v 1.152 2019/09/19 00:27:19 Steffen.Nurpmeso Exp $ + * $LynxId: HTTCP.c,v 1.155 2020/01/22 01:58:28 tom Exp $ * * Generic Communication Code HTTCP.c * ========================== @@ -1856,11 +1856,18 @@ int HTDoConnect(const char *url, StrAllocCopy(socks5_new_url, url); /* Get node name and optional port number of wanted URL */ - p1 = HTParse(socks5_new_url, "", PARSE_HOST); socks5_host = NULL; - StrAllocCopy(socks5_host, p1); - strip_userid(socks5_host, FALSE); - FREE(p1); + if ((p1 = HTParse(socks5_new_url, "", PARSE_HOST)) != NULL) { + StrAllocCopy(socks5_host, p1); + strip_userid(socks5_host, FALSE); + FREE(p1); + } + + if (isEmpty(socks5_host)) { + emsg = gettext("SOCKS5: no hostname found."); + status = HT_ERROR; + goto report_error; + } if (strlen(socks5_host) > 255) { emsg = gettext("SOCKS5: hostname too long."); @@ -2286,7 +2293,7 @@ int HTDoConnect(const char *url, /* C99 */ { unsigned short x; /* XXX 16-bit? */ - x = htons(socks5_port); + x = htons((unsigned) socks5_port); memcpy(&pbuf[i], (unsigned char *) &x, sizeof x); i += (unsigned) sizeof(x); } diff --git a/WWW/Library/Implementation/HTTP.c b/WWW/Library/Implementation/HTTP.c index ca7da8a5..7e0234aa 100644 --- a/WWW/Library/Implementation/HTTP.c +++ b/WWW/Library/Implementation/HTTP.c @@ -1,8 +1,8 @@ /* - * $LynxId: HTTP.c,v 1.177 2019/01/25 01:37:35 tom Exp $ + * $LynxId: HTTP.c,v 1.178 2020/01/21 22:09:33 tom Exp $ * - * HyperText Tranfer Protocol - Client implementation HTTP.c - * ========================== + * HyperText Transfer Protocol - Client implementation HTTP.c + * =========================== * Modified: * 27 Jan 1994 PDM Added Ari Luotonen's Fix for Reload when using proxy * servers. @@ -1855,7 +1855,7 @@ static int HTLoadHTTP(const char *arg, SOCKET_ERRNO == EPIPE) && !already_retrying && !do_post) { /* - * Arrrrgh, HTTP 0/1 compability problem, maybe. + * Arrrrgh, HTTP 0/1 compatibility problem, maybe. */ CTRACE((tfp, "HTTP: BONZO Trying again with HTTP0 request.\n")); @@ -2269,10 +2269,10 @@ static int HTLoadHTTP(const char *arg, /* * We do not load the file, but read the headers for the * "Location:", check out that redirecting_url and if it's - * acceptible (e.g., not a telnet URL when we have that + * acceptable (e.g., not a telnet URL when we have that * disabled), initiate a new fetch. If that's another * redirecting_url, we'll repeat the checks, and fetch - * initiations if acceptible, until we reach the actual URL, or + * initiations if acceptable, until we reach the actual URL, or * the redirection limit set in HTAccess.c is exceeded. If the * status was 301 indicating that the relocation is permanent, * we set the permanent_redirection flag to make it permanent diff --git a/WWW/Library/Implementation/HTTP.h b/WWW/Library/Implementation/HTTP.h index f3ab7eb1..ea0f8355 100644 --- a/WWW/Library/Implementation/HTTP.h +++ b/WWW/Library/Implementation/HTTP.h @@ -1,8 +1,8 @@ /* - * $LynxId: HTTP.h,v 1.11 2012/02/23 00:41:07 tom Exp $ + * $LynxId: HTTP.h,v 1.12 2020/01/21 21:59:06 tom Exp $ * * /Net/dxcern/userd/timbl/hypertext/WWW/Library/Implementation/HTTP.html - * HYPERTEXT TRANFER PROTOCOL + * HYPERTEXT TRANSFER PROTOCOL */ #ifndef HTTP_H #define HTTP_H diff --git a/WWW/Library/Implementation/HTUtils.h b/WWW/Library/Implementation/HTUtils.h index cdd84eff..e285e3d1 100644 --- a/WWW/Library/Implementation/HTUtils.h +++ b/WWW/Library/Implementation/HTUtils.h @@ -1,5 +1,5 @@ /* - * $LynxId: HTUtils.h,v 1.130 2019/08/17 00:37:51 tom Exp $ + * $LynxId: HTUtils.h,v 1.131 2020/01/21 22:08:40 tom Exp $ * * Utility macros for the W3 code library * MACROS FOR GENERAL USE @@ -131,7 +131,7 @@ char *alloca(); #include <assert.h> -/* suppress inadvertant use of gettext in makeuctb when cross-compiling */ +/* suppress inadvertent use of gettext in makeuctb when cross-compiling */ #ifdef DONT_USE_GETTEXT #undef HAVE_GETTEXT #undef HAVE_LIBGETTEXT_H @@ -292,7 +292,7 @@ typedef unsigned short mode_t; ERROR TYPE This is passed back when streams are aborted. It might be nice to have some structure - of error messages, numbers, and recursive pointers to reasons. Curently this is a + of error messages, numbers, and recursive pointers to reasons. Currently this is a placeholder for something more sophisticated. */ diff --git a/WWW/Library/Implementation/HTVMSUtils.c b/WWW/Library/Implementation/HTVMSUtils.c index e2789561..38e583a6 100644 --- a/WWW/Library/Implementation/HTVMSUtils.c +++ b/WWW/Library/Implementation/HTVMSUtils.c @@ -1,5 +1,5 @@ /* - * $LynxId: HTVMSUtils.c,v 1.39 2013/11/28 11:15:31 tom Exp $ + * $LynxId: HTVMSUtils.c,v 1.40 2020/01/21 21:58:29 tom Exp $ * * MODULE HTVMSUtil.c * VMS Utility Routines @@ -140,7 +140,7 @@ void HTVMS_disableSysPrv(void) * FileName The file to be accessed * UserName Name of the user to check access for. * User nobody, represented by "" is given NO for an answer - * Method Name of the method to be chceked + * Method Name of the method to be checked * * ON EXIT: * returns YES if access is allowed @@ -371,7 +371,7 @@ int HTStat(const char *filename, } #ifndef _POSIX_SOURCE -#define d_ino d_fileno /* compatability */ +#define d_ino d_fileno /* compatibility */ #ifndef NULL #define NULL 0 #endif @@ -597,7 +597,7 @@ static void free_VMSEntryInfo_contents(VMSEntryInfo * entry_info) FREE(entry_info->type); FREE(entry_info->date); } - /* dont free the struct */ + /* don't free the struct */ } int compare_VMSEntryInfo_structs(VMSEntryInfo * entry1, VMSEntryInfo * entry2) diff --git a/WWW/Library/Implementation/HTVMS_WaisProt.c b/WWW/Library/Implementation/HTVMS_WaisProt.c index 30feae62..687c9df9 100644 --- a/WWW/Library/Implementation/HTVMS_WaisProt.c +++ b/WWW/Library/Implementation/HTVMS_WaisProt.c @@ -1,5 +1,5 @@ /* - * $LynxId: HTVMS_WaisProt.c,v 1.9 2010/09/24 23:51:22 tom Exp $ + * $LynxId: HTVMS_WaisProt.c,v 1.10 2020/01/21 22:10:03 tom Exp $ * * HTVMS_WAISProt.c * @@ -89,7 +89,7 @@ static char *writeUserInfoHeader(data_tag tag, /* write the tag and size, making sure the info fits. return the true end of the info (after adjustment) note that the argument infoSize includes estHeaderSize. Note that the argument len is the number of bytes remaining - in the buffer. Since we write the tag and size at the begining of the + in the buffer. Since we write the tag and size at the beginning of the buffer (in space that we reserved) we don't want to pass len the calls which do that writing. */ @@ -414,7 +414,7 @@ static char *writeDocObj(DocObj *doc, { char *buf = buffer; - /* we alwasy have to write the id, but its tag depends on if its a chunk */ + /* we always have to write the id, but its tag depends on if it's a chunk */ if (doc->ChunkCode == CT_document) buf = writeAny(doc->DocumentID, DT_DocumentID, buf, len); else diff --git a/WWW/Library/Implementation/HTVMS_WaisProt.h b/WWW/Library/Implementation/HTVMS_WaisProt.h index 457d3cbb..cea2a325 100644 --- a/WWW/Library/Implementation/HTVMS_WaisProt.h +++ b/WWW/Library/Implementation/HTVMS_WaisProt.h @@ -371,7 +371,7 @@ void CSTFreeWAISTextQuery(any *query); * the past that only handle one case can at least read the header. * * 7.5.90 HWM - added constants - * 7/5/90 brewster added funtion prototypes and comments + * 7/5/90 brewster added function prototypes and comments * 11/30/90 HWM - went to version 2 (inits and typed retrieval) */ diff --git a/WWW/Library/Implementation/HTVMS_WaisUI.c b/WWW/Library/Implementation/HTVMS_WaisUI.c index e74ab0ae..716bbbbe 100644 --- a/WWW/Library/Implementation/HTVMS_WaisUI.c +++ b/WWW/Library/Implementation/HTVMS_WaisUI.c @@ -1,5 +1,5 @@ /* - * $LynxId: HTVMS_WaisUI.c,v 1.20 2018/12/27 10:28:12 tom Exp $ + * $LynxId: HTVMS_WaisUI.c,v 1.21 2020/01/21 22:00:50 tom Exp $ * HTVMS_WAISUI.c * * Adaptation for Lynx by F.Macrides (macrides@sci.wfeb.edu) @@ -998,12 +998,12 @@ char *readSearchResponseAPDU(SearchResponseAPDU **queryResponse, char *buffer) * 3.7.91 Jonny Goldman. Replaced "short" in makeBitMap with "int" line 632. */ -char *readErrorPosition = NULL; /* pos where buf stoped making sense */ +char *readErrorPosition = NULL; /* pos where buf stopped making sense */ /*----------------------------------------------------------------------*/ /* A note on error handling read - these are low level routines, they do not check the type tags - which (sometimes) preceed the data (this is done by the higher + which (sometimes) precede the data (this is done by the higher level functions which call these functions). There is no attempt made to check that the reading does not exceed the read buffer. Such cases should be very rare and usually will be @@ -1011,7 +1011,7 @@ char *readErrorPosition = NULL; /* pos where buf stoped making sense */ a series of low level reads will go far off the edge without triggering a type error. However, it is possible for a single bad read in an array function (eg. readAny) to attempt to read a - large ammount, possibly causing a segmentation violation or out + large amount, possibly causing a segmentation violation or out of memory condition. */ /*----------------------------------------------------------------------*/ @@ -1211,8 +1211,8 @@ char *writeCompressedIntWithPadding(unsigned long num, /*----------------------------------------------------------------------*/ unsigned long writtenCompressedIntSize(unsigned long num) -/* return the number of bytes needed to represnet the value num in - compressed format. curently limited to 4 bytes +/* return the number of bytes needed to represent the value num in + compressed format. currently limited to 4 bytes */ { if (num < CompressedInt1Byte) @@ -1403,7 +1403,7 @@ char *anyToString(any *a) char *writeString(char *s, data_tag tag, char *buffer, long *len) /* Write a C style string. The terminating null is not written. This function is not part of the Z39.50 spec. It is provided - for the convienience of those wishing to pass C strings in + for the convenience of those wishing to pass C strings in the place of an any. */ { @@ -1426,7 +1426,7 @@ char *writeString(char *s, data_tag tag, char *buffer, long *len) char *readString(char **s, char *buffer) /* Read an any and convert it into a C style string. This function is not part of the Z39.50 spec. It is provided - for the convienience of those wishing to pass C strings in + for the convenience of those wishing to pass C strings in the place of an any. */ { @@ -1456,7 +1456,7 @@ unsigned long writtenStringSize(data_tag tag, char *s) /*----------------------------------------------------------------------*/ any *longToAny(long num) -/* a convienience function */ +/* a convenience function */ { char s[40]; @@ -1468,7 +1468,7 @@ any *longToAny(long num) /*----------------------------------------------------------------------*/ long anyToLong(any *a) -/* a convienience function */ +/* a convenience function */ { long num; char *str = NULL; @@ -2200,7 +2200,7 @@ void *fs_realloc(void *ptr, size_t size) void fs_free(void *ptr) /* does safety checks and optional accounting */ { - if (ptr != NULL) /* some non-ansi compilers/os's cant handle freeing null */ + if (ptr != NULL) /* some non-ansi compilers/os's can't handle freeing null */ { /* if we knew the size of this block of memory, we could clear it - oh well */ free(ptr); ptr = NULL; @@ -2219,7 +2219,7 @@ char *s_strdup(char *s) unsigned long len; char *copy = NULL; - if (s == NULL) /* saftey check to postpone stupid errors */ + if (s == NULL) /* safety check to postpone stupid errors */ return (NULL); len = strlen(s); /* length of string - terminator */ diff --git a/WWW/Library/Implementation/HTVMS_WaisUI.h b/WWW/Library/Implementation/HTVMS_WaisUI.h index 6ab702d6..4b5b06d5 100644 --- a/WWW/Library/Implementation/HTVMS_WaisUI.h +++ b/WWW/Library/Implementation/HTVMS_WaisUI.h @@ -251,7 +251,7 @@ extern "C" { /* for internal error handling */ - extern char *readErrorPosition; /* pos where buf stoped making sense */ + extern char *readErrorPosition; /* pos where buf stopped making sense */ /* the following are macros so that they can return OUT of the function which calls them diff --git a/WWW/Library/Implementation/HTWAIS.c b/WWW/Library/Implementation/HTWAIS.c index cf510faf..3c9fb0a6 100644 --- a/WWW/Library/Implementation/HTWAIS.c +++ b/WWW/Library/Implementation/HTWAIS.c @@ -1,7 +1,7 @@ /* - * $LynxId: HTWAIS.c,v 1.39 2018/03/05 22:33:35 tom Exp $ + * $LynxId: HTWAIS.c,v 1.40 2020/01/21 22:22:15 tom Exp $ * - * WorldWideWeb - Wide Area Informaion Server Access HTWAIS.c + * WorldWideWeb - Wide Area Information Server Access HTWAIS.c * ================================================== * * This module allows a WWW server or client to read data from a @@ -929,7 +929,7 @@ int HTLoadWAIS(const char *arg, return HTLoadError(sink, 500, gettext("Can't convert format of WAIS document")); /* - * Decode hex or litteral format for document ID. + * Decode hex or literal format for document ID. */ WAIS_from_WWW(docid, docname); diff --git a/WWW/Library/Implementation/HTWSRC.c b/WWW/Library/Implementation/HTWSRC.c index fe42a65b..ba12cc71 100644 --- a/WWW/Library/Implementation/HTWSRC.c +++ b/WWW/Library/Implementation/HTWSRC.c @@ -1,5 +1,5 @@ /* - * $LynxId: HTWSRC.c,v 1.30 2016/11/24 15:29:50 tom Exp $ + * $LynxId: HTWSRC.c,v 1.31 2020/01/21 22:05:46 tom Exp $ * * Parse WAIS Source file HTWSRC.c * ====================== @@ -303,7 +303,7 @@ static void give_parameter(HTStream *me, int p) } } -/* Generate Outout +/* Generate Output * =============== */ static void WSRC_gen_html(HTStream *me, int source_file) diff --git a/WWW/Library/Implementation/HTWSRC.h b/WWW/Library/Implementation/HTWSRC.h index 152d27ab..6c811327 100644 --- a/WWW/Library/Implementation/HTWSRC.h +++ b/WWW/Library/Implementation/HTWSRC.h @@ -26,7 +26,7 @@ extern "C" { Escaping Strings - HTDeSlash takes out the invlaid characters in a URL path ELEMENT by + HTDeSlash takes out the invalid characters in a URL path ELEMENT by converting them into hex-escaped characters. HTEnSlash does the reverse. Each returns a pointer to a newly allocated string which must eventually be diff --git a/WWW/Library/Implementation/HText.h b/WWW/Library/Implementation/HText.h index 84ec87c7..93ff4a66 100644 --- a/WWW/Library/Implementation/HText.h +++ b/WWW/Library/Implementation/HText.h @@ -1,5 +1,5 @@ /* - * $LynxId: HText.h,v 1.16 2010/09/25 11:41:08 tom Exp $ + * $LynxId: HText.h,v 1.17 2020/01/21 22:08:07 tom Exp $ * Rich Hypertext object for libWWW * RICH HYPERTEXT OBJECT * @@ -119,7 +119,7 @@ Object Building methods /* - The anchor object is created and passed to HText_beginAnchor. The senstive + The anchor object is created and passed to HText_beginAnchor. The sensitive text is added to the text object, and then HText_endAnchor is called. Anchors may not be nested. @@ -174,7 +174,7 @@ Browsing functions Editing functions These are called from the application. There are many more functions not - included here from the orginal text object. These functions NEED NOT BE + included here from the original text object. These functions NEED NOT BE IMPLEMENTED in a browser which cannot edit. */ diff --git a/WWW/Library/Implementation/LYLeaks.h b/WWW/Library/Implementation/LYLeaks.h index 2139fa38..a47b9624 100644 --- a/WWW/Library/Implementation/LYLeaks.h +++ b/WWW/Library/Implementation/LYLeaks.h @@ -1,5 +1,5 @@ /* - * $LynxId: LYLeaks.h,v 1.18 2018/12/27 10:27:01 tom Exp $ + * $LynxId: LYLeaks.h,v 1.19 2020/01/21 22:05:46 tom Exp $ */ #ifndef __LYLEAKS_H /* @@ -15,7 +15,7 @@ * Purpose: Header to convert requests for allocation to Lynx * custom functions to track memory leaks. * Remarks/Portability/Dependencies/Restrictions: - * For the stdlib.h allocation functions to be overriden by the + * For the stdlib.h allocation functions to be overridden by the * Lynx memory tracking functions all modules allocating, * freeing, or resizing memory must have LY_FIND_LEAKS * defined before including this file. diff --git a/WWW/Library/Implementation/LYexit.h b/WWW/Library/Implementation/LYexit.h index 77c15a67..60e6910d 100644 --- a/WWW/Library/Implementation/LYexit.h +++ b/WWW/Library/Implementation/LYexit.h @@ -11,7 +11,7 @@ * Purpose: Provide an atexit function for libraries without such. * Remarks/Portability/Dependencies/Restrictions: * Include this header in every file that you have an exit or - * atexit statment. + * atexit statement. * Revision History: * 06-15-94 created Lynx 2-3-1 Garrett Arch Blythe */ diff --git a/WWW/Library/Implementation/SGML.c b/WWW/Library/Implementation/SGML.c index 47b8304a..7f107f44 100644 --- a/WWW/Library/Implementation/SGML.c +++ b/WWW/Library/Implementation/SGML.c @@ -1,5 +1,5 @@ /* - * $LynxId: SGML.c,v 1.168 2019/01/27 19:14:06 tom Exp $ + * $LynxId: SGML.c,v 1.169 2020/01/21 22:06:39 tom Exp $ * * General SGML Parser code SGML.c * ======================== @@ -51,7 +51,7 @@ static int sgml_offset; static char *entity_string; /* this is used for printing entity name. - Unconditionally added since redundant assigments don't hurt much */ + Unconditionally added since redundant assignments don't hurt much */ static void fake_put_character(HTStream *p GCC_UNUSED, int c GCC_UNUSED) @@ -2271,7 +2271,7 @@ static void SGML_character(HTStream *me, int c_in) goto case_S_litteral; /* - * In litteral mode, waits only for specific end tag (for compatibility + * In literal mode, waits only for specific end tag (for compatibility * with old servers, and for Lynx). - FM */ case_S_litteral: @@ -2308,7 +2308,7 @@ static void SGML_character(HTStream *me, int c_in) int i; /* - * If complete match, end litteral. + * If complete match, end literal. */ if ((c == '>') && testlast >= 0 && !testtag->name[testlast]) { |