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

[svn] Remove ws_help; it doesn't make sense to invoke the help browser for

--help.
This commit is contained in:
hniksic 2004-02-22 07:45:59 -08:00
parent f7193075df
commit eef22ee91e
4 changed files with 8 additions and 26 deletions

View File

@ -1,3 +1,11 @@
2004-02-20 David Fritz <zeroxdf@att.net>
* main.c (print_help): Remove call to ws_help().
* mswindows.c (ws_help): Remove.
* mswindows.h (ws_help): Remove.
2004-02-16 David Fritz <zeroxdf@att.net>
* init.c (home_dir): Use aprintf() instead of xmalloc()/sprintf().

View File

@ -621,9 +621,6 @@ Recursive accept/reject:\n"),
for (i = 0; i < countof (help); i++)
fputs (_(help[i]), stdout);
#ifdef WINDOWS
ws_help (exec_name);
#endif
exit (0);
}

View File

@ -221,28 +221,6 @@ ws_mypath (void)
return wspathsave;
}
void
ws_help (const char *name)
{
char *mypath = ws_mypath ();
if (mypath)
{
struct stat sbuf;
char *buf = (char *)alloca (strlen (mypath) + strlen (name) + 4 + 1);
sprintf (buf, "%s%s.HLP", mypath, name);
if (stat (buf, &sbuf) == 0)
{
printf (_("Starting WinHelp %s\n"), buf);
WinHelp (NULL, buf, HELP_INDEX, 0);
}
else
{
printf ("%s: %s\n", buf, strerror (errno));
}
}
}
void
ws_startup (void)
{

View File

@ -159,7 +159,6 @@ void ws_startup (void);
void ws_changetitle (const char*, int);
void ws_percenttitle (double);
char *ws_mypath (void);
void ws_help (const char *);
void windows_main_junk (int *, char **, char **);
/* Things needed for IPv6; missing in <ws2tcpip.h>. */