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

[svn] Re-alphabetize the command list. Have run_command correctly interpret

the new return value of parse_line.
This commit is contained in:
hniksic 2005-05-08 10:28:19 -07:00
parent 0b49b79bb7
commit 79c4490734
2 changed files with 11 additions and 6 deletions

View File

@ -1,3 +1,9 @@
2005-05-08 Hrvoje Niksic <hniksic@xemacs.org>
* init.c (run_command): Correctly interpret the return value of
parse_line.
(commands): Re-alphabetize.
2005-05-08 Hrvoje Niksic <hniksic@xemacs.org>
* netrc.c (parse_netrc): Explicitly check for assignment != NULL

View File

@ -159,8 +159,8 @@ static struct {
{ "forcehtml", &opt.force_html, cmd_boolean },
{ "ftppasswd", &opt.ftp_passwd, cmd_string }, /* deprecated */
{ "ftppassword", &opt.ftp_passwd, cmd_string },
{ "ftpuser", &opt.ftp_user, cmd_string },
{ "ftpproxy", &opt.ftp_proxy, cmd_string },
{ "ftpuser", &opt.ftp_user, cmd_string },
{ "glob", &opt.ftp_glob, cmd_boolean },
{ "header", &opt.user_headers, cmd_spec_header },
{ "htmlextension", &opt.html_extension, cmd_boolean },
@ -649,16 +649,15 @@ run_command (const char *opt)
{
char *com, *val;
int comind;
int status = parse_line (opt, &com, &val, &comind);
if (status == 1)
switch (parse_line (opt, &com, &val, &comind))
{
case line_ok:
if (!setval_internal (comind, com, val))
exit (2);
xfree (com);
xfree (val);
}
else if (status == 0)
{
break;
default:
fprintf (stderr, _("%s: Invalid --execute command `%s'\n"),
exec_name, opt);
exit (2);