emacs/admin/coccinelle
Paul Eggert 225876e979 ARRAYELTS → countof
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-26 21:57:20 -07:00
..
alloc_cast.cocci Remove redundant casts from void* with malloc functions 2024-01-10 14:48:00 +01:00
arrayelts.cocci ARRAYELTS → countof 2026-05-26 21:57:20 -07:00
build_string.cocci Support string literals in build_string.cocci 2024-01-08 06:15:06 +01:00
calln.cocci Use calln instead of calling Ffuncall directly 2025-01-14 21:37:04 +01:00
list_loop.cocci Use XCAR and XCDR instead of Fcar and Fcdr where possible. 2012-07-10 20:53:26 +04:00
listn.cocci Prefer 'list (...)' to 'listn (N, ...)' 2025-01-19 04:42:37 +01:00
nilp.cocci Prefer NILP (x) to EQ (x, Qnil) 2024-01-04 03:42:22 +01:00
README Update Coccinelle URL 2024-06-18 21:10:42 +02:00
unibyte_string.cocci Prefer build_unibyte_string where applicable 2024-01-04 03:42:28 +01:00
vector_contents.cocci Minor quoting fixes in scripts and doc 2015-09-16 16:07:15 -07:00
xzalloc.cocci

This directory contains semantic patches for Coccinelle, a program matching
and transformation tool for programs written in C.

For more information, see:
https://coccinelle.gitlabpages.inria.fr/website