** creates a new string object */
| 165 | ** creates a new string object |
| 166 | */ |
| 167 | static TString *createstrobj (lua_State *L, size_t totalsize, lu_byte tag, |
| 168 | unsigned h) { |
| 169 | TString *ts; |
| 170 | GCObject *o; |
| 171 | o = luaC_newobj(L, tag, totalsize); |
| 172 | ts = gco2ts(o); |
| 173 | ts->hash = h; |
| 174 | ts->extra = 0; |
| 175 | return ts; |
| 176 | } |
| 177 | |
| 178 | |
| 179 | TString *luaS_createlngstrobj (lua_State *L, size_t l) { |
no test coverage detected