diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-05-15 10:07:25 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-05-15 10:07:25 -0300 |
commit | 934e77a286aeb97ca02badf56956ccc78217e9d0 (patch) | |
tree | 6994a5bc3d625d1d37156895a5b21bebb46f36a8 /ltable.c | |
parent | 6443185167c77adcc8552a3fee7edab7895db1a9 (diff) | |
download | lua-934e77a286aeb97ca02badf56956ccc78217e9d0.tar.gz lua-934e77a286aeb97ca02badf56956ccc78217e9d0.tar.bz2 lua-934e77a286aeb97ca02badf56956ccc78217e9d0.zip |
Details
- Better comments about short strings in opcodes.
- luaH_newkey made static.
Diffstat (limited to 'ltable.c')
-rw-r--r-- | ltable.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -662,7 +662,8 @@ static Node *getfreepos (Table *t) { | |||
662 | ** put new key in its main position; otherwise (colliding node is in its main | 662 | ** put new key in its main position; otherwise (colliding node is in its main |
663 | ** position), new key goes to an empty position. | 663 | ** position), new key goes to an empty position. |
664 | */ | 664 | */ |
665 | void luaH_newkey (lua_State *L, Table *t, const TValue *key, TValue *value) { | 665 | static void luaH_newkey (lua_State *L, Table *t, const TValue *key, |
666 | TValue *value) { | ||
666 | Node *mp; | 667 | Node *mp; |
667 | TValue aux; | 668 | TValue aux; |
668 | if (l_unlikely(ttisnil(key))) | 669 | if (l_unlikely(ttisnil(key))) |