Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Macros (Was: fdtable)
- X-seq: zsh-workers 1006
- From: "Bas V. de Bakker" <bas@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx
- Subject: Macros (Was: fdtable)
- Date: Wed, 8 May 1996 09:54:15 +0200
- In-reply-to: Peter Stephenson's message of Tue, 07 May 1996 16:52:40 +0200
- References: <199605070817.KAA08463@xxxxxxxxxxxx> <199605071452.QAA20774@xxxxxxxxxxxx>
Peter Stephenson <pws@xxxxxx> writes:
> + /* Define to nothing if compiler does not handle `signed' keyword */
> + #undef signed
> +
There's already another fix by Zoltan, so the following remark no
longer applies to this case, but I'd like to make a general remark
here:
When reading other people's code, I've regularly been bitten by the
fact that the code was not what it looked like, due to a #define in
one of the so many header files that was (directly or indirectly)
included. The potential for errors is much less if one keeps all
macros uppercase. So create a SIGNED macro that is either defined to
signed or to nothing, like EXTERN.
The same is true of things like
#define dirent direct
#define setpgrp setpgid
which are currently used.
Bas.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author