lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> luaL_findstring no longer exists in Lua 5.1.

For the record, luaL_findstring was replaced by luaL_checkoption
because luaL_findstring was only used for checking options. This
change allows Lua to provide consistent error messages. However,
luaL_checkoption is not a drop-in replacement for luaL_findstring and
code that used luaL_findstring has to be modified a little to use
luaL_checkoption. Unfortunately, luaexpat calls luaL_findstring in a
loop and uses negative indices; without getting into that logic, the
simplest solution is to copy luaL_findstring, until the authors of
luaexpat update it for 5.1.
--lhf