diff options
author | Dmitriy Alekseev <1865999+dragoangel@users.noreply.github.com> | 2024-11-04 11:07:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-04 11:07:19 +0100 |
commit | 0d6acc9aba4f8515e10ab6f3677e737f5d89d40f (patch) | |
tree | 366c963ce17a1e3a30379548ba48e000d7bf9685 /src/lua/lua_common.h | |
parent | f7ba1730b0579ebb0b3a41280f6d64b5e02c09e3 (diff) | |
parent | 80cb50dea482246656a49e54a915bdc343ffe897 (diff) | |
download | rspamd-0d6acc9aba4f8515e10ab6f3677e737f5d89d40f.tar.gz rspamd-0d6acc9aba4f8515e10ab6f3677e737f5d89d40f.zip |
Merge branch 'master' into actualize-elastic-module
Diffstat (limited to 'src/lua/lua_common.h')
-rw-r--r-- | src/lua/lua_common.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lua/lua_common.h b/src/lua/lua_common.h index 198735c66..1d39d0c52 100644 --- a/src/lua/lua_common.h +++ b/src/lua/lua_common.h @@ -94,8 +94,7 @@ static inline int lua_absindex(lua_State *L, int i) #define LUA_PUBLIC_FUNCTION_DEF(class, name) int lua_##class##_##name(lua_State *L) #define LUA_INTERFACE_DEF(class, name) \ { \ - #name, lua_##class##_##name \ - } + #name, lua_##class##_##name} extern const luaL_reg null_reg[]; @@ -281,7 +280,7 @@ struct rspamd_lua_text *lua_check_text_or_string(lua_State *L, int pos); * @return */ struct rspamd_lua_text *lua_new_text(lua_State *L, const char *start, - gsize len, gboolean own); + gsize len, gboolean allocate_memory); /** * Create new text object from task pool if allocation is needed * @param task |