Portability

- lua_open has been declared as deprecated in lua 5.1 and removed from
  5.2. Usage of luaL_newstate is thus recommended in both series.

Signed-off-by: Paul Beckingham <paul@beckingham.net>
This commit is contained in:
Michal Vyskocil 2012-02-15 19:26:26 -05:00 committed by Paul Beckingham
parent 26cc4e11f5
commit 78e5891cd3
3 changed files with 4 additions and 1 deletions

View file

@ -65,6 +65,7 @@ The following submitted code, packages or analysis, and deserve special thanks:
Martin Klepsch Martin Klepsch
Ralph Bean Ralph Bean
Uli Martens Uli Martens
Michal Vyskocil
Thanks to the following, who submitted detailed bug reports and excellent Thanks to the following, who submitted detailed bug reports and excellent
suggestions: suggestions:

View file

@ -265,6 +265,8 @@
+ Fixed problem with duplicate 'project changed' messages (thanks to Owen + Fixed problem with duplicate 'project changed' messages (thanks to Owen
Clarke). Clarke).
+ Fixed problem with non-UTC defaults for "TZ" (thanks to Owen Clarke). + Fixed problem with non-UTC defaults for "TZ" (thanks to Owen Clarke).
+ Removed use of Lua API call that is deprecated in 5.1 and removed from 5.2
(thanks to Michal Vyskocil).
------ old releases ------------------------------ ------ old releases ------------------------------

View file

@ -131,7 +131,7 @@ API::~API ()
void API::initialize () void API::initialize ()
{ {
// Initialize Lua. // Initialize Lua.
_state = lua_open (); _state = luaL_newstate ();
luaL_openlibs (_state); // TODO Error handling luaL_openlibs (_state); // TODO Error handling
// Register all the API functions in Lua global space. // Register all the API functions in Lua global space.