1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

[svn] html-url.c: A bunch of fixup of `--page-requisites'-related comments to reflect

Hrvoje's changes to my code when transplanting it into this new file, to fix
spelling mistakes, to clarify, etc.
This commit is contained in:
dan 2001-01-09 18:54:52 -08:00
parent bc5fd29baf
commit 040aae87b5
2 changed files with 9 additions and 9 deletions

View File

@ -1,6 +1,8 @@
2001-01-09 Dan Harkless <wget@harkless.org> 2001-01-09 Dan Harkless <wget@harkless.org>
* html-url.c: Addition and clarification of comments related to -p. * html-url.c: A bunch of fixup of `--page-requisites'-related
comments to reflect Hrvoje's changes to my code when transplanting
it into this new file, to fix spelling mistakes, to clarify, etc.
* url.c (write_backup_file): Clarified a comment. * url.c (write_backup_file): Clarified a comment.

View File

@ -165,7 +165,7 @@ init_interesting (void)
/* Normally here we could say: /* Normally here we could say:
interesting_tags[i] = name; interesting_tags[i] = name;
But we need to respect the settings of --ignore-tags and But we need to respect the settings of --ignore-tags and
--follow-tags, so the code gets a bit harier. */ --follow-tags, so the code gets a bit hairier. */
if (opt.ignore_tags) if (opt.ignore_tags)
{ {
@ -175,8 +175,7 @@ init_interesting (void)
through if there's no match. */ through if there's no match. */
int j, lose = 0; int j, lose = 0;
for (j = 0; opt.ignore_tags[j] != NULL; j++) for (j = 0; opt.ignore_tags[j] != NULL; j++)
/* Loop through all the tags this user doesn't care /* Loop through all the tags this user doesn't care about. */
about. */
if (strcasecmp(opt.ignore_tags[j], name) == EQ) if (strcasecmp(opt.ignore_tags[j], name) == EQ)
{ {
lose = 1; lose = 1;
@ -188,8 +187,8 @@ init_interesting (void)
if (opt.follow_tags) if (opt.follow_tags)
{ {
/* --follow-tags was specified. Only match these specific /* --follow-tags was specified. Only match these specific tags, so
tags, so return FALSE if we don't match one of them. */ continue back to top of for if we don't match one of them. */
int j, win = 0; int j, win = 0;
for (j = 0; opt.follow_tags[j] != NULL; j++) for (j = 0; opt.follow_tags[j] != NULL; j++)
/* Loop through all the tags this user cares about. */ /* Loop through all the tags this user cares about. */
@ -199,12 +198,11 @@ init_interesting (void)
break; break;
} }
if (!win) if (!win)
continue; /* wasn't one of the explicitly continue; /* wasn't one of the explicitly desired tags */
desired tags */
} }
/* If we get to here, --follow-tags isn't being used or the /* If we get to here, --follow-tags isn't being used or the
tag is among the ones that are follwed, and --ignore-tags, tag is among the ones that are followed, and --ignore-tags,
if specified, didn't include this tag, so it's an if specified, didn't include this tag, so it's an
"interesting" one. */ "interesting" one. */
interesting_tags[ind++] = name; interesting_tags[ind++] = name;