From e30ea48c912be20ddc9c327205d146e46d60535e Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 4 May 2009 16:39:35 +0400 Subject: * Enable support of google perf tools --- src/cfg_file.y | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/cfg_file.y') 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 %type 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 -- cgit v1.2.3