From 48517ca661895a0c70093e78f165866cb9363206 Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Tue, 18 Feb 2014 09:56:23 +0100 Subject: Lanes init crash fix * bumped version to 3.9.1 * keeper array is allocated with master state's alloc function instead of malloc()/free() * prevent application crash when specifying a very large number of keepers in the configuration options * removed some keeper desinit legacy dead code * any error occuring during one-time inits is raised outside the one-time mutex protected code region --- src/tools.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tools.h') diff --git a/src/tools.h b/src/tools.h index ebe407b..5bd4b69 100644 --- a/src/tools.h +++ b/src/tools.h @@ -118,7 +118,7 @@ enum eLookupMode }; char const* push_deep_proxy( lua_State* L, DEEP_PRELUDE* prelude, enum eLookupMode mode_); -void luaG_inter_copy_package( lua_State* L, lua_State* L2, int _idx, enum eLookupMode mode_); +int luaG_inter_copy_package( lua_State* L, lua_State* L2, int package_idx_, enum eLookupMode mode_); int luaG_inter_copy( lua_State *L, lua_State *L2, uint_t n, enum eLookupMode mode_); int luaG_inter_move( lua_State *L, lua_State *L2, uint_t n, enum eLookupMode mode_); @@ -134,7 +134,7 @@ extern MUTEX_T mtid_lock; void populate_func_lookup_table( lua_State* L, int _i, char const* _name); void serialize_require( lua_State *L); int initialize_on_state_create( lua_State *L); -void call_on_state_create( lua_State* L, lua_State* from_, enum eLookupMode mode_); +int call_on_state_create( lua_State* L, lua_State* from_, enum eLookupMode mode_); extern MUTEX_T require_cs; -- cgit v1.2.3-55-g6feb