Mail Archives: djgpp-workers/1998/02/03/09:18:24
DJ Delorie wrote:
> Unsigned char cannot hold a negative value. SGI uses unsigned char,
> and this hits me a *lot*. Many programs test for this during
> configure and use different code (or at least "signed char") to work
> around it.
But that is it just it! Program's relying on the signedness of char are
non-portable. There is nothing inhibiting any program from using "signed
char" explicitely when negative characters are important. And IMHO, I
don't call that a work around, but a sensible choice.
I cannot imagine that most gnu utilities for example should have to cope
with this problem, because they have to run on both kind of
architectures.
I even cannot imagine why configure should test this since using
'unsigned char' and 'signed char' would take away this problem in the
first place.
Not accepted as a good example.
--
\ Vik /-_-_-_-_-_-_/
\___/ Heyndrickx /
\ /-_-_-_-_-_-_/
- Raw text -