1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-25 07:28:20 +00: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

7 lines
81 B
Plaintext

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