[syslinux] comments about 5.00pre10

H. Peter Anvin hpa at zytor.com
Mon Nov 26 08:11:20 PST 2012


On 11/26/2012 06:51 AM, Matt Fleming wrote:
> On Wed, 2012-11-21 at 14:09 -0800, H. Peter Anvin wrote:
>> That being said, we really need a way to *disable* boolean options.
>> Either something like "MENU NO CLEAR" or "MENU CLEAR OFF".
>
> Hmm.. is that going to be useful? There are a lot of MENU options where
> prefixing a "NO" doesn't make sense.
>
>> Either way we should make it uniform syntax across all the boolean
>> options.  I'm kind of thinking that "MENU NO CLEAR" would work well;
>> "MENU NO" would simply set a flag that we're clearing options instead of
>> setting them, and then parse the following keyword.
>
> Do you have a particular use case in mind?
>

Well, obviously disabling MENU CLEAR, but also other boolean options 
(and yes, it doesn't make sense for non-booleans).  MENU CLEAR OFF works 
too, and we can have a single function parse_boolean() to parse the rest 
of the string in a uniform manner for boolean options.

	-hpa

-- 
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel.  I don't speak on their behalf.




More information about the Syslinux mailing list