Rockbox.org home
releases
current build
extras FAQ
manual
wiki
docs index mailing lists
IRC
forums bugs
patches



Rockbox mail archive

Subject: Re: [ rockbox-Bugs-827966 ] Pause causes continuous disk access
From: Björn Stenberg (bjorn_at_haxx.se)
Date: 2003-10-24


Craigh Sather wrote:
> Although the statement "paused = mpeg_status() &
> MPEG_STATUS_PAUSE;" will always yield 0 or 1 when compiled
> for the Archos target, on the simulator such coding could
> cause problems because in uisimulator/win32/stdbool.h we have:
> typedef unsigned int bool;

Does anyone know if there is a good reason why the win32 uisim does this instead of using the proper bool type?

If the code has to cater for int-as-bool everywhere (forcing ugly constructs such as "?true:false"), then much of the elegance of the bool type is erased.

Are there important win32 compilers that don't support C99 bool? If so, should we let those old win32 tools dictate how we write the Rockbox code?

-- 
Björn



Page was last modified "Mar 9 2008" The Rockbox Crew