Lines Matching refs:gm
847 GMatchState *gm = (GMatchState *)lua_touserdata(L, lua_upvalueindex(3)); in gmatch_aux() local
849 gm->ms.L = L; in gmatch_aux()
850 for (src = gm->src; src <= gm->ms.src_end; src++) { in gmatch_aux()
852 reprepstate(&gm->ms); in gmatch_aux()
853 if ((e = match(&gm->ms, src, gm->p)) != NULL && e != gm->lastmatch) { in gmatch_aux()
854 gm->src = gm->lastmatch = e; in gmatch_aux()
855 return push_captures(&gm->ms, src, e); in gmatch_aux()
867 GMatchState *gm; in gmatch() local
869 gm = (GMatchState *)lua_newuserdatauv(L, sizeof(GMatchState), 0); in gmatch()
872 prepstate(&gm->ms, L, s, ls, p, lp); in gmatch()
873 gm->src = s + init; gm->p = p; gm->lastmatch = NULL; in gmatch()