1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-03 22:20:52 -08:00
emacs/admin/coccinelle/nilp.cocci
Stefan Kangas 88ed501abe Prefer NILP (x) to EQ (x, Qnil)
* src/image.c (anim_prune_animation_cache):
Prefer NILP (x) to EQ (x, Qnil).
* admin/coccinelle/nilp.cocci: Semantic patch for above change.
2024-01-04 03:42:22 +01:00

6 lines
81 B
Text

// Prefer NILP (x) to EQ (x, Qnil)
@@
expression X;
@@
- EQ (X, Qnil)
+ NILP (X)