[Freeciv-Dev] [bug #23147] Mysql luasql backend uses deprecated luaL_optint()

2015-01-07 Thread Marko Lindqvist
Update of bug #23147 (project freeciv):

  Status:  Ready For Test = Fixed  
 Assigned to:None = cazfi  
 Open/Closed:Open = Closed 


___

Reply to this item at:

  http://gna.org/bugs/?23147

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #23147] Mysql luasql backend uses deprecated luaL_optint()

2015-01-05 Thread Marko Lindqvist
URL:
  http://gna.org/bugs/?23147

 Summary: Mysql luasql backend uses deprecated luaL_optint()
 Project: Freeciv
Submitted by: cazfi
Submitted on: Mon 05 Jan 2015 02:32:13 PM EET
Category: general
Severity: 3 - Normal
Priority: 5 - Normal
  Status: Ready For Test
 Assigned to: None
Originator Email: 
 Open/Closed: Open
 Release: 
 Discussion Lock: Any
Operating System: None
 Planned Release: 2.6.0, 3.0.0

___

Details:

First reported by jtn on mailing-list:
https://mail.gna.org/public/freeciv-dev/2015-01/msg00098.html

We could either enable compatibility mode in lua compilation, or to change the
call to new luaL_optinteger() one.
Since we're not going back to lua versions where luaL_optinteger() was not
available, using that is more sustainable solution than using luaL_optint()
via compatibility mode as long as it stays available that way.

Fix attached. luaL_optinteger() exist in lua-5.2 so this is safe to commit
also to S2_6 already.



___

File Attachments:


---
Date: Mon 05 Jan 2015 02:32:13 PM EET  Name: LuaLOptInteger.patch  Size: 604B 
 By: cazfi

http://gna.org/bugs/download.php?file_id=23405

___

Reply to this item at:

  http://gna.org/bugs/?23147

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev