Joerg Sonnenberger wrote:
> On Sat, Jul 12, 2014 at 09:34:28PM +1000, Bruce Evans wrote:
> > Run time:
> > C++ sort() was twice as slow as qsort() for sorting 1 million dummy
> > users in the allocation tests. About 8 seconds instead of 4, except
> > when compiled with -g -O0 it was 15 seconds ins
Kyle Evans wrote:
> +function core.isSingleUserBoot()
> + local single_user = loader.getenv("boot_single");
> + return single_user ~= nil and single_user:lower() == "yes";
> +end
Just curious, why do you end all lines with semi-colons? It's not very
common in Lua code.
This version looks
Kyle Evans wrote:
> + -- Swap the first two menu items on single user boot
> + if (core.isSingleUserBoot()) then
> + local multiuser = menu_entries[1];
> + local singleuser = menu_entries[2];
> +
> + menu_entries[2]
Ian Lepore wrote:
> On Mon, 2018-02-19 at 22:29 +, Kyle Evans wrote:
> >
> > +???-- Swap the first two menu entries
> > +???menu_entries[1], menu_entries[2] = menu_entries[2],
> > +?? menu_entries[1];
> > ?
>
> IMO, this is the s