📄 1.6_branch.changelog
字号:
(gethttp): Use it. * utils.c (unique_name_1): Moved from url.c. (unique_name): Ditto. * url.c (url_filename): Ditto. * log.c (redirect_output): Changed call to unique_name(). * url.c (unique_name_1): Renamed from unique_name(). (unique_name): Changed interface. * init.c (enum cmdid): Moved from init.h. (cmdtype): Ditto. (struct cmd): Ditto. * main.c (main): Use it. (main): Moved `--backups' to not have a short option. * options.h (struct options): New member BACKGROUND. * main.c (print_help): Rearranged. (main): New long options for -n* short options: --no-directories, --no-host-directories, --non-verbose, --no-host-lookup and --dont-remove-listing.1998-02-01 Hrvoje Niksic <hniksic@srce.hr> * main.c (main): Use log_close(). * log.c: New variable LOGFP. (vlogmsg): Use it. (redirect_output): Don't open /dev/null; set LOGFP to stdin instead. (log_close): New function. * options.h (struct options): Removed LFILE. * log.c (log_enable): Removed. * main.c (main): Use it. * log.c (log_init): New function. * url.c (get_urls_html): Removed needless assignment to BASE. * host.c (add_hlist): Don't set CMP needlessly. * utils.c (match_backwards): Ditto. (in_acclist): Ditto. * url.c (findurl): Ditto. * netrc.c (parse_netrc): Ditto. * log.c (log_dump): Ditto. * html.c (html_quote_string): Ditto. * ftp-basic.c (ftp_request): Made static. * connect.c: Made global variables static. * url.c (construct): Ditto. * init.c (init_path): Avoid assignment inside `if'-condition. * ftp.c: Don't include in.h or winsock.h. * ftp.c (ftp_loop): Use SZ. * connect.c (bindport): Cast &addrlen to int *. (conaddr): Ditto. * init.c (initialize): Don't use SYSTEM_WGETRC unconditionally.1998-01-31 Hrvoje Niksic <hniksic@srce.hr> * ftp.c (getftp): Initialize opt.ftp_pass here. (ftp_retrieve_dirs): Use alloca(). * init.c (defaults): Don't initialize opt.ftp_pass. * sysdep.h (S_ISLNK): Declare for OS/2; ditto for lstat. From Ivan F. Martinez <ivanfm@ecodigit.com.br>.1998-01-31 Hrvoje Niksic <hniksic@srce.hr> * recur.c (parse_robots): Check for comments more correctly. * host.c (ftp_getaddress): Use STRDUP_ALLOCA. (ftp_getaddress): Add diagnostics when reverse-lookup yields only hostname.1998-01-31 Hrvoje Niksic <hniksic@srce.hr> * version.c: Wget 1.5-b2 is released. * netrc.c (NETRC_FILE_NAME): Moved from netrc.h. * utils.c (proclist): Pass FNM_PATHNAME to fnmatch(). * ftp-basic.c (ftp_pasv): Avoid unnecessary casting to unsigned char. * log.c: Don't attempt to hide arguments from ansi2knr. * cmpt.c: Synched strptime() and mktime() with glibc-2.0.6. * ansi2knr.c: Use a later version, from fileutils-3.16l alpha. * ftp.c (getftp): Ditto. * http.c (gethttp): Use it. * retr.c (get_contents): New argument EXPECTED; pass it to show_progress(). (show_progress): New argument EXPECTED; use it to display percentages. * init.c (setval): Ditto. * http.c (gethttp): Ditto. (http_loop): Ditto. * ftp.c (getftp): Ditto. (ftp_loop_internal): Ditto. * ftp-ls.c (ftp_parse_unix_ls): Use abort() instead of assert(0). * sysdep.h (CLOSE): Simplify; use DEBUGP. * netrc.c (search_netrc): Use alloca(). * init.c (defaults): Initialize no_flush. * log.c (vlogmsg): Don't flush if no_flush. * options.h (struct options): New variable no_flush. * main.c (main): Don't play games with buffering. * log.c (vlogmsg): Flush the output after every message.1998-01-31 Hrvoje Niksic <hniksic@srce.hr> * init.c (parse_line): Ditto. * url.c (get_urls_html): Ditto. * main.c (main): Don't cast to unsigned char. * init.c (run_wgetrc): Don't cast to unsigned char. (parse_line): Accept char instead of unsigned char. * html.c (htmlfindurl): Use char instead of unsigned char. * all: Use them. * sysdep.h: Add wrappers to ctype macros to make them eight-bit-clean:1998-01-30 Hrvoje Niksic <hniksic@srce.hr> * html.c (htmlfindurl): Download <img lowsrc=...> * main.c (main): Ignore SIGPIPE. * connect.c (select_fd): New argument WRITEP. (iwrite): Call select_fd().1997-02-27 Fila Kolodny <fila@ibi.com> * ftp.c (ftp_retrieve_list): If retrieving symlink and the proper one already exists, just skip it.1998-01-30 Hrvoje Niksic <hniksic@srce.hr> * http.c (gethttp): Cosmetic changes. * http.c (check_end): Allow `+D...' instead of `GMT'. From Fabrizio Pollastri <pollastri@cstv.to.cnr.it>. * url.c (process_ftp_type): New function. (parseurl): Use it. * connect.c (iwrite): Allow writing in a few chunks. (bindport): Made SRV static, so addr can point to it. (select_fd): Removed HPUX kludge. * host.c (free_hlist): Incorporated into clean_hosts().1998-01-29 Hrvoje Niksic <hniksic@srce.hr> * host.c (hlist): Made static. (search_address): Cosmetic change.1998-01-29 Hrvoje Niksic <hniksic@srce.hr> * version.c: Wget v1.5-b1 is released. * http.c (hgetlen): Use sizeof() to get the header length. (hgetrange): Ditto. (hgettype): Ditto. (hgetlocation): Ditto. (hgetmodified): Ditto. (haccepts_none): Ditto. * main.c (main): Updated `--version' and `--help' output, as per Francois Pinard's suggestions. * main.c: Include locale.h; call setlocale(), bindtextdomain() and textdomain(). * config.h.in: Define stubs for I18N3. * wget.h: Include libintl.h.1998-01-28 Hrvoje Niksic <hniksic@srce.hr> * url.c (mkstruct): Check for opt.cut_dirs. (mkstruct): alloca()-te more, xmalloc() less. * utils.c (load_file): Check for ferror(). * url.c (get_urls_file): Close only the files we opened. (get_urls_html): Ditto. (count_slashes): New function. * http.h: Removed. * http.c (gethttp): Respect username and password provided by proxy URL. (base64_encode_line): Write into an existing buffer instead of malloc-ing a new one. (struct http_stat): Moved from http.h * retr.c (retrieve_url): Free SUF. * all: Removed lots of unnecessary .h dependencies. * html.c (global_state): Made static. * utils.h (ALLOCA_ARRAY): New macro. * main.c (main): New option `--cut-dirs'. * url.c (construct): Use alloca() for T. * utils.c (mkdirhier): Use STRDUP_ALLOCA. * host.c (_host_t): Moved from host.h. (struct host): Renamed from _host_t. (store_hostaddress): Use STRDUP_ALLOCA for INET_S. (realhost): Ditto. * host.h: Don't include url.h. * ftp.c (LIST_FILENAME): Moved from ftp.h. * init.c (DEFAULT_FTP_ACCT): Moved from ftp.h. * main.c (main): Enable log if the output goes to a TTY. * connect.h: Removed unused constant `BACKLOG'. * config.h.in: Check for isatty(). * Makefile.in (LINK): Use CFLAGS when linking.1998-01-27 Hrvoje Niksic <hniksic@srce.hr> * mswindows.c (ws_hangup): Use redirect_output(). * main.c (redirect_output_signal): New function; use redirect_output(). * log.c (redirect_output): New function, based on hangup(), which is deleted. * log.c (vlogmsg): New function. * wget.h (DEBUGP): Use debug_logmsg(). * main.c (hangup): Use it. * log.c (log_dump): New function. * utils.h (DO_REALLOC): Use `long' for various sizes. * http.c (hskip_lws): Use `while', for clarity. (HTTP_DYNAMIC_LINE_BUFFER): New constant. (fetch_next_header): Use it instead of DYNAMIC_LINE_BUFFER. * ftp-basic.c (FTP_DYNAMIC_LINE_BUFFER): New constant. (ftp_response): Use it instead of DYNAMIC_LINE_BUFFER. * utils.c (DYNAMIC_LINE_BUFFER): Moved from utils.c. (LEGIBLE_SEPARATOR): Ditto. (FILE_BUFFER_SIZE): Ditto. * retr.c (BUFFER_SIZE): Moved from retr.h. * log.c: New file. (logmsg): Moved from utils.c. (debug_logmsg): New function. * mswindows.h: Include it here. * init.c: Ditto. * utils.c: Don't include <windows.h>.1998-01-25 Hrvoje Niksic <hniksic@srce.hr> * host.c (ftp_getaddress): Ditto. * main.c (main): Use it. * utils.h (STRDUP_ALLOCA): New macro. * init.c: Prepend `wget: ' to error messages printed on stderr. * utils.c (mkdirhier): Renamed from mymkdir. (touch): Renamed from my_touch. (pwd_cuserid): Renamed from my_cuserid().1998-01-24 Andy Eskilsson <andy.eskilsson@telelogic.se> * utils.c (accdir): Process wildcards. (proclist): New function. (accdir): Use it to avoid code repetition.1998-01-24 Hrvoje Niksic <hniksic@srce.hr> * recur.c (parse_robots): Respect opt.useragent; use alloca(). * http.c (gethttp): Construct useragent accordingly. * version.c: Changed version string to numbers-only. * main.c (print_help): List all the options. * mswindows.c (windows_main_junk): Initialize argv0 here.1998-01-24 Karl Heuer <kwzh@gnu.org> * netrc.c (search_netrc): Initialize `l' only after processing netrc. * main.c (main): Don't trap SIGHUP if it's being ignored.1998-01-24 Hrvoje Niksic <hniksic@srce.hr> * all: Use logmsg(). * utils.c (time_str): Moved from retr.c. (logmsg): New function. (logmsg_noflush): Ditto. * rbuf.c: New file, moved buf_* functions here. * ftp.c (ftp_expected_bytes): Moved from ftp-basic.c. * ftp-basic.c (ftp_rest): Use prnum(). * ftp-basic.c: Ditto. * ftp.c: Use the new reading functions and macros. * retr.c (buf_initialize): New function. (buf_initialized_p): Ditto. (buf_uninitialize): Ditto. (buf_fd): Ditto. * http.c (fetch_next_header): Use the BUF_READCHAR macro for efficiency. (gethttp): Use alloca() where appropriate. * retr.c (buf_readchar): Use it. (buf_peek): Use rstreams. * retr.h (BUF_READCHAR): New macro. * init.c (home_dir): Rewritten for clarity. (init_path): Ditto. * mswindows.c (ws_backgnd): Made static. (read_registry): Ditto. (ws_cleanup): Ditto. (ws_handler): Ditto.1998-01-23 Hrvoje Niksic <hniksic@srce.hr> * alloca.c: New file. * Makefile.in (ALLOCA): Define. * mswindows.c (ws_help): Constify. (ws_help): Use alloca. * mswindows.c: Reformat. * all: Added _(...) annotations for I18N snarfing and translation. * host.c (ftp_getaddress): Nuke SYSINFO. (ftp_getaddress): Don't use getdomainname(). (ftp_getaddress): Use uname(), where available. * http.c (gethttp): Protect a stray fprintf(). * init.c (settime): New function. (setval): Treat WAIT specially, allowing suffixes like `m' for minutes, etc.1998-01-21 Hrvoje Niksic <hniksic@srce.hr> * url.c (get_urls_html): Use alloca() for TEMP.1998-01-21 Jordan Mendelson <jordy@wserv.com> * url.c (rotate_backups): New function. * http.c (gethttp): Ditto. * ftp.c (getftp): Rotate backups.1997-12-18 Hrvoje Niksic <hniksic@srce.hr> * all: Renamed nmalloc(), nrealloc() and nstrdup() to xmalloc(), xrealloc() and xstrdup(). Use the new functions. * url.c (decode_string): Made static. (has_proto): Ditto. (parse_dir): Ditto. (parse_uname): Ditto. (mkstruct): Ditto. (construct): Ditto. (construct_relative): Ditto. * retr.c (show_progress): Made static. * recur.c (robots_url): Made static. (retrieve_robots): Ditto. (parse_robots): Ditto. (robots_match): Ditto. * main.h: Removed. * main.c (printhelp): Made static. (hangup): Ditto. * init.c (comind): Made static. (defaults): Ditto. (init_path): Ditto. (run_wgetrc): Ditto. (onoff): Ditto. (setonoff): Ditto. (setnum): Ditto. (myatoi): Ditto. (getperms): Ditto. (setbytes): Ditto. * http.c (fetch_next_header): Made static. (hparsestatline): Ditto. (hskip_lws): Ditto. (hgetlen): Ditto. (hgetrange): Ditto. (hgettype): Ditto. (hgetlocation): Ditto. (hgetmodified): Ditto. (haccepts_none): Ditto. (gethttp): Ditto. (base64_encode_line): Ditto. (mktime_from_utc): Ditto.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -