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

D Richard Felker III dalias at aerifal.cx
Wed Feb 27 20:39:59 CET 2002


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.

Rich




More information about the MPlayer-dev-eng mailing list