Searched hist:a51f9f0c480fc3d10f5938c91ea0a1dd82c10fb1 (Results 1 – 2 of 2) sorted by relevance
/freebsd/stand/lua/ |
H A D | drawer.lua | diff a51f9f0c480fc3d10f5938c91ea0a1dd82c10fb1 Wed Feb 21 05:48:37 CET 2018 Kyle Evans <kevans@FreeBSD.org> lualoader: Simplify menu definitions a little further
Allow "name" entries to be simple strings, instead of just functions. We know whether we support colors or not by the time any of this is setup, so all menu names that are basically static with colors sprinkled in are good candidates for simplification.
Also simplify "func" in many cases where it's just invoking another function with no arguments. The downside to this simplification is that the functions called can no longer be trivially replaced by a local module. The upside is that it removes another layer of indirection that we likely don't need.
These can be re-evaluated later if a compelling argument is raised, on a case-by-case basis, for replacement.
|
H A D | menu.lua | diff a51f9f0c480fc3d10f5938c91ea0a1dd82c10fb1 Wed Feb 21 05:48:37 CET 2018 Kyle Evans <kevans@FreeBSD.org> lualoader: Simplify menu definitions a little further
Allow "name" entries to be simple strings, instead of just functions. We know whether we support colors or not by the time any of this is setup, so all menu names that are basically static with colors sprinkled in are good candidates for simplification.
Also simplify "func" in many cases where it's just invoking another function with no arguments. The downside to this simplification is that the functions called can no longer be trivially replaced by a local module. The upside is that it removes another layer of indirection that we likely don't need.
These can be re-evaluated later if a compelling argument is raised, on a case-by-case basis, for replacement.
|