diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-05-28 18:42:45 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-05-28 18:42:45 +0100 |
commit | 565c37fca091c01a296179722b2abc3a3420a94a (patch) | |
tree | 46c46eb3425e0d9a100417b03856eaa480d557d9 /contrib/lpeg | |
parent | caa85eb1ec3cae941795dea727e794625b9c8bf3 (diff) | |
download | rspamd-565c37fca091c01a296179722b2abc3a3420a94a.tar.gz rspamd-565c37fca091c01a296179722b2abc3a3420a94a.zip |
[Fix] Link lpeg to rspamd lua library
Diffstat (limited to 'contrib/lpeg')
-rw-r--r-- | contrib/lpeg/lptree.c | 4 | ||||
-rw-r--r-- | contrib/lpeg/lptree.h | 6 |
2 files changed, 4 insertions, 6 deletions
diff --git a/contrib/lpeg/lptree.c b/contrib/lpeg/lptree.c index ac5f51503..bc82ae8da 100644 --- a/contrib/lpeg/lptree.c +++ b/contrib/lpeg/lptree.c @@ -21,7 +21,7 @@ /* 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 */ @@ -1280,8 +1280,6 @@ static struct luaL_Reg metareg[] = { {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 */ diff --git a/contrib/lpeg/lptree.h b/contrib/lpeg/lptree.h index b69528a6f..38a668e9f 100644 --- a/contrib/lpeg/lptree.h +++ b/contrib/lpeg/lptree.h @@ -1,4 +1,4 @@ -/* +/* ** $Id: lptree.h,v 1.2 2013/03/24 13:51:12 roberto Exp $ */ @@ -6,7 +6,7 @@ #define lptree_h -#include "lptypes.h" +#include "lptypes.h" /* @@ -69,7 +69,7 @@ extern const byte numsiblings[]; #define sib2(t) ((t) + (t)->u.ps) - +int luaopen_lpeg (lua_State *L); |