function luaY.registerlocalvar(V,a,k)local l=a.fs local n=l.f V:growvector(a.L,n.locvars,l.nlocvars,n.sizelocvars,nil,V.SHRT_MAX,"\116\111\111 \109\097\110\121 \108\111\099\097\108 \118\097\114\105\097\098\108\101\115")n.locvars[l.nlocvars]={}n.locvars[l.nlocvars].varname=k local C=l.nlocvars l.nlocvars=l.nlocvars+1 return C end
------------------------------------------------------------------------
-- creates struct entry for a local variable
-- * used only in new_localvar()
------------------------------------------------------------------------
function luaY:registerlocalvar(ls, varname)
	local fs = ls.fs
	local f = fs.f
	self:growvector(ls.L, f.locvars, fs.nlocvars, f.sizelocvars, nil, self.SHRT_MAX, "too many local variables")
	-- loop to initialize empty f.locvar positions not required
	f.locvars[fs.nlocvars] = {} -- LocVar
	f.locvars[fs.nlocvars].varname = varname
	-- luaC_objbarrier(ls.L, f, varname) /* GC */
	local nlocvars = fs.nlocvars
	fs.nlocvars = fs.nlocvars + 1
	return nlocvars
end
