** search function for strings */
| 453 | ** search function for strings |
| 454 | */ |
| 455 | const TValue *luaH_getstr (Table *t, TString *key) { |
| 456 | Node *n = hashstr(t, key); |
| 457 | do { /* check whether `key' is somewhere in the chain */ |
| 458 | if (ttisstring(gkey(n)) && rawtsvalue(gkey(n)) == key) |
| 459 | return gval(n); /* that's it */ |
| 460 | else n = gnext(n); |
| 461 | } while (n); |
| 462 | return luaO_nilobject; |
| 463 | } |
| 464 | |
| 465 | |
| 466 | /* |
no outgoing calls
no test coverage detected