MCPcopy Create free account
hub / github.com/DFHack/dfhack / prepstate

Function prepstate

depends/lua/src/lstrlib.c:591–598  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

589
590
591static void prepstate (MatchState *ms, lua_State *L,
592 const char *s, size_t ls, const char *p, size_t lp) {
593 ms->L = L;
594 ms->matchdepth = MAXCCALLS;
595 ms->src_init = s;
596 ms->src_end = s + ls;
597 ms->p_end = p + lp;
598}
599
600
601static void reprepstate (MatchState *ms) {

Callers 3

str_find_auxFunction · 0.85
gmatchFunction · 0.85
str_gsubFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected