Commit Graph

235 Commits

Author SHA1 Message Date
Gunnar Beutner d23078d6c4 Make sure +=, -=, *= and /= behave like they did before.
Refs #5846
2014-03-23 17:26:31 +01:00
Gunnar Beutner aacc699dd4 Refactor the config parser's AST.
Refs #5846
2014-03-23 11:27:40 +01:00
Gunnar Beutner 67d8bc219e Clean up the AExpression class.
Refs #5846
2014-03-22 10:29:45 +01:00
Gunnar Beutner 24e029bdb0 Allow values as top-level statements.
Refs #5846
2014-03-22 09:50:44 +01:00
Gunnar Beutner ddbbd42c4b Implement the log() function.
Refs #5846
2014-03-22 09:47:29 +01:00
Gunnar Beutner 2a6a75d52e Improve error messages for exceptions in AExpressions.
Refs #5846
2014-03-22 08:40:09 +01:00
Gunnar Beutner c9590d5183 Fix location messages.
Refs #5825
2014-03-21 16:01:32 +01:00
Gunnar Beutner c0b10a8245 Make config error messages friendler.
Refs #5825
2014-03-21 15:58:13 +01:00
Gunnar Beutner c286c25183 Show additional lines for config errors.
Refs #5825
2014-03-21 15:51:55 +01:00
Gunnar Beutner 0b90444dd8 Build fix. 2014-03-21 15:41:00 +01:00
Gunnar Beutner dde483d7a8 Make config error messages more awesome.
Refs #5825
2014-03-21 15:39:52 +01:00
Gunnar Beutner 87e4b24686 Add line number info to duplicate object error message.
Refs #5825
2014-03-21 14:48:18 +01:00
Gunnar Beutner 7d7c8e8ec9 Fix path names in DebugInfo objects.
Refs #5825
2014-03-21 14:45:01 +01:00
Gunnar Beutner 8629071392 Improve line number information.
Fixes #5825
2014-03-21 10:28:58 +01:00
Gunnar Beutner 95bf7ca560 Make duplicate object definitions an error.
Fixes #3638
2014-03-20 15:38:29 +01:00
Gunnar Beutner 02fc3278c8 Implement missing operators for the Value class.
Fixes #5804
2014-03-20 13:02:31 +01:00
Michael Friedrich 1d32c5b2d3 Add --no-validate option and skip duplicate validation on (re)start.
Fixes #5800
2014-03-19 20:59:18 +01:00
Gunnar Beutner 46d7cf3d6a Implement len() and the operators >, >=, < and <=.
Refs #5789
2014-03-19 13:25:06 +01:00
Gunnar Beutner 3383951791 Implement regex() and match() functions.
Refs #5789
2014-03-19 12:46:23 +01:00
Gunnar Beutner 124fa9ebc1 Make braces around constant expressions optional.
Refs #5789
2014-03-19 12:46:23 +01:00
Gunnar Beutner f871758502 Fix the !in operator.
Refs #5789
2014-03-19 12:46:23 +01:00
Gunnar Beutner ec0557afea Implement additional operators: &&, ||, in and !in.
Refs #5789
2014-03-19 12:46:23 +01:00
Gunnar Beutner e0ad30a9c6 Allow arrays as operands in constant expressions.
Refs #5789
2014-03-19 12:46:23 +01:00
Gunnar Beutner caad7a7973 Implement the 'apply template' directive.
Refs #5789
2014-03-19 12:46:23 +01:00
Gunnar Beutner 3587dbbd13 Implement support for local variables in AExpressions.
Refs #5789
2014-03-19 12:46:23 +01:00
Gunnar Beutner 04b8724cb8 Implement == and != operators for AExpressions.
Refs #5789
2014-03-19 12:46:23 +01:00
Michael Friedrich ce737ff2f3 Change copyright header (again).
Fixes #5424
2014-03-19 11:42:47 +01:00
Gunnar Beutner 25dc86881a Make script variables constant.
Fixes #5446
2014-02-12 11:51:50 +01:00
Gunnar Beutner 663f72300b Fix validation for the "authorities" attribute.
Fixes #5593
2014-02-10 08:50:09 +01:00
Gunnar Beutner c818d94d93 Fix race condition in the config validator.
Fixes #5602
2014-02-05 12:00:37 +01:00
Gunnar Beutner f9e8e204f9 Fix: Crash when state file is invalid.
Fixes #5361
2014-01-28 14:33:21 +01:00
Michael Friedrich 555d72150a Update copyright header.
Fixes #5424
2014-01-09 00:32:11 +01:00
Gunnar Beutner 3e5af43e4d Don't cache config item properties.
Refs #5400
2013-12-20 13:31:13 +01:00
Gunnar Beutner 38aa231a2d Discard unused config items as early as possibly.
Refs #5400
2013-12-20 13:31:13 +01:00
Gunnar Beutner 162cee5c40 Remove the ConsoleLogger class and keep the default console log enabled until we daemonize.
Refs #5342
2013-12-16 17:23:23 +01:00
Michael Friedrich 9452bc7095 Only print config validation for existing objects.
Refs #5298
2013-12-16 09:39:14 +01:00
Gunnar Beutner 807d0a47e6 Fix spelling mistake in ConfigItem::ActivateItems.
Fixes #5334
2013-12-15 18:47:11 +01:00
Gunnar Beutner 0af81f2da2 Fix race conditions in the config compiler.
Fixes #5335
2013-12-15 11:54:22 +01:00
Gunnar Beutner 4563bb355f Fix another race condition in DynamicObject::Start.
Fixes #5330
2013-12-14 07:36:49 +01:00
Michael Friedrich c66878fa45 Add config validation stats.
Fixes #5298
2013-12-13 16:53:40 +01:00
Gunnar Beutner f8d7f7799e Improve WorkQueue performance
Refs #5327
2013-12-13 14:08:06 +01:00
Gunnar Beutner b4f2f06b88 Implement ParallelWorkQueue class.
Refs #5327
2013-12-13 14:08:02 +01:00
Gunnar Beutner b5792a0b81 Avoid using ConfigItem::GetObject when possible.
Refs #5327
2013-12-13 14:07:57 +01:00
Gunnar Beutner 37179cdf32 Improve config compiler performance.
Refs #5327
2013-12-13 14:07:37 +01:00
Michael Friedrich e6c6a7dc52 Use exclamation mark for auto-generated config item names.
Fixes #5318
2013-12-12 11:50:08 +01:00
Gunnar Beutner 41ded2858c Implement scheduled downtimes.
Fixes #3584
2013-12-06 13:45:18 +01:00
Gunnar Beutner e540685e13 Implement support for constants in the config parser.
Refs #4946
2013-12-04 11:32:45 +01:00
Gunnar Beutner c92625770c Fix leak in the config parser.
Refs #4946
2013-12-04 10:39:46 +01:00
Gunnar Beutner 6625346922 Speed up config compiler.
Fixes #5255
2013-12-03 09:59:21 +01:00
Gunnar Beutner 553bd3246b Improve compatibility with -fvisibility=hidden.
Refs #5246
2013-12-02 11:07:41 +01:00