blob: 1e7d023d9fa564b68dac8048ae8433193116e256 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
diff -ru ./src/lua/lua_common.h ../rspamd-0.8.0.p/src/lua/lua_common.h
--- ./src/lua/lua_common.h 2014-12-17 16:51:42.000000000 +0200
+++ ../rspamd-0.8.0.p/src/lua/lua_common.h 2015-01-09 14:25:09.696650229 +0200
@@ -25,21 +25,6 @@
lua_pushnumber (L, val); \
lua_settable (L, -3);
-#if LUA_VERSION_NUM > 501
-static inline void
-luaL_register (lua_State *L, const gchar *name, const struct luaL_reg *methods)
-{
- if (name != NULL) {
- lua_newtable (L);
- }
- luaL_setfuncs (L, methods, 0);
- if (name != NULL) {
- lua_pushvalue (L, -1);
- lua_setglobal (L, name);
- }
-}
-#endif
-
/* Interface definitions */
#define LUA_FUNCTION_DEF(class, name) static gint lua_ ## class ## _ ## name ( \
lua_State * L)
|