[csw-devel] SF.net SVN: gar:[20898] csw/mgar/pkg/podofo/trunk

pfelecan at users.sourceforge.net pfelecan at users.sourceforge.net
Mon Apr 29 14:25:35 CEST 2013


Revision: 20898
          http://gar.svn.sourceforge.net/gar/?rev=20898&view=rev
Author:   pfelecan
Date:     2013-04-29 12:25:32 +0000 (Mon, 29 Apr 2013)
Log Message:
-----------
podofo/trunk: replace deprecated LUA API calls

Modified Paths:
--------------
    csw/mgar/pkg/podofo/trunk/Makefile

Added Paths:
-----------
    csw/mgar/pkg/podofo/trunk/files/0001-replace-deprecated-LUA-API-calls.patch

Modified: csw/mgar/pkg/podofo/trunk/Makefile
===================================================================
--- csw/mgar/pkg/podofo/trunk/Makefile	2013-04-29 10:14:58 UTC (rev 20897)
+++ csw/mgar/pkg/podofo/trunk/Makefile	2013-04-29 12:25:32 UTC (rev 20898)
@@ -18,8 +18,10 @@
 
 MASTER_SITES	=	$(SF_MIRRORS)
 DISTFILES		=	$(DISTNAME).tar.gz
+PATCHFILES		+=	0001-replace-deprecated-LUA-API-calls.patch
 
 BUILD_DEP_PKGS	+=	CSWcmake
+BUILD_DEP_PKGS	+=	CSWlua-dev
 
 GARCOMPILER			=	GNU
 CONFIGURE_ARGS		=	$(DIRPATHS)

Added: csw/mgar/pkg/podofo/trunk/files/0001-replace-deprecated-LUA-API-calls.patch
===================================================================
--- csw/mgar/pkg/podofo/trunk/files/0001-replace-deprecated-LUA-API-calls.patch	                        (rev 0)
+++ csw/mgar/pkg/podofo/trunk/files/0001-replace-deprecated-LUA-API-calls.patch	2013-04-29 12:25:32 UTC (rev 20898)
@@ -0,0 +1,48 @@
+From ba75ec3627b4459e71a52156f89a872928186a34 Mon Sep 17 00:00:00 2001
+From: Peter Felecan <pfelecan at opencsw.org>
+Date: Mon, 29 Apr 2013 14:00:29 +0200
+Subject: [PATCH] replace deprecated LUA API calls
+
+---
+ tools/podofocolor/luaconverter.cpp    | 4 ++--
+ tools/podofoimpose/planreader_lua.cpp | 2 +-
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/tools/podofocolor/luaconverter.cpp b/tools/podofocolor/luaconverter.cpp
+index cda5727..9b63f31 100644
+--- a/tools/podofocolor/luaconverter.cpp
++++ b/tools/podofocolor/luaconverter.cpp
+@@ -44,7 +44,7 @@ using namespace PoDoFo;
+ LuaMachina::LuaMachina()
+ {
+ 	/* Init the Lua interpreter */
+-	L = lua_open();
++	L = luaL_newstate();
+ 	if (!L)
+ 	{
+ 		throw std::runtime_error("Whoops! Failed to open lua!");
+@@ -117,7 +117,7 @@ PdfColor LuaConverter::GetColorFromReturnValue(const char* pszFunctionName)
+     size_t len;
+ 
+     luaL_checktype(m_machina.State(), 1, LUA_TTABLE);
+-    len = luaL_getn( m_machina.State(), -1 );
++    len = luaL_len( m_machina.State(), -1 );
+     // Lua 5.1 only
+     //len = lua_objlen( m_machina.State(), -1 );
+ 
+diff --git a/tools/podofoimpose/planreader_lua.cpp b/tools/podofoimpose/planreader_lua.cpp
+index 6c4664e..7ca7684 100644
+--- a/tools/podofoimpose/planreader_lua.cpp
++++ b/tools/podofoimpose/planreader_lua.cpp
+@@ -23,7 +23,7 @@
+ LuaMachina::LuaMachina()
+ {
+ 	/* Init the Lua interpreter */
+-	L = lua_open();
++	L = luaL_newstate();
+ 	if (!L)
+ 	{
+ 		throw std::runtime_error("Whoops! Failed to open lua!");
+-- 
+1.8.1.4
+

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list