Source-Changes-D archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/sys/dev/acpi
On Sun, 22 May 2011, Joerg Sonnenberger wrote:
> Modified Files:
> src/sys/dev/acpi: acpi_power.c
>
> Log Message:
> Let's not be silly. Use a fancy "if else" to decide behavior of a bool
> and hope cosmic radition doesn't create a third state.
I'll just say here, that I found a code generation bug in pcc (actually,
inexact emulation of a gcc feature which was a wtf itself) because of the
existence of this kind of code..
think of it as an assert(), which could for example catch calls to the
function using an int argument (yeah ok, -std=gnu99 would complain about
lack of prototypes)
iain
Home |
Main Index |
Thread Index |
Old Index