Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: fdtable
- X-seq: zsh-workers 993
- From: Zefram <A.Main@xxxxxxxxxxxxxxxxx>
- To: pws@xxxxxx (Peter Stephenson)
- Subject: Re: fdtable
- Date: Tue, 7 May 1996 12:19:23 +0100 (BST)
- Cc: zsh-workers@xxxxxxxxxxxxxxx
- In-reply-to: <199605070817.KAA08463@xxxxxxxxxxxx> from "Peter Stephenson" at May 7, 96 10:17:21 am
>In 2.6-beta17, fdtable[] is a char array, and there are tests like
>
> if (fdtable[i] < 0)
> fdtable[i]--;
>
>for which gcc on IRIX is complaining about limited range of data type.
>Shouldn't fdtable[] be `signed char'? (Yes.)
Careful! The `signed' keyword does not exist in K&R C. We should
either avoid its usage altogether, or do a feature test for it. I
think all K&R compilers have char signed by default, so this should
work.
-zefram
Messages sorted by:
Reverse Date,
Date,
Thread,
Author