[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [ANN] Lua 5.3.2 (rc1) now available
- From: Enrico Colombini <erix@...>
- Date: Thu, 19 Nov 2015 09:12:47 +0100
On 19-Nov-15 05:49, Daurnimator wrote:
Why does ltablib.c now `#include <time.h>`
>Because `clock()` and `time()` are used to find a pivot element for sorting.
Ah, somehow I missed that. This seems a poor choice....
Could this be made configurable via moving to llimits.h?
Those calls could be a nuisance in embedded applications.
Perhaps replacing them with GET_PIVOT_SEED1(), GET_PIVOT_SEED2() macros,
or just a CHOOSE_PIVOT(lo, up) macro in luaconf.h?