diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-08-31 15:34:09 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-08-31 15:34:09 +0400 |
commit | 155f154d7aa04a7132a675b8040cbf7657b8dc68 (patch) | |
tree | 7f2e9ff7f5fc44e27c5b6e8065954a105fadbcb6 /src/cfg_file.y | |
parent | d77c3021ccbdf4994c8a5681ec99b99d978cb044 (diff) | |
download | rspamd-155f154d7aa04a7132a675b8040cbf7657b8dc68.tar.gz rspamd-155f154d7aa04a7132a675b8040cbf7657b8dc68.zip |
* Reorganze lua support in rspamd
Diffstat (limited to 'src/cfg_file.y')
-rw-r--r-- | src/cfg_file.y | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cfg_file.y b/src/cfg_file.y index 7a2aa3cb7..777a9367e 100644 --- a/src/cfg_file.y +++ b/src/cfg_file.y @@ -10,7 +10,7 @@ #include "tokenizers/tokenizers.h" #include "view.h" #ifdef WITH_LUA -#include "lua-rspamd.h" +#include "lua/lua_common.h" #else #include "perl.h" #endif @@ -460,18 +460,18 @@ requirecmd: MODULE EQSIGN QUOTEDSTRING { #if !defined(WITHOUT_PERL) || defined(WITH_LUA) struct stat st; - struct perl_module *cur; + struct script_module *cur; if (stat ($3, &st) == -1) { yyerror ("yyparse: cannot stat file %s, %s", $3, strerror (errno)); YYERROR; } - cur = memory_pool_alloc (cfg->cfg_pool, sizeof (struct perl_module)); + cur = memory_pool_alloc (cfg->cfg_pool, sizeof (struct script_module)); if (cur == NULL) { yyerror ("yyparse: g_malloc: %s", strerror(errno)); YYERROR; } cur->path = $3; - cfg->perl_modules = g_list_prepend (cfg->perl_modules, cur); + cfg->script_modules = g_list_prepend (cfg->script_modules, cur); #else yyerror ("require command is not available when perl support is not compiled"); YYERROR; |