[MPlayer-dev-eng] Re: [PATCH] Development (Was: Clean up demuxers)

D Richard Felker III dalias at aerifal.cx
Thu Feb 28 00:32:08 CET 2002


On Wed, Feb 27, 2002 at 11:52:47PM +0100, David Holm wrote:
> On Wed, 2002-02-27 at 20:39, D Richard Felker III wrote:
> > On Wed, Feb 27, 2002 at 05:17:17PM +0100, Arpi wrote:
> > > hmm. i've worked with watcom c compiler under dos/win some time ago, and it
> > > has an option to set char to 16bit, to handle wide/unicode stuff
> > > automagically. it sets the size of char type to 2 bytes.
> > 
> > This is outright wrong and should not be supported. C explicitly
> > defines sizeof(char) = 1, since sizeof(type) = (# of bytes in type) /
> > (# of bytes in char) and x/x = 1 for sufficiently nonzero values of
> > x. :) Read the comp.lang.c FAQ for a discussion of this issue.
> > 
> 
> Who ever said all compilers follow the standard?

This one is very fundamental, and all non-broken compilers must follow
it or tons of legitimate code will not work.

Rich







More information about the MPlayer-dev-eng mailing list