comp.lang.ada
 help / color / mirror / Atom feed
From: Florian Weimer <fw@deneb.cygnus.argh.org>
Subject: [OT] C and in-band signalling (was: Re: Announce: OpenToken 2.0 released)
Date: 2000/03/05
Date: 2000-03-05T18:47:26+00:00	[thread overview]
Message-ID: <873dq5ntj5.fsf_-_@deneb.cygnus.argh.org> (raw)
In-Reply-To: 88iuk2$s6d3@ftp.kvaerner.com

"Tarjei T. Jensen" <tarjei.jensen@kvaerner.com> writes:

> Hyman Rosen wrote
> >(I know that
> >the number of platforms where sizeof(int) == sizeof(char) is non-zero,
> >but do those platforms have 32-bit input from external sources?)
> 
> Is that a problem on any plattform? EOF is not a fixed value. 

Yes, it is a preprocessor macro "which expands to an integer constant
expression, with type int and a negative value".

> It is traditionally -1. If, on a platform where sizeof(int) ==
> sizeof(char) there is a convention that characters are positive
> (assuming the sizeof(int) > 8) then a convention which use negative
> numbers for signalling would still work.

No, for binary files, a conforming implementation has to be able to store
and retrieve all possible char type values, including the negative ones.




  parent reply	other threads:[~2000-03-05  0:00 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-01-27  0:00 Announce: OpenToken 2.0 released Ted Dennison
2000-01-28  0:00 ` Jürgen Pfeifer
2000-01-28  0:00   ` Ted Dennison
2000-01-31  0:00 ` Hyman Rosen
2000-02-01  0:00   ` Ted Dennison
2000-02-01  0:00     ` Hyman Rosen
2000-02-01  0:00       ` David Starner
2000-02-01  0:00         ` Brian Rogoff
2000-02-01  0:00           ` Hyman Rosen
2000-02-01  0:00             ` Brian Rogoff
2000-02-02  0:00               ` Hyman Rosen
2000-02-02  0:00             ` Vladimir Olensky
2000-02-01  0:00               ` Hyman Rosen
2000-02-02  0:00             ` Jeff Carter
2000-02-02  0:00       ` Ted Dennison
2000-02-04  0:00         ` Ted Dennison
2000-02-05  0:00           ` Ehud Lamm
2000-02-04  0:00       ` Florian Weimer
2000-02-07  0:00         ` Hyman Rosen
2000-02-07  0:00           ` Florian Weimer
2000-02-07  0:00             ` Hyman Rosen
2000-02-09  0:00           ` Robert A Duff
2000-02-09  0:00             ` Hyman Rosen
2000-02-09  0:00               ` Larry Kilgallen
2000-02-17  0:00               ` Robert A Duff
2000-02-17  0:00                 ` Hyman Rosen
2000-02-17  0:00                   ` Hyman Rosen
2000-02-17  0:00                     ` Robert A Duff
2000-02-17  0:00                       ` Hyman Rosen
2000-02-17  0:00                   ` Robert A Duff
     [not found]                   ` <88iuk2$s6d3@ftp.kvaerner.com>
2000-03-05  0:00                     ` Florian Weimer [this message]
2000-03-06  0:00                       ` [OT] C and in-band signalling (was: Re: Announce: OpenToken 2.0 released) Tarjei T. Jensen
2000-03-06  0:00                         ` Keith Thompson
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox