diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 19:36:21 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 19:36:21 +0000 |
commit | 2ee7775ccfde81ab26358da5d06fa4a8130f6d92 (patch) | |
tree | 393a6873c4d7b9bd0d8906862aaf3f596e2fbd95 /src/GridText.c | |
parent | Adding upstream version 2.9.0rel.0. (diff) | |
download | lynx-2ee7775ccfde81ab26358da5d06fa4a8130f6d92.tar.xz lynx-2ee7775ccfde81ab26358da5d06fa4a8130f6d92.zip |
Adding upstream version 2.9.1.upstream/2.9.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | src/GridText.c | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/src/GridText.c b/src/GridText.c index 806a053..419f6ee 100644 --- a/src/GridText.c +++ b/src/GridText.c @@ -1,5 +1,5 @@ /* - * $LynxId: GridText.c,v 1.347 2024/01/15 19:11:55 Gisle.Vanem Exp $ + * $LynxId: GridText.c,v 1.349 2024/04/11 20:24:32 tom Exp $ * * Character grid hypertext object * =============================== @@ -6002,7 +6002,7 @@ static void HText_trimHightext(HText *text, int final, int stop_before) { - int cur_line, cur_shift; + int cur_line; TextAnchor *anchor_ptr; TextAnchor *prev_a = NULL; HTLine *line_ptr; @@ -6097,7 +6097,6 @@ static void HText_trimHightext(HText *text, anchor_ptr->number, anchor_ptr->extent)); - cur_shift = 0; /* * Strip off any spaces or SpecialAttrChars at the beginning, * if they exist, but only on HYPERTEXT_ANCHORS. @@ -6108,7 +6107,6 @@ static void HText_trimHightext(HText *text, IsSpecialAttrChar(ch)) { anchor_ptr->line_pos++; anchor_ptr->extent--; - cur_shift++; ch = UCH(line_ptr->data[anchor_ptr->line_pos]); } } @@ -7107,7 +7105,7 @@ void HTCheckFnameForCompression(char **fname, char *fn = *fname; char *dot = NULL; char *cp = NULL; - const char *suffix = ""; + const char *suffix; CompressFileType method; CompressFileType second; @@ -11127,7 +11125,7 @@ int HText_SubmitForm(FormInfo * submit_item, DocInfo *doc, char *escaped1 = NULL; char *escaped2 = NULL; char *last_textarea_name = NULL; - const char *name_used = ""; + const char *name_used; char *previous_blanks = NULL; const char *val_used = ""; int anchor_count = 0; @@ -13167,7 +13165,7 @@ static char *readEditedFile(char *ed_temp) return ebuf; } -static int finish_ExtEditForm(LinkInfo * form_link, TextAnchor *start_anchor, +static int finish_ExtEditForm(LinkInfo *form_link, TextAnchor *start_anchor, char *ed_temp, int orig_cnt) { @@ -13401,7 +13399,7 @@ static int finish_ExtEditForm(LinkInfo * form_link, TextAnchor *start_anchor, * * --KED 02/01/99 */ -int HText_EditTextArea(LinkInfo * form_link) +int HText_EditTextArea(LinkInfo *form_link) { char *ed_temp; FILE *fp; @@ -13494,7 +13492,7 @@ int HText_EditTextArea(LinkInfo * form_link) /* * Similar to HText_EditTextArea, but assume a single-line text field -TD */ -void HText_EditTextField(LinkInfo * form_link) +void HText_EditTextField(LinkInfo *form_link) { char *ed_temp; FILE *fp; @@ -13556,7 +13554,7 @@ void HText_EditTextField(LinkInfo * form_link) * * --KED 02/14/99 */ -void HText_ExpandTextarea(LinkInfo * form_link, int newlines) +void HText_ExpandTextarea(LinkInfo *form_link, int newlines) { TextAnchor *anchor_ptr; TextAnchor *end_anchor = NULL; @@ -13639,7 +13637,7 @@ void HText_ExpandTextarea(LinkInfo * form_link, int newlines) * * --KED 02/21/99 */ -int HText_InsertFile(LinkInfo * form_link) +int HText_InsertFile(LinkInfo *form_link) { struct stat stat_info; size_t size; |