"${CMAKE_SOURCE_DIR}/contrib/librdns"
"${CMAKE_SOURCE_DIR}/contrib/aho-corasick"
"${CMAKE_SOURCE_DIR}/contrib/lc-btrie"
+ "${CMAKE_SOURCE_DIR}/contrib/lpeg"
"${CMAKE_BINARY_DIR}/src" #Stored in the binary dir
"${CMAKE_BINARY_DIR}/src/libcryptobox")
/* number of siblings for each tree */
const byte numsiblings[] = {
0, 0, 0, /* char, set, any */
- 0, 0, /* true, false */
+ 0, 0, /* true, false */
1, /* rep */
2, 2, /* seq, choice */
1, 1, /* not, and */
{NULL, NULL}
};
-
-int luaopen_lpeg (lua_State *L);
int luaopen_lpeg (lua_State *L) {
luaL_newmetatable(L, PATTERN_T);
lua_pushnumber(L, MAXBACK); /* initialize maximum backtracking */
-/*
+/*
** $Id: lptree.h,v 1.2 2013/03/24 13:51:12 roberto Exp $
*/
#define lptree_h
-#include "lptypes.h"
+#include "lptypes.h"
/*
#define sib2(t) ((t) + (t)->u.ps)
-
+int luaopen_lpeg (lua_State *L);
*/
#include "lua_common.h"
#include "lua/global_functions.lua.h"
+#include "lptree.h"
/* Lua module init function */
#define MODULE_INIT_FUNC "module_init"
luaopen_fann (L);
luaopen_sqlite3 (L);
luaopen_cryptobox (L);
+ luaopen_lpeg (L);
rspamd_lua_add_preload (L, "ucl", luaopen_ucl);