|
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?
-- Enrico