Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37862133
en ru br
ALT Linux repositórios
S:0.9.8083-alt9
5.0: 0.8.7686-alt1
4.1: 0.6.5069-alt1.qa1

Group :: Jogos/Arcade
RPM: btanks

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: btanks-0.9.8083-lua-5.2.patch
Download


diff -up btanks-0.9.8083/engine/luaxx/state.cpp.lua-52 btanks-0.9.8083/engine/luaxx/state.cpp
--- btanks-0.9.8083/engine/luaxx/state.cpp.lua-52	2008-06-08 05:02:39.000000000 -0400
+++ btanks-0.9.8083/engine/luaxx/state.cpp	2013-05-13 10:43:52.493334782 -0400
@@ -5,6 +5,10 @@
 #include <assert.h>
 #include "mrt/chunk.h"
 
+#ifndef lua_open
+#define lua_open()     luaL_newstate()
+#endif
+
 using namespace luaxx;
 /*
 static void *l_alloc (void *ud, void *ptr, size_t osize, size_t nsize) {
@@ -59,7 +63,7 @@ static const char * chunk_reader(lua_Sta
 void State::load(const std::string &fname, const mrt::Chunk &data) {
 	//throw_ex(("implement me[%s]", fname.c_str()));
 	reader_state x(data);
-	int err = lua_load(state, chunk_reader, &x, fname.c_str());
+	int err = lua_load(state, chunk_reader, &x, fname.c_str(), NULL);
 	check_error(state, err);
 }
 
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009