Commit Graph

28 Commits

Author SHA1 Message Date
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
1e6412bd48 * libwget/printf.c (wget_vsnprintf): Fix size in call to wget_buffer_init 2020-02-25 16:52:26 +01:00
761a141644 * libwget/printf.c (wget_printf): Optimize code 2020-02-25 11:44:53 +01:00
59d9ecd9c0 * Update copyright year to 2020 2020-01-10 00:33:02 +01:00
979fbe56d3 Don't call libwget as Wget / Wget2.
Functions in Libwget may be called from other client applications as
well. They should not report that the job was done by Wget / Wget2, but
instead they should state that it was doen by libwget.

* libwget/bar.c(_bar_update): Remove reference to Wget
* libwget/list.c: Same
* libwget/cookie.c(cookie_db_save): Wget -> libwget
* libwget/error.c(wget_strerror): Same
* libwget/hpkp_db.c(hpkp_db_save): Same
* libwget/hsts.c(hsts_db_save): Same
* libwget/ocsp.c(ocsp_db_save_hosts): Same
* libwget/printf.c: Same
* libwget/ssl_gnutls.c(wget_ssl_open: Same
* libwget/tls_session.c(tls_session_db_save): Same
2019-09-14 11:33:52 +02:00
4b9edbad2d Update Copyright statements to be compatible with update-copyright module 2019-09-10 23:41:56 +02:00
54c32f5627 Cleanup + amend return vales of buffer functions
* include/wget/wget.h: Add wget_buffer.error
* libwget/buffer.c: Amend docs,
  change return type of wget_buffer_init(),
  amend wget_buffer_alloc(),
  set buf.error in _buffer_realloc()
* libwget/printf.c: Check buf.error, return (size_t)-1
* unit-tests/test.c: Amend tests appropriately
2019-08-21 21:46:20 +02:00
3369b68b56 Remove variadic macro for wget_printf()
* include/wget/wget.h: Remove variadic macro for wget_printf(),
  add prototype for wget_printf()
* libwget/printf.c Implement wget_printf(),
  fix some wrongly documented return types
2019-08-12 16:17:05 +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
b381286783 Remove xrealloc define for wget_realloc
* libwget/private.h: Remove #define
* libwget/*.c: Replace xrealloc by wget_realloc
2019-06-20 16:51:57 +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
62ea505f64 Use libwget's print-like functions instead the stdio ones
* include/wget/wget.h: Amend return type of wget_bar_print(), wget_bar_vprintf()
* libwget/Makefile.am: Replace fprintf in generated css_tokenizer.c
* libwget/bar.c: Replace *printf by wget_*printf,
  (_bar_set_progress): Generate progress bar with memcpy/memset
* libwget/hpkp.c: Replace *printf by wget_*printf
* libwget/cookie.c: Likewise
* libwget/hpkp.c: Likewise
* libwget/hsts.c: Likewise
* libwget/http.c: Likewise
* libwget/http_parse.c: Likewise
* libwget/io.c: Likewise
* libwget/net.c: Likewise
* libwget/ocsp.c: Likewise
* libwget/pipe.c: Likewise
* libwget/ssl_gnutls.c: Likewise
* libwget/utils.c: Likewise
* libwget/xml.c: Likewise

The intention is to not pull in (large) code parts from libc when
linking statically, the performance is better and we have no
portability issues on non-POSIX platforms (e.g. Windows).
2018-03-28 19:24:28 +02:00
0489582cb9 Add more printf-like functions
* include/wget/wget.h: Add wget_vfprintf(), wget_fprintf(),
  wget_vsnprintf(), wget_snprintf()
* libwget/printf.c: Likewise
2018-03-28 15:40:41 +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
b4f96175b4 Fix documentation of wget_vaprintf and wget_aprintf
* libwget/printf.c: Both functions do not return NULL.
2017-03-29 21:03:02 +02:00
ec396c577f Fix URLs to HTTPS where possible 2017-02-28 15:31:30 +01:00
43f30f309e Rename wget_str_[v]asprintf to wget_[v]aprintf
* include/wget/wget.h: Rename wget_str_[v]asprintf to wget_[v]aprintf
* libwget/http.c: Likewise
* libwget/iri.c: Likewise
* libwget/printf.c: Likewise
* libwget/vector.c: Likewise
* src/options.c: Likewise
* tests/test-metalink.c: Likewise
2016-12-21 11:54:36 +01:00
9568b0c87e Rename include/libwget.h to include/wget/wget.h+wgetver.h 2016-09-30 09:47:32 +02:00
49f29381d0 Add docs for printf functions
* libwget/printf.c: Convert GTK-DOC format into Doxygen
* docs/Makefile.am: Add rule for man pages
2016-02-06 21:36:36 +01:00
0ecbd6e69a Removed redundant buffer print routines
Removed wget_buffer_vprintf_append, wget_buffer_printf_append,
wget_buffer_vprintf2 and wget_buffer_printf2.
Renamed their *2 counterpart to their old names.
2016-01-13 15:01:43 +01:00
31f0fc0190 Added printf-style functions
* libwget/printf.c: New file
* docs/libwget/Makefile.am: Add libwget-printf.3
* docs/libwget/libwget-docs.sgml: Add printf section
* docs/libwget/libwget-sections.txt: Add SECTION libwget-printf
* include/libwget.h.in: Add function prototypes
* libwget/Makefile.am: Add printf.c
* libwget/base64.c, libwget/http.c, libwget/iri.c, libwget/logger.c,
  libwget/md5.c, libwget/vector.c, src/options.c:
  Use new functions instead of asprintf/vasprintf
2016-01-13 13:33:51 +01:00
a2e486f2b6 Remove libwget/printf.c
* configure.ac: Remove check for dprintf
* include/libwget.h.in: Remove dprintf/vdprintf prototypes
* libwget/Makefile.am: Remove printf.c from file list
* libwget/printf.c: Remove file
2016-01-11 13:30:56 +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