mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
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:
parent
26cc4e11f5
commit
78e5891cd3
3 changed files with 4 additions and 1 deletions
1
AUTHORS
1
AUTHORS
|
@ -65,6 +65,7 @@ The following submitted code, packages or analysis, and deserve special thanks:
|
|||
Martin Klepsch
|
||||
Ralph Bean
|
||||
Uli Martens
|
||||
Michal Vyskocil
|
||||
|
||||
Thanks to the following, who submitted detailed bug reports and excellent
|
||||
suggestions:
|
||||
|
|
|
@ -265,6 +265,8 @@
|
|||
+ Fixed problem with duplicate 'project changed' messages (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 ------------------------------
|
||||
|
||||
|
|
|
@ -131,7 +131,7 @@ API::~API ()
|
|||
void API::initialize ()
|
||||
{
|
||||
// Initialize Lua.
|
||||
_state = lua_open ();
|
||||
_state = luaL_newstate ();
|
||||
luaL_openlibs (_state); // TODO Error handling
|
||||
|
||||
// Register all the API functions in Lua global space.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue