Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: fdtable



>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