summaryrefslogtreecommitdiffstats
path: root/src/lua/lua_regexp.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-08-17 17:15:16 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-08-17 17:15:16 +0100
commitdf48f709f804739d1b084174c46af04b10d2fede (patch)
tree2bb3270a4db81104bfd3c8abf9b19381e5d926b4 /src/lua/lua_regexp.c
parentac1dfb0beccf74a9f3ec82dfc257ea326532370d (diff)
downloadrspamd-df48f709f804739d1b084174c46af04b10d2fede.tar.gz
rspamd-df48f709f804739d1b084174c46af04b10d2fede.zip
Rework lua function names to avoid ambiguity.
Diffstat (limited to 'src/lua/lua_regexp.c')
-rw-r--r--src/lua/lua_regexp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lua/lua_regexp.c b/src/lua/lua_regexp.c
index 53b5d2e05..90b40bef6 100644
--- a/src/lua/lua_regexp.c
+++ b/src/lua/lua_regexp.c
@@ -36,7 +36,7 @@ static const struct luaL_reg regexplib_m[] = {
LUA_INTERFACE_DEF (regexp, match),
LUA_INTERFACE_DEF (regexp, split),
LUA_INTERFACE_DEF (regexp, destroy),
- {"__tostring", lua_class_tostring},
+ {"__tostring", rspamd_lua_class_tostring},
{NULL, NULL}
};
static const struct luaL_reg regexplib_f[] = {
@@ -121,7 +121,7 @@ lua_regexp_create (lua_State *L)
new->re_flags = regexp_flags;
new->re_pattern = g_strdup (string);
pnew = lua_newuserdata (L, sizeof (struct rspamd_lua_regexp *));
- lua_setclass (L, "rspamd{regexp}", -1);
+ rspamd_lua_setclass (L, "rspamd{regexp}", -1);
*pnew = new;
re_cache_add (new->re_pattern, new, regexp_static_pool);
}
@@ -139,7 +139,7 @@ lua_regexp_get_cached (lua_State *L)
new = re_cache_check (line, regexp_static_pool);
if (new) {
pnew = lua_newuserdata (L, sizeof (struct rspamd_lua_regexp *));
- lua_setclass (L, "rspamd{regexp}", -1);
+ rspamd_lua_setclass (L, "rspamd{regexp}", -1);
*pnew = new;
}
else {