summaryrefslogtreecommitdiff
path: root/kconfiglib.py
AgeCommit message (Collapse)Author
2012-12-13Remove outdated comment.Ulf Magnusson
2012-12-13Add get_config() for Menu, Choice, and Comment.Ulf Magnusson
Omission.
2012-12-13Add Comment.get_visibility().Ulf Magnusson
Omission.
2012-12-13Rename Menu.get_depends_on_visibility() to Menu.get_visibility().Ulf Magnusson
2012-12-13Rename some APIs to be more consistent and intuitive.Ulf Magnusson
2012-12-13Get rid of some "in (" in favor of direct comparisons.Ulf Magnusson
Slightly faster and no less readable.
2012-12-13Clean up get_value() for hex/int and fix edge cases.Ulf Magnusson
If a range is active and no defaults are active, the low end of the range should be used for the default if no valid user value is set.
2012-12-12Rename kconfigtest.py to testsuite.py.Ulf Magnusson
2012-12-12Break encapsulation a bit to clarify code.Ulf Magnusson
Perhaps the public API should be properties instead of functions for things like .name that are very unlikely to not be static as well. Would take more work to document though.
2012-12-12Re-enable set_user_value() warning for symbols with no prompts.Ulf Magnusson
Disable warnings in allnoconfig_simpler.py instead.
2012-12-12Remove redundant check.Ulf Magnusson
2012-12-12Use 'type' instead of 'get_type()' internally.Ulf Magnusson
2012-12-12Always count non-bool/tristate symbols as 'n' in tristate context.Ulf Magnusson
Previously a string symbol that happened to have the value "y" would count as "y" in tristate context, which is incorrect.
2012-12-12Use is_choice_item_ internally.Ulf Magnusson
2012-12-11Revert "Only invalidate if the user value actually changes.".Ulf Magnusson
This will break choices under certain circumstances.
2012-12-11Misc. doc cleanups.Ulf Magnusson
2012-12-11Clarify Symbol.get_value().Ulf Magnusson
2012-12-11Rename APIs to be more consistent and intuitive.Ulf Magnusson
2012-12-11Explain visibility better.Ulf Magnusson
Also improve various warnings and other comments.
2012-12-11Small set_value() clarification.Ulf Magnusson
2012-12-11Clarify documentation for set_value() and reset().Ulf Magnusson
Mentioning internals in the docstring for reset() is just confusing.
2012-12-11Remove calc_default_value().Ulf Magnusson
It's a weird and probably pretty useless API.
2012-12-11Add note about running examples.Ulf Magnusson
2012-12-11Make it possible to pass an argument via scriptconfig.Ulf Magnusson
2012-12-11Only invalidate if the user value actually changes.Ulf Magnusson
2012-12-11Expand set_value() documentation.Ulf Magnusson
2012-12-11Make 'source' error message more informative.Ulf Magnusson
2012-12-11Update _get_dependent() documentation.Ulf Magnusson
Returns a set, not a list.
2012-12-10Remove some semicolons.Ulf Magnusson
2012-12-10Remove _Feed.is_at_end().Ulf Magnusson
Unused.
2012-12-10Register refs. for symbols on the RHS of =/!=.Ulf Magnusson
Omission.
2012-12-10Copy less when searching for symbols.Ulf Magnusson
2012-12-10Do less copying of _Blocks.Ulf Magnusson
Make _parse_block/file() take an optional parameter that is a _Block to to add items to. This also cleans up the code a bit.
2012-12-10Fix outdated comment.Ulf Magnusson
2012-12-10Update references to old Linux versions.Ulf Magnusson
2012-12-10Put _make_and/or() globally.Ulf Magnusson
Preparation for later clean-up.
2012-12-10Put _get_expr_syms() globally.Ulf Magnusson
Preparation for later clean-up.
2012-12-10Simplify dependency generation and improve caching.Ulf Magnusson
- Get rid of Config.dep. Store direct dependencies in Symbol.dep instead. - Use recursive _get_dependent() calls in _get_dependent() to make best use of caching. This roughly doubles the speed of allnoconfig_simpler.py.
2012-12-09Clarify purpose of _build_dep().Ulf Magnusson
2012-12-09Avoid registering symbols for junk after a T_HELP token.Ulf Magnusson
2012-12-09Remove get_sibling_symbols/items().Ulf Magnusson
Can easily be had with Choice.get_items(), Menu.get_symbols/items(), and get_top_level_items(), and the interface is getting a bit cluttered. Scream if you were using this. :)
2012-12-09Make get_referenced_symbols() include symbols from ranges.Ulf Magnusson
Previously only included symbols from the condition for ranges.
2012-12-09Add note about internal APIs.Ulf Magnusson
2012-12-09Clarify _get_dependent() documentation.Ulf Magnusson
2012-12-09Spell nit.Ulf Magnusson
2012-12-09Make introduction less verbose.Ulf Magnusson
2012-12-08Register dependencies from ranges.Ulf Magnusson
Oversight.
2012-12-08Avoid getting 'self' as a dependency.Ulf Magnusson
Harmless but pointless.
2012-12-08Add _get_dependent() note.Ulf Magnusson
2012-12-08Reuse cached deps from other symbols in _get_dependent().Ulf Magnusson
Speeds up allnoconfig_simpler.py by 30%.