aboutsummaryrefslogtreecommitdiff
path: root/src/tools.h
diff options
context:
space:
mode:
authorBenoit Germain <bnt period germain arrobase gmail period com>2014-02-18 09:56:23 +0100
committerBenoit Germain <bnt period germain arrobase gmail period com>2014-02-18 09:56:23 +0100
commit48517ca661895a0c70093e78f165866cb9363206 (patch)
treea440e16a69b0a85cdb5663ba181a1c3ac2bf0bc5 /src/tools.h
parent5f092fe0ec8b6942c63262e7c14c7e4ba913b023 (diff)
downloadlanes-48517ca661895a0c70093e78f165866cb9363206.tar.gz
lanes-48517ca661895a0c70093e78f165866cb9363206.tar.bz2
lanes-48517ca661895a0c70093e78f165866cb9363206.zip
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
Diffstat (limited to 'src/tools.h')
-rw-r--r--src/tools.h4
1 files changed, 2 insertions, 2 deletions
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
118}; 118};
119 119
120char const* push_deep_proxy( lua_State* L, DEEP_PRELUDE* prelude, enum eLookupMode mode_); 120char const* push_deep_proxy( lua_State* L, DEEP_PRELUDE* prelude, enum eLookupMode mode_);
121void luaG_inter_copy_package( lua_State* L, lua_State* L2, int _idx, enum eLookupMode mode_); 121int luaG_inter_copy_package( lua_State* L, lua_State* L2, int package_idx_, enum eLookupMode mode_);
122 122
123int luaG_inter_copy( lua_State *L, lua_State *L2, uint_t n, enum eLookupMode mode_); 123int luaG_inter_copy( lua_State *L, lua_State *L2, uint_t n, enum eLookupMode mode_);
124int luaG_inter_move( lua_State *L, lua_State *L2, uint_t n, enum eLookupMode mode_); 124int luaG_inter_move( lua_State *L, lua_State *L2, uint_t n, enum eLookupMode mode_);
@@ -134,7 +134,7 @@ extern MUTEX_T mtid_lock;
134void populate_func_lookup_table( lua_State* L, int _i, char const* _name); 134void populate_func_lookup_table( lua_State* L, int _i, char const* _name);
135void serialize_require( lua_State *L); 135void serialize_require( lua_State *L);
136int initialize_on_state_create( lua_State *L); 136int initialize_on_state_create( lua_State *L);
137void call_on_state_create( lua_State* L, lua_State* from_, enum eLookupMode mode_); 137int call_on_state_create( lua_State* L, lua_State* from_, enum eLookupMode mode_);
138 138
139extern MUTEX_T require_cs; 139extern MUTEX_T require_cs;
140 140