** search function for strings */
| 9693 | ** search function for strings |
| 9694 | */ |
| 9695 | const TValue *luaH_getstr (Table *t, TString *key) { |
| 9696 | Node *n = hashstr(t, key); |
| 9697 | do { /* check whether `key' is somewhere in the chain */ |
| 9698 | if (ttisstring(gkey(n)) && rawtsvalue(gkey(n)) == key) |
| 9699 | return gval(n); /* that's it */ |
| 9700 | else n = gnext(n); |
| 9701 | } while (n); |
| 9702 | return luaO_nilobject; |
| 9703 | } |
| 9704 | |
| 9705 | |
| 9706 | /* |
no outgoing calls
no test coverage detected