188989e067
Update copyright year
2024-01-07 12:41:02 +01:00
15ba1db248
Update copyrights
2023-08-31 12:57:30 +02:00
3dc7f71098
Update copyright year
2022-02-25 17:46:43 +01:00
22162f82b2
Update copyright year
2021-01-22 21:58:38 +01:00
59d9ecd9c0
* Update copyright year to 2020
2020-01-10 00:33:02 +01:00
4b9edbad2d
Update Copyright statements to be compatible with update-copyright module
2019-09-10 23:41:56 +02:00
7cda37f090
* libwget/css.c (wget_css_parse_file): Use stack memory for wget_buffer
2019-08-21 21:46:20 +02:00
cc6b128160
Rename CSS parse callback types
...
* include/wget/wget.h: Rename CSS parse callback types
* libwget/css.c: Likewise
2019-08-12 11:34:37 +02:00
db50c6a801
Rename wget_buffer_t -> wget_buffer
...
* include/wget/wget.h: Rename wget_buffer_t -> wget_buffer
* examples/*.c: Likewise
* fuzz/libwget_iri_fuzzer.c: Likewise
* libwget/*.c: Likewise
* src/*.c: Likewise
* tests/*.c: Likewise
* unit-tests/*.c: Likewise
2019-07-18 12:30:57 +02:00
6e7bd8cf55
Typedef CSS parse functions not as pointer
...
* include/wget/wget.h: Remove '*' signature from function typedefs
* libwget/css.c: Amend casts and variable types
2019-07-17 15:04:26 +02:00
5bc488bbac
Fix several forgotten xmalloc -> wget_malloc
...
* libwget/css.c (wget_css_parse_file): Rename xmalloc->wget_malloc
* libwget/hashfile.c (wget_hash_init): Likewise
* libwget/ssl_gnutls.c (_cert_verify_hpkp): Likewise
* libwget/xml.c (wget_xml_parse_file): Likewise
2019-06-21 11:42:01 +02:00
cdb3600791
Update copyrigght to 2019
2019-01-02 12:42:53 +01:00
3688ffb941
Update copyright to 2018
2018-04-30 20:52:11 +02:00
b0579db097
Fix several issues foudn by cppcheck
...
* libwget/bar.c (_wget_bar_st): Remove unused member screen_width
* libwget/css.c: Reduce scope of variables
* libwget/encoding.c: Likewise
* libwget/hpkp.c: Likewise
* libwget/http.c: Likewise
* libwget/http_parse.c: Likewise
* libwget/iri.c: Likewise
* libwget/net.c: Likewise
* libwget/sitemap_url.c: Likewise
* libwget/ssl_gnutls.c: Likewise
* libwget/vector.c: Likewise
* src/dl.c: Likewise
2017-12-06 11:15:08 +01:00
e801ee3c7b
Fix clang warnings
...
* libwget/css.c (wget_css_parse_buffer): Explicitly typecast 'len' to int
* libwget/http.c (_send_callback): Change datatype of 'rc' from int to ssize_t
* libwget/http.c (_recv_callback): Likewise
* libwget/http.c (wget_http_match_no_proxy): Change param name from 'no_proxies' to
'no_proxies_vec' to not to shadow global 'no_proxies'
* libwget/ssl_gnutls.c (check_ocsp_response): Explicit type conversion to unsigned int
* libwget/net.c (wget_tcp_listen): Move declaration of variable 'on' in #ifdef block where it's used
* src/options.c (set_long_option): Change datatypes of 'invert', 'char_insensitive'
and 'value_present' from int to char
Reported-by: Avinash Sonawane
2017-07-28 11:22:41 +02:00
664faf2305
* libwget/css.c (wget_css_parse_buffer): Fix length calculation
2017-06-14 21:25:35 +02:00
d9af6d266f
Open files in binary mode where needed
...
* examples/websequencediagram.c: Use binary mode on file open
* libwget/css.c: Likewise
* libwget/hashfile.c: Likewise
* libwget/http_highlevel.c: Likewise
* libwget/io.c: Likewise
* libwget/xml.c: Likewise
* src/job.c: Likewise
* src/options.c: Likewise
* src/wget.c: Likewise
* tests/libtest.c: Likewise
* tests/stringmap_perf.c: Likewise
This fixes discrepancies between stat/st_size and read bytes on
MinGW / Wine / Windows.
2017-05-20 22:03:45 +02:00
c6ee3d79ad
Fix syntax-check 'sc_prohibit_have_config_h'
...
* cfg.mk: Remove sc_prohibit_have_config_h from local-checks-to-skip
* libwget/*.c: Include <config.h> unconditionally
* src/*.c: Likewise
* tests/*.c: Likewise
2017-04-30 22:01:34 +02:00
56efdab1a7
Remove trailing whitespaces (syntax-check)
2017-04-29 20:51:32 +02:00
58f1274808
Do not include unused strings.h
...
* examples/getstream.c: Remove #include <strings.h>
* libwget/css.c: Likewise
* libwget/encoding.c: Likewise
* libwget/hashfile.c: Likewise
* libwget/metalink.c: Likewise
* libwget/net.c: Likewise
* libwget/robots.c: Likewise
* src/wget.c: Likewise
2017-04-29 20:24:19 +02:00
31762cc633
Added support for html css style tag and attribute
...
* include/wget/wget.h: Add 'size_t len' to wget_css_parse_buffer()
and wget_css_get_urls()
* libwget/css.c (wget_css_parse_buffer): Use yy_scan_bytes() instead
of yy_scan_string()
* libwget/css_url.c: Add param to wget_css_get_urls() and
wget_css_parse_buffer()
* libwget/html_url.c: Add _css_parse_encoding() and _css_parse_uri(),
(_html_get_url): Deal with 'style' attribute,
(wget_html_free_urls_inline): Free url if needed
* libwget/test_linking.c: Add param to wget_css_parse_buffer()
* libwget/xml.c (parseXML): Add check for 'style'
* src/wget.c (css_parse): Add param 'size_t len'
* tests/Makefile.am: Add new test test-parse-html-css
* tests/test-parse-html-css.c: New file
2017-04-13 10:06:25 +02:00
ec396c577f
Fix URLs to HTTPS where possible
2017-02-28 15:31:30 +01:00
bfcd65c12b
Use typedefs for function pointer arguments
...
* include/wget/wget.h: Add typedefs
* libwget/cookie.c: Use typedefs
* libwget/css.c: Likewise
* libwget/css_url.c: Likewise
* libwget/decompressor.c: Likewise
* libwget/hashmap.c: Likewise
* libwget/hsts.c: Likewise
* libwget/http.c: Likewise
* libwget/init.c: Likewise
* libwget/io.c: Likewise
* libwget/list.c: Likewise
* libwget/logger.c: Likewise
* libwget/metalink.c: Likewise
* libwget/net.c: Likewise
* libwget/netrc.c: Likewise
* libwget/ocsp.c: Likewise
* libwget/private.h: Likewise
* libwget/robots.c: Likewise
* libwget/stringmap.c: Likewise
* libwget/tls_session.c: Likewise
* libwget/vector.c: Likewise
* libwget/xml.c: Likewise
* src/blacklist.c: Likewise
* src/host.c: Likewise
* src/options.c: Likewise
* src/wget.c: Likewise
* tests/stringmap_perf.c: Likewise
* tests/test.c: Likewise
2017-01-23 14:43:17 +01:00
9568b0c87e
Rename include/libwget.h to include/wget/wget.h+wgetver.h
2016-09-30 09:47:32 +02:00
e274a54b05
Use libwget alloc functions in CSS parser
...
* libwget/css.c: New wrapper functions yyalloc() and yyrealloc()
* libwget/css_tokenizer.lex: Set options noyyalloc and noyyrealloc
2016-09-20 12:48:01 +02:00
dd3c2f63b2
Updated copyright year for all relevant files
2016-01-25 13:06:21 +01:00
dbc9e54a24
Use c-ctype.h where possible
...
* libwget/atom_url.c, libwget/buffer_printf.c, libwget/css.c,
libwget/html_url.c, libwget/http.c, libwget/rss_url.c, libwget/sitemap_url.c,
src/options.c src/wget.c, tests/libtest.c, tests/test-parse-html.c:
Use c-ctype.h where possible
2016-01-13 11:34:31 +01:00
1e8c3848d0
Call wget_str(n)casecmp_ascii instead of str(n)casecmp
...
* examples/print_css_urls2.c, libwget/cookie.c, libwget/css.c,
libwget/html_url.c, libwget/http.c, libwget/iri.c, libwget/metalink.c,
libwget/net.c, libwget/robots.c, libwget/ssl_gnutls.c,
libwget/stringmap.c, libwget/xml.c, src/job.c, src/options.c, src/wget.c:
Call wget_str(n)casecmp_ascii instead of str(n)casecmp
2016-01-11 16:26:25 +01:00
0f8e49128a
Transfer copyright to Free Software Foundation, Inc.
2015-09-22 11:50:06 +02:00
c6b0e461a1
Transform Mget into Wget
2015-09-19 22:54:38 +02:00