Update the register.c for Lua