diff options
author | Matthew Macy <[email protected]> | 2019-12-03 09:49:40 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2019-12-03 09:49:40 -0800 |
commit | 74d1d749596d9d60723e05be3a5e24600721a32c (patch) | |
tree | 861b52b4c81c660d2aca32c4b2f96a62fc183668 /module/lua/ltablib.c | |
parent | e69bb31b71f60b338fa5510dc48de298f394ad73 (diff) |
Move linux qsort def to platform header
Moving qsort to the platform header allows each platform to
provide an appropriate sorting implementation.
Reviewed-by: Allan Jude <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Matt Macy <[email protected]>
Closes #9663
Diffstat (limited to 'module/lua/ltablib.c')
-rw-r--r-- | module/lua/ltablib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/lua/ltablib.c b/module/lua/ltablib.c index be5b6375e..51cafffaa 100644 --- a/module/lua/ltablib.c +++ b/module/lua/ltablib.c @@ -244,7 +244,7 @@ static void auxsort (lua_State *L, int l, int u) { } /* repeat the routine for the larger one */ } -static int sort (lua_State *L) { +static int tsort (lua_State *L) { int n = aux_getn(L, 1); luaL_checkstack(L, 40, ""); /* assume array is smaller than 2^40 */ if (!lua_isnoneornil(L, 2)) /* is there a 2nd argument? */ @@ -266,7 +266,7 @@ static const luaL_Reg tab_funcs[] = { {"pack", pack}, {"unpack", unpack}, {"remove", tremove}, - {"sort", sort}, + {"sort", tsort}, {NULL, NULL} }; |