| 764 | |
| 765 | |
| 766 | static void f_parser (lua_State *L, void *ud) { |
| 767 | LClosure *cl; |
| 768 | struct SParser *p = cast(struct SParser *, ud); |
| 769 | int c = zgetc(p->z); /* read first character */ |
| 770 | // if (c == LUA_SIGNATURE[0]) { |
| 771 | // checkmode(L, p->mode, "binary"); |
| 772 | // cl = luaU_undump(L, p->z, p->name); |
| 773 | // } |
| 774 | // else { |
| 775 | checkmode(L, p->mode, "text"); |
| 776 | cl = luaY_parser(L, p->z, &p->buff, &p->dyd, p->name, c); |
| 777 | // } |
| 778 | lua_assert(cl->nupvalues == cl->p->sizeupvalues); |
| 779 | luaF_initupvals(L, cl); |
| 780 | } |
| 781 | |
| 782 | |
| 783 | int luaD_protectedparser (lua_State *L, ZIO *z, const char *name, |
nothing calls this directly
no test coverage detected