function luaY.open_func(A,H,W)local T=H.L local y=A:newproto(H.L)W.f=y W.prev=H.fs W.ls=H W.L=T H.fs=W W.pc=0 W.lasttarget=-1 W.jpc=luaK.NO_JUMP W.freereg=0 W.nk=0 W.np=0 W.nlocvars=0 W.nactvar=0 W.bl=nil y.source=H.source y.maxstacksize=2 W.h={}end
------------------------------------------------------------------------
-- opening of a function
------------------------------------------------------------------------
function luaY:open_func(ls, fs)
	local L = ls.L
	local f = self:newproto(ls.L)
	fs.f = f
	fs.prev = ls.fs -- linked list of funcstates
	fs.ls = ls
	fs.L = L
	ls.fs = fs
	fs.pc = 0
	fs.lasttarget = -1
	fs.jpc = luaK.NO_JUMP
	fs.freereg = 0
	fs.nk = 0
	fs.np = 0
	fs.nlocvars = 0
	fs.nactvar = 0
	fs.bl = nil
	f.source = ls.source
	f.maxstacksize = 2 -- registers 0/1 are always valid
	fs.h = {} -- constant table; was luaH_new call
	-- anchor table of constants and prototype (to avoid being collected)
	-- sethvalue2s(L, L->top, fs->h); incr_top(L); /* C */
	-- setptvalue2s(L, L->top, f); incr_top(L);
end
