summaryrefslogtreecommitdiffstats
path: root/src/uscxml
diff options
context:
space:
mode:
authorStefan Radomski <github@mintwerk.de>2017-01-23 11:04:28 (GMT)
committerStefan Radomski <github@mintwerk.de>2017-01-23 11:04:28 (GMT)
commitef66cbbaf07bd1ac661f9a9622dcdaf6851ca6ba (patch)
tree2af3a6293e90726a668d9e4a91055fc47c12c795 /src/uscxml
parentfd1d86595cbc34428b776470cd8ce849c4a04a11 (diff)
downloaduscxml-ef66cbbaf07bd1ac661f9a9622dcdaf6851ca6ba.zip
uscxml-ef66cbbaf07bd1ac661f9a9622dcdaf6851ca6ba.tar.gz
uscxml-ef66cbbaf07bd1ac661f9a9622dcdaf6851ca6ba.tar.bz2
Fixed a case-typo and the WITH_CACHE_FILES macro
Diffstat (limited to 'src/uscxml')
-rw-r--r--src/uscxml/interpreter/FastMicroStep.cpp9
-rw-r--r--src/uscxml/interpreter/FastMicroStep.h2
2 files changed, 9 insertions, 2 deletions
diff --git a/src/uscxml/interpreter/FastMicroStep.cpp b/src/uscxml/interpreter/FastMicroStep.cpp
index bf9749d..a5dcb58 100644
--- a/src/uscxml/interpreter/FastMicroStep.cpp
+++ b/src/uscxml/interpreter/FastMicroStep.cpp
@@ -18,6 +18,7 @@
*/
#undef USCXML_VERBOSE
+//#undef WITH_CACHE_FILES
#include "FastMicroStep.h"
#include "uscxml/util/DOM.h"
@@ -288,9 +289,11 @@ void FastMicroStep::init(XERCESC_NS::DOMElement* scxml) {
_states[0]->data = DOMUtils::filterChildElements(_xmlPrefix.str() + "data", dataModels, false);
}
+#ifdef WITH_CACHE_FILES
auto currState = cache.compound["states"].array.begin();
auto endState = cache.compound["states"].array.end();
-
+#endif
+
for (i = 0; i < _states.size(); i++) {
#ifdef WITH_CACHE_FILES
Data* cachedState = NULL;
@@ -430,9 +433,11 @@ COMPLETION_STABLISHED:
}
assert(tmp.size() == 0);
+#ifdef WITH_CACHE_FILES
auto currTrans = cache.compound["transitions"].array.begin();
auto endTrans = cache.compound["transitions"].array.end();
-
+#endif
+
for (i = 0; i < _transitions.size(); i++) {
#ifdef WITH_CACHE_FILES
diff --git a/src/uscxml/interpreter/FastMicroStep.h b/src/uscxml/interpreter/FastMicroStep.h
index 97b7eeb..6c5518d 100644
--- a/src/uscxml/interpreter/FastMicroStep.h
+++ b/src/uscxml/interpreter/FastMicroStep.h
@@ -33,6 +33,8 @@
#include <boost/dynamic_bitset.hpp>
+//#undef WITH_CACHE_FILES
+
#ifdef _WIN32
#define BITSET_BLOCKTYPE size_t
#else