diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-05-04 16:39:35 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-05-04 16:39:35 +0400 |
commit | e30ea48c912be20ddc9c327205d146e46d60535e (patch) | |
tree | bd01b7906d88ad8a009afb3c082aad14b15aef88 /src/cfg_file.y | |
parent | 1670afcda506b1641e8b0dc34b894f7ab2817607 (diff) | |
download | rspamd-e30ea48c912be20ddc9c327205d146e46d60535e.tar.gz rspamd-e30ea48c912be20ddc9c327205d146e46d60535e.zip |
* Enable support of google perf tools
Diffstat (limited to 'src/cfg_file.y')
-rw-r--r-- | src/cfg_file.y | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/cfg_file.y b/src/cfg_file.y index 9ddc5850f..e4e4d8dbe 100644 --- a/src/cfg_file.y +++ b/src/cfg_file.y @@ -48,7 +48,7 @@ struct statfile_section *cur_section = NULL; %token LOGGING LOG_TYPE LOG_TYPE_CONSOLE LOG_TYPE_SYSLOG LOG_TYPE_FILE %token LOG_LEVEL LOG_LEVEL_DEBUG LOG_LEVEL_INFO LOG_LEVEL_WARNING LOG_LEVEL_ERROR LOG_FACILITY LOG_FILENAME %token STATFILE ALIAS PATTERN WEIGHT STATFILE_POOL_SIZE SIZE TOKENIZER CLASSIFIER -%token DELIVERY LMTP ENABLED AGENT SECTION LUACODE RAW_MODE +%token DELIVERY LMTP ENABLED AGENT SECTION LUACODE RAW_MODE PROFILE_FILE %type <string> STRING %type <string> VARIABLE @@ -94,6 +94,7 @@ command : | delivery | luacode | raw_mode + | profile_file ; tempdir : @@ -842,6 +843,16 @@ raw_mode: } ; +profile_file: + PROFILE_FILE EQSIGN QUOTEDSTRING { +#ifdef WITH_GPREF_TOOLS + cfg->profile_path = $3; +#else + yywarn ("yyparse: profile_file directive is ignored as gperf support is not enabled"); +#endif + } + ; + %% /* * vi:ts=4 |