** Clear keys for empty entries in tables. If entry is empty, mark its ** entry as dead. This allows the collection of the key, but keeps its ** entry in the table: its removal could break a chain and could break ** a table traversal. Other places never manipulate dead keys, because ** its associated empty value is enough to signal that the entry is ** logically empty. */
| 169 | ** logically empty. |
| 170 | */ |
| 171 | static void clearkey (Node *n) { |
| 172 | lua_assert(isempty(gval(n))); |
| 173 | if (keyiscollectable(n)) |
| 174 | setdeadkey(n); /* unused key; remove it */ |
| 175 | } |
| 176 | |
| 177 | |
| 178 | /* |
no outgoing calls
no test coverage detected