summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* autoupdateKarl Berry2021-08-311-20/+0
|
* idx: add commentaryPaul Eggert2021-08-301-0/+20
| | | | | | * lib/idx.h: Add comments about ssize_t and strlen, in response to comments from Simon Josefsson in: https://lists.gnu.org/r/bug-gnulib/2021-08/msg00196.html
* attribute: keep up with gnulib-common.m4Paul Eggert2021-08-291-0/+8
| | | | | | * lib/attribute.h (ATTRIBUTE_DEALLOC, ATTRIBUTE_DEALLOC_FREE): New macros, aliases for the _GL_-prefixed macros added to gnulib-common.m4 last month.
* base32, base64: treat negative sizes as overflowsPaul Eggert2021-08-292-4/+8
| | | | | | | * lib/base64.c (base64_encode_alloc): * lib/base32.c (base32_encode_alloc): Treat negative sizes as overflows, for better compatibility with previous API.
* dfa: port to non-gnulibPaul Eggert2021-08-291-0/+1
| | | | | | | Suggested by Arnold Robbins in: https://lists.gnu.org/r/bug-gnulib/2021-08/msg00181.html * lib/dfa.h (_GL_ATTRIBUTE_DEALLOC) [!_GL_ATTRIBUTE_MALLOC]: Add missing definition.
* base32, base64: fix broken testsPaul Eggert2021-08-292-4/+0
| | | | | | | | | | | | Problem reported by Bruno Haible in: https://lists.gnu.org/r/bug-gnulib/2021-08/msg00170.html * lib/base32.c, lib/base64.c: Do not include verify.h, and omit all uses of ‘assume’. * modules/base32, modules/base64 (Depends-on): Remove verify. * tests/test-base32.c, tests/test-base64.c: Don’t pass out-of-range values to allocator, as converting them to idx_t relies on implementation-defined behavior that could trap.
* fma: Fix compilation error on Linux/sh4.Bruno Haible2021-08-291-0/+4
| | | | | * lib/fma.c (FUNC): Don't test for FE_DOWNWARD or FE_UPWARD when these rounding modes are not defined.
* sigabbrev_np, sigdescr_np: Fix compilation error on Linux/alpha.Bruno Haible2021-08-282-2/+2
| | | | | | | | * lib/sigabbrev_np.c (sigabbrev_np): When SIGINFO and SIGPWR have the same value, give precendence to SIGPWR. * lib/sigdescr_np.c (sigdescr_np): Likewise. * tests/test-sigabbrev_np.c (main): Likewise. * tests/test-sigdescr_np.c (main): Likewise.
* base32, base64: prefer signed to unsigned integersPaul Eggert2021-08-274-89/+81
| | | | | | | | | | | | | | | | | | | | * lib/base32.c, lib/base64.c: Include ialloc.h instad of stdlib.h. Include intprops.h, verify.h. * lib/base32.c (base32_encode, base32_encode_alloc, get_8, decode_8) (base32_decode_ctx, base32_decode_alloc_ctx): * lib/base32.h (struct base32_decode_context): * lib/base64.c (base64_encode_fast, base64_encode) (base64_encode_alloc, get_4, decode_4, base64_decode_ctx) (base64_decode_alloc_ctx): * lib/base64.h (struct base64_decode_context): * tests/test-base32.c (main): * tests/test-base64.c (main): Prefer signed to unsigned integers. * lib/base32.c (base32_encode_alloc): * lib/base64.c (base64_encode_alloc): Use simpler and more-direct check for overflow, removing a TODO. * lib/base32.h, lib/base64.h: Include idx.h instead of stddef.h. * modules/base32, modules/base64 (Depends-on): Add ialloc, verify.
* regex: also break glibc lib/regex.c link for nowPaul Eggert2021-08-271-0/+1
|
* autoupdateKarl Berry2021-08-271-1/+0
|
* regex: revert much of previous changePaul Eggert2021-08-263-60/+40
| | | | | Use a more-conservative change that syncs closer with glibc, and then merely marks regexec and __compat_regexec.
* regex: fix typo in previous patchPaul Eggert2021-08-261-3/+2
| | | | | Fix typo in previous patch. Somehow I managed to omit the main point of the patch....
* regex: use C99-style array arg syntaxPaul Eggert2021-08-264-41/+99
| | | | | | | | | | | | | | | | | | | | This should help with some static checking. Derived from a suggestion by Martin Sebor in: https://sourceware.org/pipermail/libc-alpha/2021-August/130336.html This also ports recent and relevant Glibc changes to Gnulib and prepares to copy back. * lib/cdefs.h (__ARG_NELTS): New macro. * lib/regex.c: Ignore -Wvla for the whole file. * lib/regex.h (_ARG_NELTS_, _Attr_access_): New macros. Ignore -Wvla when declaring regexec. * lib/regex.h (re_compile_pattern, re_search, re_search_2) (re_match, re_match_2, regcomp, regerror): Use _Attr_access_ where that could help static checking. * lib/regexec.c (regexec, __compat_regexec, re_copy_regs) (re_search_internal, proceed_next_node, push_fail_stack) (pop_fail_stack, set_regs, update_regs): Use __ARG_NELTS for each array parameter whose size is another arg, but which might be null.
* dfa: prefer idx_t to ptrdiff_t for nonnegativePaul Eggert2021-08-242-9/+10
| | | | | | | | * lib/dfa.c (struct dfa, dfaexec_main, dfaexec_mb, dfaexec_sb) (dfaexec_noop, dfaexec): * lib/dfa.h (dfaparse, dfacomp, dfaexec): Prefer idx_t to ptrdiff_t for counts, which should be nonnegative. * lib/dfa.h: Include idx.h.
* Make generated .in.h files as standalone as possible.Bruno Haible2021-08-2212-91/+258
| | | | | | | | | | | | | | | | | | | | | | | | Reported by Jan Engelhardt <jengelh@inai.de>. * lib/stdlib.in.h (_GL_ATTRIBUTE_DEALLOC, _GL_ATTRIBUTE_DEALLOC_FREE, _GL_ATTRIBUTE_MALLOC): Add fallback definitions. * lib/dirent.in.h (_GL_ATTRIBUTE_DEALLOC, _GL_ATTRIBUTE_MALLOC): Add fallback definitions. * lib/stdio.in.h (_GL_ATTRIBUTE_DEALLOC): Add fallback definition. * lib/math.in.h (_GL_ATTRIBUTE_CONST): Add fallback definition. * lib/pthread.in.h (_GL_ATTRIBUTE_PURE): Add fallback definition. * lib/threads.in.h (_GL_ATTRIBUTE_PURE): Likewise. * lib/uchar.in.h (_GL_ATTRIBUTE_PURE): Likewise. * lib/string.in.h (_GL_ATTRIBUTE_PURE): Move definition, for consistency with the other *.in.h files. * lib/se-context.in.h (_GL_ATTRIBUTE_MAYBE_UNUSED): Add fallback definition. * lib/se-label.in.h (_GL_ATTRIBUTE_MAYBE_UNUSED): Likewise. * lib/se-selinux.in.h (_GL_ATTRIBUTE_MAYBE_UNUSED): Likewise. * lib/textstyle.in.h: Use _GL_ATTRIBUTE_MAYBE_UNUSED instead of _GL_UNUSED. (_GL_ATTRIBUTE_SPEC_PRINTF_STANDARD, _GL_ATTRIBUTE_MAYBE_UNUSED): Add fallback definitions.
* mountlist: Use recommended syntax for _GL_UNUSED_LABEL.Bruno Haible2021-08-221-1/+1
| | | | | * lib/mountlist.c (read_file_system_list): Add semicolon after _GL_UNUSED_LABEL.
* Oops, remove unintended file additions.Bruno Haible2021-08-222-51/+0
|
* gnulib-common.m4: Use C2x [[maybe_unused]] when possible.Bruno Haible2021-08-2238-143/+194
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _GL_UNUSED as an alias of _GL_ATTRIBUTE_MAYBE_UNUSED, not of _GL_ATTRIBUTE_UNUSED. * lib/binary-io.h (__gl_setmode): Put _GL_UNUSED before, not after, the declaration. * lib/c-stack.c (null_action, segv_handler, overflow_handler, c_stack_action): Likewise. * lib/chown.c (chown): Likewise. * lib/clean-temp-simple.c (cleanup_action): Likewise. * lib/fts.c (dirent_inode_sort_may_be_useful, leaf_optimization, fts_set): Likewise. * lib/getgroups.c (getgroups): Likewise. * lib/getopt.c (_getopt_initialize): Likewise. * lib/getugroups.c (getugroups): Likewise. * lib/localename.c (gl_locale_name_thread_unsafe, gl_locale_name_thread, gl_locale_name_posix, gl_locale_name_environ): Likewise. * lib/mkdir.c (rpl_mkdir): Likewise. * lib/mkfifo.c (mkfifo): Likewise. * lib/mkfifoat.c (mkfifoat): Likewise. * lib/mknod.c (mknod): Likewise. * lib/mknodat.c (mknodat): Likewise. * lib/mountlist.c (me_remote): Likewise. * lib/openpty.c (openpty): Likewise. * lib/parse-datetime.y (yyerror): Likewise. * lib/passfd.c (sendfd, recvfd): Likewise. * lib/pthread-cond.c (pthread_condattr_destroy, pthread_cond_init, pthread_cond_wait, pthread_cond_timedwait, pthread_cond_signal, pthread_cond_broadcast, pthread_cond_destroy): Likewise. * lib/pthread-mutex.c (pthread_mutexattr_destroy, pthread_mutex_init, pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_timedlock, pthread_mutex_unlock, pthread_mutex_destroy): Likewise. * lib/pthread-rwlock.c (pthread_rwlockattr_destroy, pthread_rwlock_init, pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock): Likewise. * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock, pthread_spin_destroy): Likewise. * lib/pthread-thread.c (pthread_attr_destroy): Likewise. * lib/readlink.c (readlink): Likewise. * lib/rename.c (rpl_rename): Likewise. * lib/set-permissions.c (set_permissions): Likewise. * lib/sockets.c (gl_sockets_startup): Likewise. * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime, stat_time_normalize): Likewise. * lib/strptime.c (__strptime_internal): Likewise. * lib/strtod.c (LDEXP): Likewise. * lib/symlink.c (symlink): Likewise. * lib/symlinkat.c (symlinkat): Likewise. * lib/tempname.c (try_dir, try_nocreate): Likewise. * lib/textstyle.in.h (styled_ostream_begin_use_class, styled_ostream_end_use_class, styled_ostream_get_hyperlink_ref, styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink, styled_ostream_flush_to_current_style, fd_ostream_create, term_ostream_get_color, term_ostream_set_color, term_ostream_get_bgcolor, term_ostream_set_bgcolor, term_ostream_get_weight, term_ostream_set_weight, term_ostream_get_posture, term_ostream_set_posture, term_ostream_get_underline, term_ostream_set_underline, term_ostream_get_hyperlink_ref, term_ostream_get_hyperlink_id, term_ostream_set_hyperlink, term_ostream_create, term_styled_ostream_create, html_styled_ostream_create, handle_color_option, handle_style_option, style_file_prepare, styled_ostream_create, libtextstyle_set_failure_exit_code): Likewise. * lib/unicodeio.c (exit_failure_callback, fallback_failure_callback): Likewise. * lib/wait-process.c (cleanup_slaves_action): Likewise. * tests/signature.h (SIGNATURE_CHECK2): Likewise. * tests/test-areadlink.c (do_areadlink): Likewise. * tests/test-areadlinkat.c (do_areadlinkat): Likewise. * tests/test-ceilf-ieee.c (main): Likewise. * tests/test-ceilf1.c (main): Likewise. * tests/test-dirent.c (dir): Likewise. * tests/test-fchownat.c (main): Likewise. * tests/test-fdopendir.c (main): Likewise. * tests/test-filenamecat.c (main): Likewise. * tests/test-floor1.c (main): Likewise. * tests/test-floorf-ieee.c (main): Likewise. * tests/test-floorf1.c (main): Likewise. * tests/test-fseeko.c (main): Likewise. * tests/test-fstatat.c (main): Likewise. * tests/test-ftello.c (main): Likewise. * tests/test-getdomainname.c (main): Likewise. * tests/test-getgroups.c (main): Likewise. * tests/test-gethostname.c (main): Likewise. * tests/test-math-c++.cc (OVERLOADED_CHECK): Likewise. * tests/test-mkdirat.c (main): Likewise. * tests/test-openat.c (main): Likewise. * tests/test-parse-datetime.c (main): Likewise. * tests/test-quotearg-simple.c (main): Likewise. * tests/test-quotearg.c (main): Likewise. * tests/test-sethostname2.c (main): Likewise. * tests/test-unlinkat.c (main): Likewise. * tests/test-version-etc.c (main): Likewise. * tests/test-xalloc-die.c (main): Likewise. * tests/test-xfprintf-posix.c (main): Likewise. * tests/test-xprintf-posix.c (main): Likewise. * tests/test-xvasprintf.c (main): Likewise.
* rawmemchr: Fix use in relocatable-prog-wrapper (regression 2021-08-20).Bruno Haible2021-08-221-4/+9
| | | | | * lib/rawmemchr.c: Restore test of HAVE_RAWMEMCHR. * modules/relocatable-prog-wrapper (Depends-on): Add stdalign.
* rawmemchr: modernize and simplifyPaul Eggert2021-08-201-50/+29
| | | | | | | | | | | | | | | | * lib/rawmemchr.c (HAVE_RAWMEMCHR): Assume it’s not defined; otherwise this file would not be compiled. Include limits.h, stdalign.h, stdint.h, verify.h. (rawmemchr): Prefer uintptr_t to unsigned long and to size_t when it’s the better type. Verify that longword lacks padding. Use alignof rather than sizeof when checking alignment. Simplify by assuming C99 decl-after-statement, and by using multiplication rather than repeated shifting and OR (modern compilers can optimize the multiplication if needed). Avoid unnecessary casts. Don’t assume CHAR_WIDTH is 8. Convert back and forth between void * to suppress bogus GCC warnings about alignment. Omit a duplicate assignment to char_ptr. * modules/rawmemchr (Depends-on): Add stdalign, stdint, verify.
* snippet/_Noreturn: Fix typoAkim Demaille2021-08-121-1/+1
| | | | * lib/_Noreturn.h: Fix spelling of 4.
* dynarray: merge from glibcPaul Eggert2021-08-113-6/+33
| | | | | | | | | | | | | This also helps document glibc’s direction in using GCC’s memory-allocation checking. * lib/cdefs.h: Omit comments that glibc rejected. (__returns_nonnull, __attr_access_none, __attr_dealloc) (__attr_dealloc_free): New macros. * lib/libc-config.h: Undef the new macros that are defined unconditionally. * lib/malloc/dynarray_at_failure.c [_LIBC]: Do not include stdlib.h. (__libc_dynarray_at_failure) [_LIBC]: Call __libc_fatal, fixing a bad merge previously.
* canonicalize-lgpl: Fix conflict with z/OS <sys/stat.h>.Bruno Haible2021-08-081-2/+1
| | | | | | | | | Reported by Mike Fulton <mikefultonpersonal@gmail.com> in <https://lists.gnu.org/archive/html/m4-discuss/2021-08/msg00000.html> via Eric Blake. * lib/canonicalize-lgpl.c (__stat): Remove macro. (file_accessible): Use 'stat' instead.
* ptsname_r: Drop sync with glibc.Bruno Haible2021-08-081-34/+19
| | | | | | | * lib/ptsname_r.c: Drop _LIBC code. (__set_errno, __isatty, __stat, __ttyname_r, __ptsname_r): Remove macros. (ptsname_r): Rename local variable 'save_errno'.
* relocatable-lib-lgpl: Fix a memory leak related to a Windows DLL.Bruno Haible2021-08-081-2/+11
| | | | | | | | Reported by Jonathan Boeing <jonathan@claws-mail.org> in <https://lists.gnu.org/archive/html/bug-gnulib/2021-08/msg00048.html>. * lib/relocatable.c (DllMain): Avoid memory leak in a special case of repeated attach/detach.
* stdio: Improve GCC 11 allocation-deallocation checking.Bruno Haible2021-08-081-19/+67
| | | | | | | * lib/stdio.in.h (fdopen, fopen, tmpfile): For GCC >= 11: Declare nearly always. (popen): For GCC >= 11: Declare also when the platform already declares the function or when the module 'popen' is not in use.
* dirent: Improve GCC 11 allocation-deallocation checking.Bruno Haible2021-08-081-8/+27
| | | | | | | | * lib/dirent.in.h (opendir): For GCC >= 11: Declare also when the platform already declares the function or when the module 'opendir' is not in use. (fdopendir): For GCC >= 11: Declare also when the platform already declares the function or when the module 'fdopendir' is not in use.
* stdlib, string, wchar: Improve GCC 11 allocation-deallocation checking.Bruno Haible2021-08-084-65/+139
| | | | | | | | | | | | | | | | | | | | | | * lib/stdlib.in.h (aligned_alloc): For GCC >= 11: Declare also when the platform already declares the function or when the module 'aligned_alloc' is not in use. (calloc): For GCC >= 11: Declare nearly always. (canonicalize_file_name): For GCC >= 11: Declare also when the platform already declares the function or when the module 'canonicalize-lgpl' is not in use. (malloc, realloc): For GCC >= 11: Declare nearly always. * lib/malloc.in.h: Remove redundant include. (memalign): For GCC >= 11: Declare also when the platform already declares the function or when the module 'memalign' is not in use. * lib/string.in.h: Include <stdlib.h> always. (strdup): For GCC >= 11: Declare also when the platform already declares the function or when the module 'strdup' or 'strdup-posix' is not in use. * lib/wchar.in.h: Include <stdlib.h> always. (wcsdup): For GCC >= 11: Declare also when the platform already declares the function or when the module 'wcsdup' is not in use. * modules/free-posix (Depends-on): Add string, wchar.
* uninorm, unistr: Improve GCC 11 allocation-deallocation checking.Bruno Haible2021-08-082-10/+17
| | | | | | | | | * lib/uninorm.in.h (uninorm_filter_free): Move declaration up. (uninorm_filter_create): Declare that deallocation must happen through 'uninorm_filter_free'. * lib/unistr.in.h: Include <stdlib.h>. (u8_strdup, u16_strdup, u32_strdup): Declare that deallocation must happen through 'free'.
* ialloc: Prepare for allocation-deallocation checking.Bruno Haible2021-08-081-3/+9
| | | | | * lib/ialloc.h (imalloc, irealloc, icalloc): Add comment that deallocation must happen through 'free'.
* aligned-malloc: Prepare for allocation-deallocation checking.Bruno Haible2021-08-081-36/+48
| | | | | | * lib/aligned-malloc.h (aligned_free): Move declaration up. (aligned_malloc): Add comment that deallocation must happen through 'aligned_free'.
* list, set, oset, map, omap: Prepare allocation-deallocation checking.Bruno Haible2021-08-0812-33/+99
| | | | | | | | | | | | | | | | | | | | | * lib/gl_list.h (gl_list_create_empty, gl_list_nx_create_empty, gl_list_create, gl_list_nx_create): Add comment that deallocation must happen through 'gl_list_free'. * lib/gl_xlist.h (gl_list_create_empty, gl_list_create): Likewise. * lib/gl_sublist.h (gl_sublist_create, gl_sublist_nx_create): Likewise. * lib/gl_xsublist.h (gl_sublist_create): Likewise. * lib/gl_set.h (gl_set_create_empty, gl_set_nx_create_empty): Add comment that deallocation must happen through 'gl_set_free'. * lib/gl_xset.h (gl_set_create_empty): Likewise. * lib/gl_oset.h (gl_oset_create_empty, gl_oset_nx_create_empty): Add comment that deallocation must happen through 'gl_oset_free'. * lib/gl_xoset.h (gl_oset_create_empty): Likewise. * lib/gl_map.h (gl_map_create_empty, gl_map_nx_create_empty): Add comment that deallocation must happen through 'gl_map_free'. * lib/gl_xmap.h (gl_map_create_empty): Likewise. * lib/gl_omap.h (gl_omap_create_empty, gl_omap_nx_create_empty): Add comment that deallocation must happen through 'gl_omap_free'. * lib/gl_xomap.h (gl_omap_create_empty): Likewise.
* xgetdomainname: Improve GCC 11 allocation-deallocation checking.Bruno Haible2021-08-071-1/+4
| | | | | * lib/xgetdomainname.h: Include <stdlib.h>. (xgetdomainname): Declare that deallocation must happen through 'free'.
* xgetdomainname: Ensure .c file starts with '#include <config.h>'.Bruno Haible2021-08-073-49/+71
| | | | | | | | | | * lib/xgetaname-impl.h: New file, based on lib/xgethostname.c. * lib/xgethostname.c: Move implementation to lib/xgetaname-impl.h. * lib/xgetdomainname.c: Include <config.h>. Include xgetaname-impl.h instead of xgethostname.c. * modules/xgethostname (Files): Add lib/xgetaname-impl.h. * modules/xgetdomainname (Files): Likewise. (Depends-on): Remove xgethostname. Add free-posix, xalloc.
* xstrndup: Improve GCC 11 allocation-deallocation checking.Bruno Haible2021-08-071-2/+4
| | | | | * lib/xstrndup.h: Include <stdlib.h> instead of <stddef.h>. (xstrndup): Declare that deallocation must happen through 'free'.
* xstriconveh: Improve GCC 11 allocation-deallocation checking.Bruno Haible2021-08-071-3/+5
| | | | | | * lib/xstriconveh.h: Include <stdlib.h> instead of <stddef.h>. (xstr_cd_iconveh, xstr_iconveh): Declare that deallocation must happen through 'free'.
* xmemdup0: Improve GCC 11 allocation-deallocation checking.Bruno Haible2021-08-071-2/+4
| | | | | * lib/xmemdup0.h: Include <stdlib.h> instead of <stddef.h>. (xmemdup0): Declare that deallocation must happen through 'free'.
* windows-spawn: Improve GCC 11 allocation-deallocation checking.Bruno Haible2021-08-071-2/+5
| | | | | | * lib/windows-spawn.h: Include <stdlib.h>. (compose_command, compose_envblock): Declare that deallocation must happen through 'free'.
* string-buffer: Improve GCC 11 allocation-deallocation checking.Bruno Haible2021-08-071-2/+3
| | | | | * lib/string-buffer.h: Include <stdlib.h> instead of <stddef.h>. (sb_dupfree): Declare that deallocation must happen through 'free'.
* striconveha: Improve GCC 11 allocation-deallocation checking.Bruno Haible2021-08-071-2/+3
| | | | | * lib/striconveha.h: Include <stdlib.h> instead of <stddef.h>. (str_iconveha): Declare that deallocation must happen through 'free'.
* striconveh: Improve GCC 11 allocation-deallocation checking.Bruno Haible2021-08-071-3/+5
| | | | | | * lib/striconveh.h: Include <stdlib.h> instead of <stddef.h>. (str_cd_iconveh, str_iconveh): Declare that deallocation must happen through 'free'.
* striconv: Improve GCC 11 allocation-deallocation checking.Bruno Haible2021-08-071-3/+5
| | | | | | * lib/striconv.h: Include <stdlib.h> instead of <stddef.h>. (str_cd_iconv, str_iconv): Declare that deallocation must happen through 'free'.
* relocatable-lib-lgpl: Improve GCC 11 allocation-deallocation checking.Bruno Haible2021-08-071-1/+4
| | | | | | * lib/relocatable.h: Include <stdlib.h>. (compute_curr_prefix): Declare that deallocation must happen through 'free'.
* regex-quote: Improve GCC 11 allocation-deallocation checking.Bruno Haible2021-08-071-2/+4
| | | | | * lib/regex-quote.h: Include <stdlib.h> instead of <stddef.h>. (regex_quote): Declare that deallocation must happen through 'free'.
* readline: Improve GCC 11 allocation-deallocation checking.Bruno Haible2021-08-071-1/+3
| | | | | * lib/readline.h: Include <stdlib.h>. (readline): Declare that deallocation must happen through 'free'.
* read-file: Improve GCC 11 allocation-deallocation checking.Bruno Haible2021-08-071-4/+6
| | | | | | * lib/read-file.h: Include <stdlib.h> instead of <stddef.h>. (fread_file, read_file): Declare that deallocation must happen through 'free'.
* pipe-filter-gi: Improve GCC 11 allocation-deallocation checking.Bruno Haible2021-08-071-18/+19
| | | | | | * lib/pipe-filter.h (pipe_filter_gi_close): Move declaration up. (pipe_filter_gi_create): Declare that deallocation must happen through 'pipe_filter_gi_close'.
* javaversion: Improve GCC 11 allocation-deallocation checking.Bruno Haible2021-08-071-1/+4
| | | | | | * lib/javaversion.h: Include <stdlib.h>. (javaexec_version): Declare that deallocation must happen through 'free'.
* ino-map: Improve GCC 11 allocation-deallocation checking.Bruno Haible2021-08-071-1/+6
| | | | | | * lib/ino-map.h (ino_map_free): Move declaration up. (ino_map_alloc): Declare that deallocation must happen through 'ino_map_free'.