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