emacs/admin/coccinelle/calln.cocci
Stefan Kangas 16c89c5ae5 Use calln instead of calling Ffuncall directly
* src/bytecode.c (bcall0):
* src/comp.c (bcall0):
* src/eval.c (apply1):
* src/lisp.h (call0):
* src/thread.c (invoke_thread_function): Use calln instead of calling
Ffuncall directly.

* admin/coccinelle/calln.cocci: New semantic patch.
2025-01-14 21:37:04 +01:00

21 lines
223 B
Text

// Use the calln macro where possible.
@@
@@
- CALLN ( Ffuncall,
+ calln (
...)
@@
constant c;
expression e;
@@
- Ffuncall ( c, &e )
+ calln ( e )
@@
constant c;
expression e;
@@
- Ffuncall ( c, &e,
+ calln ( e,
...)