- Better comments about short strings in opcodes.
- luaH_newkey made static.
This commit is contained in:
Roberto Ierusalimschy
2023-05-15 10:07:25 -03:00
parent 6443185167
commit 934e77a286
5 changed files with 14 additions and 14 deletions

View File

@@ -662,7 +662,8 @@ static Node *getfreepos (Table *t) {
** put new key in its main position; otherwise (colliding node is in its main
** position), new key goes to an empty position.
*/
void luaH_newkey (lua_State *L, Table *t, const TValue *key, TValue *value) {
static void luaH_newkey (lua_State *L, Table *t, const TValue *key,
TValue *value) {
Node *mp;
TValue aux;
if (l_unlikely(ttisnil(key)))