Lines Matching refs:gm
839 GMatchState *gm = (GMatchState *)lua_touserdata(L, lua_upvalueindex(3)); in gmatch_aux() local
841 gm->ms.L = L; in gmatch_aux()
842 for (src = gm->src; src <= gm->ms.src_end; src++) { in gmatch_aux()
844 reprepstate(&gm->ms); in gmatch_aux()
845 if ((e = match(&gm->ms, src, gm->p)) != NULL && e != gm->lastmatch) { in gmatch_aux()
846 gm->src = gm->lastmatch = e; in gmatch_aux()
847 return push_captures(&gm->ms, src, e); in gmatch_aux()
859 GMatchState *gm; in gmatch() local
861 gm = (GMatchState *)lua_newuserdatauv(L, sizeof(GMatchState), 0); in gmatch()
864 prepstate(&gm->ms, L, s, ls, p, lp); in gmatch()
865 gm->src = s + init; gm->p = p; gm->lastmatch = NULL; in gmatch()