From 900f364e367316e80c2f21bdbadbec540f582e40 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 5 Mar 2024 14:43:07 +0000 Subject: [Rework] Use direct hashing instead of string hashing --- src/lua/lua_common.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/lua/lua_common.h') diff --git a/src/lua/lua_common.h b/src/lua/lua_common.h index b46c0bfc9..31a8c2fac 100644 --- a/src/lua/lua_common.h +++ b/src/lua/lua_common.h @@ -176,6 +176,8 @@ void rspamd_lua_new_class(lua_State *L, /** * Set class name for object at @param objidx position +* @param L + * @param classname **MUST BE STATIC**, direct address is used for comparisons! */ void rspamd_lua_setclass(lua_State *L, const gchar *classname, gint objidx); @@ -537,7 +539,7 @@ gsize lua_logger_out_type(lua_State *L, gint pos, gchar *outbuf, * Safely checks userdata to match specified class * @param L * @param pos -* @param classname +* @param classname **MUST BE STATIC**, direct address is used for comparisons! */ void *rspamd_lua_check_udata(lua_State *L, gint pos, const gchar *classname); @@ -554,7 +556,7 @@ void *rspamd_lua_check_udata(lua_State *L, gint pos, const gchar *classname); * Safely checks userdata to match specified class * @param L * @param pos -* @param classname +* @param classname **MUST BE STATIC**, direct address is used for comparisons! */ void *rspamd_lua_check_udata_maybe(lua_State *L, gint pos, const gchar *classname); -- cgit v1.2.3