[OpenBIOS] [PATCH 1/3] forth: Fix ([IF]) to handle nested [IFDEF] as well

Andreas Färber andreas.faerber at web.de
Sun Dec 5 02:16:51 CET 2010


Am 04.12.2010 um 15:30 schrieb Segher Boessenkool:

>> Depending on the condition either the [IFDEF] foo or the [ELSE]
>> would get compiled as an [IF], eating words until [ELSE] or [THEN]
>> respectively. While doing so, [IFDEF] does not get compiled to [IF],
>> so we need to handle nested [IFDEF] to account for its [ELSE] or  
>> [THEN].
>>
>> This fixes [IFDEF] not disabling the full section of code.
>>
>> Thanks to Segher for pointing me in the right direction.
>>
>> Cc: Segher Boessenkool <segher at kernel.crashing.org>
>> Signed-off-by: Andreas Färber <andreas.faerber at web.de>
>
> Signed-off-by: Segher Boessenkool <segher at kernel.crashing.org>

Thanks, applied as r979.

Andreas


More information about the OpenBIOS mailing list