summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@gmail.com>2012-03-09 21:10:17 +0000
committerMorgan Deters <mdeters@gmail.com>2012-03-09 21:10:17 +0000
commit84f26af22566f7c10dea45b399b944cb50b5e317 (patch)
tree68fbe22665cc09f46c321c6132e49dabbc15c337 /src/main
parentf29ea80fb3e238278a721d79077c9087bccbac0b (diff)
Some work on the dump infrastructure to support portfolio work.
Dump("foo") << FooCommand(...); now "dumps" the textual representation of the command (in the current output language) to a file, IF dumping is on at configure-time, AND the "muzzle" feature is off, AND the "foo" flag is turned on for the dump stream during this run. If it's a portfolio build, the above will also store the command in a CommandSequence, IF the "foo" flag is turned on for the dump stream during this run. This is done even if the muzzle is on. This commit also cleans up some code that used the dump feature (in arrays, particularly).
Diffstat (limited to 'src/main')
-rw-r--r--src/main/driver.cpp1
-rw-r--r--src/main/driver_portfolio.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/main/driver.cpp b/src/main/driver.cpp
index eb70f5c93..ef6b99715 100644
--- a/src/main/driver.cpp
+++ b/src/main/driver.cpp
@@ -38,6 +38,7 @@
#include "util/configuration.h"
#include "util/options.h"
#include "util/output.h"
+#include "util/dump.h"
#include "util/result.h"
#include "util/stats.h"
diff --git a/src/main/driver_portfolio.cpp b/src/main/driver_portfolio.cpp
index 363901c1d..d8a8e5afa 100644
--- a/src/main/driver_portfolio.cpp
+++ b/src/main/driver_portfolio.cpp
@@ -24,6 +24,7 @@
#include "util/configuration.h"
#include "util/options.h"
#include "util/output.h"
+#include "util/dump.h"
#include "util/result.h"
#include "util/stats.h"
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback