dlua-compat.h (dovecot-2.3.16) | : | dlua-compat.h (dovecot-2.3.17) | ||
---|---|---|---|---|
skipping to change at line 59 | skipping to change at line 59 | |||
#endif | #endif | |||
#ifndef HAVE_LUA_TOINTEGERX | #ifndef HAVE_LUA_TOINTEGERX | |||
/* | /* | |||
* Lua 5.2 and 5.3 both have lua_tointegerx(), but their behavior is subtly | * Lua 5.2 and 5.3 both have lua_tointegerx(), but their behavior is subtly | |||
* different. Our compatibility wrapper matches the 5.3 behavior. | * different. Our compatibility wrapper matches the 5.3 behavior. | |||
*/ | */ | |||
lua_Integer lua_tointegerx(lua_State *L, int idx, int *isnum_r); | lua_Integer lua_tointegerx(lua_State *L, int idx, int *isnum_r); | |||
#endif | #endif | |||
#if LUA_VERSION_NUM > 501 && LUA_VERSION_NUM < 504 | ||||
/* | ||||
* lua_resume() compatibility function. Lua 5.4 expects an extra "nresults" | ||||
* argeument. | ||||
*/ | ||||
# define lua_resume(L, from, nargs, nresults) \ | ||||
lua_resume_compat(L, from, nargs, nresults) | ||||
int lua_resume_compat(lua_State *L, lua_State *from, int nargs, int *nresults); | ||||
#endif | ||||
#endif | #endif | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 10 lines changed or added |