Software /
code /
prosody
Comparison
util-src/table.c @ 12591:494577d883ff
util.table: Fix inaccurate comment
Probably a duplicate of the comment next to Lmove, recorded by mistake
Lpack can probably be removed at some point in the near future once we
are confident it is not used anywhere.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 11 Jul 2022 20:02:10 +0200 |
parent | 12575:1f6f05a98fcd |
child | 12976:a187600ec7d6 |
comparison
equal
deleted
inserted
replaced
12590:5eaf77114fdb | 12591:494577d883ff |
---|---|
9 static int Lcreate_table(lua_State *L) { | 9 static int Lcreate_table(lua_State *L) { |
10 lua_createtable(L, luaL_checkinteger(L, 1), luaL_checkinteger(L, 2)); | 10 lua_createtable(L, luaL_checkinteger(L, 1), luaL_checkinteger(L, 2)); |
11 return 1; | 11 return 1; |
12 } | 12 } |
13 | 13 |
14 /* COMPAT: w/ Lua pre-5.4 */ | 14 /* COMPAT: w/ Lua pre-5.2 */ |
15 static int Lpack(lua_State *L) { | 15 static int Lpack(lua_State *L) { |
16 unsigned int n_args = lua_gettop(L); | 16 unsigned int n_args = lua_gettop(L); |
17 lua_createtable(L, n_args, 1); | 17 lua_createtable(L, n_args, 1); |
18 lua_insert(L, 1); | 18 lua_insert(L, 1); |
19 | 19 |