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
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
c3075a1e21 Introduce nullability support for clang's static analyzer
* configure.ac: Add -Wno-nullability-extension -Wno-nullability-completeness to WARN_CFLAGS
* include/wget/wget.h: Add CLANG_VERSION_AT_LEAST,
  fix attribute defines for clang,
  make use of attributes by using static inline functions for wget allocation,
  define NULLABLE for clang
* libwget/xalloc.c: Rename wget allocation function pointers
* src/options.c: Likewise
* unit-tests/test.c: Likewise
2019-08-16 15:24:19 +02:00
fcd1d022a9 Typedef wget_* alloc functions not as pointer
* include/wget/wget.h: Remove '*' signature from function typedefs
* libwget/xalloc.c: Amend declarations
2019-07-17 12:30:08 +02:00
5b80d9c678 Make wget allocation functions overridable function pointers
* include/wget/wget.h: Remove allocation function prototypes,
  add function pointer types and 'extern' globals
* libwget/private.h: Use wget_free() instead of free()
* libwget/xalloc.c: Remove function definitions,
  add global function pointer variables
* src/options.c: Add own allocation functions
* unit-tests/test.c: Test that function pointers are overridable
2019-06-19 16:14:53 +02:00
1e53b65110 Change OOM callback implementation 2019-06-19 16:14:26 +02:00
cdb3600791 Update copyrigght to 2019 2019-01-02 12:42:53 +01:00
89d7eae431 Extend OOM handling
* include/wget/wget.h: Amend type of wget_oom_callback_t
* libwget/xalloc.c: Amend OOM handling
* src/options.c (_no_memory): Return EXIT_FAILURE
* unit-tests/test.c (main): Cast to avoid warning

The OOM callback can now return 0 and the allocation function is tried again.
2018-07-15 12:56:27 +02:00
3688ffb941 Update copyright to 2018 2018-04-30 20:52:11 +02:00
39d9f34cb8 * libwget/xalloc.c: Satisfy syntax-check 2017-05-03 14:57:59 +02:00
7c1bebf9a0 Add new function wget_free()
* examples/check_url_types.c: Use wget_xfree() instead of free()
* examples/http_get2.c: Likewise
* examples/print_css_urls2.c: Likewise
* examples/print_html_urls.c: Likewise
* include/wget/wget.h: Add wget_free() and define wget_xfree()
* libwget/xalloc.c: Implement wget_free()

* include/wget/wget.h: Add declaration for wget_free()
* libwget/xalloc.c: Implement wget_free()
2017-05-03 14:47:04 +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
3ad7f8991c * libwget/xalloc.c (wget_calloc): Init *p explicit (_noreturn issue) 2017-03-23 16:35:39 +01:00
fb37b457d0 * libwget/xalloc.c (wget_realloc): Initialize variable p to NULL 2017-03-23 14:48:34 +01:00
ec396c577f Fix URLs to HTTPS where possible 2017-02-28 15:31:30 +01:00
18dfa9f39e * libwget/xalloc.c (wget_realloc): Call OOM callback if size is 0 2016-11-07 16:07:26 +01:00
9568b0c87e Rename include/libwget.h to include/wget/wget.h+wgetver.h 2016-09-30 09:47:32 +02:00
cd829f677b Do not inline _no_memory()
* libwget/xalloc.c: Remove _GL_INLINE from _no_memory()
2016-06-14 12:43:05 +02:00
3c06477e12 Add docs for memory functions
* libwget/xalloc.c: Convert GTK-DOC format into Doxygen
* docs/Makefile.am: Add rule for man pages
2016-02-06 21:17:09 +01:00
dd3c2f63b2 Updated copyright year for all relevant files 2016-01-25 13:06:21 +01:00
f2c5bfa961 Add gnulib module inline
* autogen.sh: Add gnulib module inline
* configure.ac: Remove AC_C_INLINE
* libwget/hashmap.c: Replace inline by _GL_INLINE
* libwget/iri.c: Replace inline by _GL_INLINE
* libwget/ssl_gnutls.c: Replace inline by _GL_INLINE
* libwget/utils.c: Replace inline by _GL_INLINE
* libwget/xalloc.c: Replace inline by _GL_INLINE,
  include config.h
2016-01-12 17:35:39 +01:00
2ff0ba9852 Add gnulib modules calloc-posix, malloc-posix, realloc-posix
* autogen.sh: Add gnulib modules calloc-posix, malloc-posix, realloc-posix
* configure.ac: Remove two comment lines
* libwget/xalloc.c: Remove rpl_malloc() and rpl_realloc()
2016-01-12 17:17:24 +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