summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2026-05-26Also copy lib/mini-gmp-gnulib.c from GnulibPaul Eggert
2026-05-26ARRAYELTS → countofPaul Eggert
C2y will standardize countof as the macro that Emacs uses the name ARRAYELTS for. Switch to the standard name, which is supported by GCC 16+, by Clang 21, and by the Gnulib stdcountof-h module already in use for compilers that do not support countof. Also, use countof in a few places where we missed using ARRAYELTS. * admin/coccinelle/arrayelts.cocci: Suggest countof, not ARRAYELTS. * admin/merge-gnulib (GNULIB_MODULES): Add stdcountof-h, as it is now a direct rather than an indirect dependency. * exec/trace.c, src/lisp.h, src/sfnt.c: Include <stdcountof.h>. (ARRAYELTS): Remove. All uses replaced by countof. * lib-src/ebrowse.c, lib-src/etags.c, lib-src/make-docfile.c: * lib-src/seccomp-filter.c, lwlib/lwlib-Xaw.c: Prefer <stdcountof.h> and countof to doing things by hand.
2026-05-26Update from Gnulib by running admin/merge-gnulibPaul Eggert
In addition to the automatic changes, also do the following, needed due to recent Gnulib changes. * admin/merge-gnulib (AVOIDED_MODULES): Add btoc32, c32_apply_type_test, c32_get_type_test, c32isalnum, c32rtomb, c32tolower, c32toupper, localeinfo, mbrtoc32-regular. Remove btowc, iswctype, mbrtowc, wcrtomb, wctype, wctype-h. Also remove iswblank, iswdigit, iswxdigit, locale-h, raise, stdarg-h, some of which perhaps could have been removed earlier. * configure.ac (_REGEX_AVOID_UCHAR_H): New macro.
2026-03-01Update from Gnulib by running admin/merge-gnulibPaul Eggert
* admin/merge-gnulib (GNULIB_MODULES): Add memeq, streq and remove stringeq, to adjust to a module splitup in Gnulib. * lib/memeq.c, lib/streq.c, lib/strnul.c, m4/memeq.m4, m4/streq.m4: New files. * lib/string.c, m4/stringeq.m4: Remove.
2026-02-23Add SHA-3 support to secure-hashCollin Funk
* admin/merge-gnulib (GNULIB_MODULES): Add crypto/sha3-buffer. * lib/sha3.c: New file, imported by running admin/merge-gnulib. * lib/sha3.h: Likewise. * m4/sha3.m4: Likewise. * lib/gnulib.mk.in: Updated by admin/merge-gnulib. * m4/gnulib-comp.m4: Likewise. * src/fns.c: Include sha3.h (Fsecure_hash_algorithms): Add Qsha3_224, Qsha3_256, Qsha3_384, and Qsha3_512. (secure_hash): Likewise. (Fsecure_hash): List the SHA-3 algorithms in the docstring. (syms_of_fns): Define Qsha3_224, Qsha3_256, Qsha3_384, and Qsha3_512. * test/lisp/net/gnutls-tests.el (gnutls-tests-internal-macs-upcased): Filter out the new SHA-3 algorithms since they are currently not implemented in gnutls. * test/src/fns-tests.el (test-secure-hash): Add test cases for the new algorithms. * doc/lispref/text.texi (Checksum/Hash): List the SHA-3 algorithms. Mention that they are considered secure. * etc/NEWS: Mention the new feature.
2026-02-23Update from Gnulib by running admin/merge-gnulibPaul Eggert
2026-02-17Depend explicitly on Gnulib ‘attribute’ modulePaul Eggert
Problem reported by Basil L. Contovounesios (bug#80428#8). * admin/merge-gnulib (GNULIB_MODULES): Add ‘attribute’.
2026-02-13Remove vla.hPaul Eggert
Uses of <vla.h>’s macro VLA_ELEMS were removed some time ago. * admin/merge-gnulib (GNULIB_MODULES): Remove vla. * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate. * lib/vla.h: Remove. * src/fns.c, src/lread.c: Do not include <vla.h>.
2026-02-13Update from Gnulib by running admin/merge-gnulibPaul Eggert
2026-01-19Update from Gnulib by running admin/merge-gnulibPaul Eggert
2026-01-19Merge Gnulib save-cwd.c changesPaul Eggert
* lib/save-cwd.c: Propagate changes from Gnulib sibling. This doesn’t affect behavior.
2026-01-01; Add 2026 to copyright years.Sean Whitton
2025-12-25Update from Gnulib by running admin/merge-gnulibPaul Eggert
2025-12-12Update from Gnulib by running admin/merge-gnulibPaul Eggert
2025-12-09Garbage-collect Gnulib sourcesPaul Eggert
Remove Gnulib sources no longer needed or used. admin/merge-gnulib is typically not smart enough to do that. * configure.ac: Do not call gl_EEMALLOC, as it is no longer supplied or needed. * lib/explicit_bzero.c, lib/malloc/scratch_buffer_dupfree.c: * lib/xalloc-oversized.h, m4/eealloc.m4, m4/explicit_bzero.m4: * m4/st_dm_mode.m4, m4/year2038.m4: Remove.
2025-12-07Update from Gnulib by running admin/merge-gnulibPaul Eggert
* admin/merge-gnulib (AVOIDED_MODULES): Add strncpy, as Emacs is not likely to exercise the FreeBSD 15 strncpy bug that this module fixes. * lib/issymlinkat.h: New file, taken from Gnulib.
2025-11-25Update from Gnulib by running admin/merge-gnulibPaul Eggert
2025-11-21* lib/strnlen.c (strnlen): Fix syntax error in Gnulib module.Po Lu
2025-11-20Prefer C23 support if availablePaul Eggert
This merges in changes that were made to Autoconf master in April 2024. It causes ‘configure’ to prefer the C compiler to enable C23 features if possible; otherwise, ‘configure’ behaves as before, using C11 if available and C99 if not. * admin/merge-gnulib (GNULIB_MODULES): Add std-gnu23. (AVOIDED_MODULES): Add (i.e., start avoiding) std-gnu11. * m4/std-gnu11.m4: Remove. * m4/std-gnu23.m4: Add.
2025-11-20Update from Gnulib by running admin/merge-gnulibPaul Eggert
2025-11-06Update from Gnulib by running admin/merge-gnulibPaul Eggert
2025-11-06Update from Gnulib by running admin/merge-gnulibPaul Eggert
2025-11-06Update from Gnulib by running admin/merge-gnulibPaul Eggert
* admin/merge-gnulib (GNULIB_MODULES): Add stdio-windows. Also, sort and remove duplicates.
2025-11-06A better fix for recent changes in Gnulib's acl_entries.cEli Zaretskii
See https://lists.gnu.org/archive/html/emacs-devel/2025-11/msg00145.html for the related discussions. * nt/mingw-cfg.site (ac_cv_func_acl_entries): Set to "yes" to disable compilation of lib/acl_entries.c on MinGW. * lib/acl_entries.c (acl_entries): Revert last change, as it is no longer needed.
2025-11-05Unbreak MinGW build broken by Gnulib mergeEli Zaretskii
* lib/acl_entries.c (acl_entries): Make it no-op for MinGW, as it was before. Without this, acl_entries doesn't compile on MinGW. * nt/gnulib-cfg.mk (OMIT_GNULIB_MODULE_issymlink) (OMIT_GNULIB_MODULE_issymlinkat): Disable these Gnulib modules.
2025-11-04Update from Gnulib by running admin/merge-gnulibPaul Eggert
* admin/merge-gnulib (GNULIB_MODULES): Add stringeq. With current Gnulib it is already present as in indirect dependency; listing it here because Emacs now depends on it directly. * lib-src/ebrowse.c, lib-src/etags.c: (streq): Remove, as Gnulib defines this now. * lib/fseterr.c, lib/fseterr.h, lib/issymlink.c, lib/issymlink.h: * lib/issymlinkat.c, lib/stdio-consolesafe.c, lib/string.c: * m4/fseterr.m4, m4/gettext_h.m4, m4/stringeq.m4: New files from Gnulib. * src/conf_post.h (tzfree) [__ANDROID_API__ >= 35]: Remove.
2025-08-02Update from Gnulib by running admin/merge-gnulibPaul Eggert
* lib/sys-limits.h: New file.
2025-07-29Update from Gnulib by running admin/merge-gnulibPaul Eggert
2025-06-29Update from Gnulib by running admin/merge-gnulibPaul Eggert
2025-06-27Update from Gnulib by running admin/merge-gnulibPaul Eggert
2025-05-08Update from Gnulib by running admin/merge-gnulibPaul Eggert
2025-05-08Update from Gnulib by running admin/merge-gnulibPaul Eggert
The following changes were made by hand, so that admin/merge-gnulib could succeed instead of failing because the diff didn’t match. * admin/gnulib-patches/lib/getloadavg.c.diff: Remove, as it is no longer needed now that recent Gnulib has been merged. * admin/merge-gnulib (GNULIB_TOOL_FLAGS): Remove the --local-dir="$src"admin/gnulib-patches option, as it is no longer needed either.
2025-04-21Render lib/getloadavg.c patches more permanentPo Lu
* admin/gnulib-patches/lib/getloadavg.c.diff: New file. * admin/merge-gnulib (GNULIB_TOOL_FLAGS): Set --local-dir to admin/gnulib-patches. * lib/gnulib.mk.in: Update from Gnulib.
2025-04-20Temporary fix for compilation on Android API levels <= 13Po Lu
* lib/getloadavg.c (getloadavg): Don't use sysinfo on Android API levels <= 13. This will be resolved in Gnulib shortly, with any luck.
2025-04-19Update from Gnulib by running admin/merge-gnulibPaul Eggert
2025-02-07Update from Gnulib by running admin/merge-gnulibPaul Eggert
2025-02-01Merge branch 'scratch/no-purespace' into 'master'Stefan Kangas
2025-01-18Remove unnecessary stdalign.in.hPaul Eggert
* lib/stdalign.in.h: Remove. This file was already removed in commit b429274c5b4b2b511d2d351111dea2d354498e0f (2023-02-04) but was brought back mistakenly by a merge from emacs-29 in commit ecf08f0621c25ad1dfadd96399e204c389ab1695 (2024-01-02). * nt/inc/stdalign.h: Don’t mention removed file in comment.
2025-01-17Let Gnulib deal with malloc/realloc 0Paul Eggert
Instead of worrying about whether malloc and realloc yield a non-null pointer when given size 0 (the traditional behavior recommended by Doug McIlroy, and the only behavior that makes sense for Emacs), let Gnulib arrange for the traditional behavior. * admin/merge-gnulib (GNULIB_MODULES): Add malloc-gnu (which we were already depending on indirectly) and realloc-posix. * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate by running admin/merge-gnulib.
2025-01-17Update from Gnulib by running admin/merge-gnulibPaul Eggert
2025-01-16Update from Gnulib by running admin/merge-gnulibPaul Eggert
2025-01-15Update from Gnulib by running admin/merge-gnulibPaul Eggert
2025-01-01Update from Gnulib by running admin/merge-gnulibPaul Eggert
2025-01-01Update copyright year to 2025Paul Eggert
Run "TZ=UTC0 admin/update-copyright".
2024-12-26Update from Gnulib by running admin/merge-gnulibPaul Eggert
2024-12-17Update from Gnulib by running admin/merge-gnulibPaul Eggert
* admin/merge-gnulib (AVOIDED_MODULES): Avoid gnulib-i18n. * lib/stdlib.c, m4/selinux-selinux-h.m4: New files, taken from Gnulib.
2024-12-12Unexec removal: Remove HYBRID_MALLOC supportPip Cet
* src/gmalloc.c (gdefault_morecore): Remove HYBRID_MALLOC code. (allocated_via_gmalloc, hybrid_malloc, hybrid_calloc, hybrid_free_1) (hybrid_free, hybrid_aligned_alloc, hybrid_realloc): Remove functions. * msdos/sed1v2.inp: * msdos/sedlibmk.inp: * src/alloc.c (GC_MALLOC_CHECK, USE_ALIGNED_ALLOC) (refill_memory_reserve, aligned_alloc): * src/emacs.c (main): * src/lastfile.c (my_edata): * src/lisp.h: * src/ralloc.c: * src/sysdep.c (get_current_dir_name_or_unreachable): * src/xdisp.c (decode_mode_spec): Remove HYBRID_MALLOC conditions. * configure.ac (hybrid_malloc, HYBRID_MALLOC): Remove variables and dependent code. * src/conf_post.h (hybrid_malloc, hybrid_calloc, hybrid_free) (hybrid_aligned_alloc, hybrid_realloc): Remove conditional prototypes. * src/Makefile.in (HYBRID_MALLOC): Remove variable. (base_obj): Remove sheap.o (LIBEGNU_ARCHIVE): * lib/Makefile.in (libgnu_a_OBJECTS): Remove libegnu.a support.
2024-09-17Update from Gnulib by running admin/merge-gnulibPaul Eggert
2024-09-06Revert "Fix MinGW build broken by recent update from Gnulib"Eli Zaretskii
This reverts commit b737c6125d69497ad5d2a29d4b5a2b17698992e5. It is no longer needed with the introduction of nt/inc/signal.h.
2024-09-06Revert "; Fix last change in lib/sig2str.h."Eli Zaretskii
This reverts commit 91e7b47d6c56e7963be232de8057e1a3f710f1b5. It is no longer needed with the introduction of nt/inc/signal.h.