function luaY.registerlocalvar(b,T,g)local R=T.fs local G=R.f b:growvector(T.L,G.locvars,R.nlocvars,G.sizelocvars,nil,b.SHRT_MAX,"\116\111\111 \109\097\110\121 \108\111\099\097\108 \118\097\114\105\097\098\108\101\115")G.locvars[R.nlocvars]={}G.locvars[R.nlocvars].varname=g local Y=R.nlocvars R.nlocvars=R.nlocvars+1 return Y end

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
