** equality for strings */
| 42 | ** equality for strings |
| 43 | */ |
| 44 | int luaS_eqstr (TString *a, TString *b) { |
| 45 | return (a->tsv.tt == b->tsv.tt) && |
| 46 | (a->tsv.tt == LUA_TSHRSTR ? eqshrstr(a, b) : luaS_eqlngstr(a, b)); |
| 47 | } |
| 48 | |
| 49 | |
| 50 | unsigned int luaS_hash (const char *str, size_t l, unsigned int seed) { |
no test coverage detected