| 439 | |
| 440 | |
| 441 | static Node *getfreepos (Table *t) { |
| 442 | if (!isdummy(t)) { |
| 443 | while (t->lastfree > t->node) { |
| 444 | t->lastfree--; |
| 445 | if (ttisnil(gkey(t->lastfree))) |
| 446 | return t->lastfree; |
| 447 | } |
| 448 | } |
| 449 | return NULL; /* could not find a free place */ |
| 450 | } |
| 451 | |
| 452 | |
| 453 |