[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: coccinelle patch suggestion
From: |
Andreas Schwab |
Subject: |
Re: coccinelle patch suggestion |
Date: |
Wed, 27 Jun 2012 23:03:01 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) |
Dan Nicolaescu <address@hidden> writes:
> Many lisp functions are declared in header files using the EXFUN macro,
> like this:
> EXFUN (Finteractive_form, 1);
>
> this might have been good when wanting to support both pre-standard C
> and standard C, but we don't support the former anymore.
It generates a prototype, which is useful in standard C.
> And EXFUN just adds an unneeded level of obfuscation that doesn't help
> code readability.
It tells you that it's a Lisp function with N arguments. That's easier
to read than when you need to count them.
Andreas.
--
Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
Re: coccinelle patch suggestion, Stefan Monnier, 2012/06/27