Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r61477 - in trunk/boost/spirit/home: karma/nonterminal qi/nonterminal
From: hartmut.kaiser_at_[hidden]
Date: 2010-04-21 20:40:53


Author: hkaiser
Date: 2010-04-21 20:40:52 EDT (Wed, 21 Apr 2010)
New Revision: 61477
URL: http://svn.boost.org/trac/boost/changeset/61477

Log:
Spirit: refactored debug code
Added:
   trunk/boost/spirit/home/karma/nonterminal/debug_handler_state.hpp (contents, props changed)
   trunk/boost/spirit/home/qi/nonterminal/debug_handler_state.hpp (contents, props changed)
Text files modified:
   trunk/boost/spirit/home/karma/nonterminal/debug_handler.hpp | 8 +-------
   trunk/boost/spirit/home/karma/nonterminal/simple_trace.hpp | 1 +
   trunk/boost/spirit/home/qi/nonterminal/debug_handler.hpp | 8 +-------
   trunk/boost/spirit/home/qi/nonterminal/simple_trace.hpp | 1 +
   4 files changed, 4 insertions(+), 14 deletions(-)

Modified: trunk/boost/spirit/home/karma/nonterminal/debug_handler.hpp
==============================================================================
--- trunk/boost/spirit/home/karma/nonterminal/debug_handler.hpp (original)
+++ trunk/boost/spirit/home/karma/nonterminal/debug_handler.hpp 2010-04-21 20:40:52 EDT (Wed, 21 Apr 2010)
@@ -13,6 +13,7 @@
 
 #include <boost/spirit/home/support/unused.hpp>
 #include <boost/spirit/home/karma/nonterminal/rule.hpp>
+#include <boost/spirit/home/karma/nonterminal/debug_handler_state.hpp>
 #include <boost/function.hpp>
 #include <boost/fusion/include/at.hpp>
 #include <boost/fusion/include/vector.hpp>
@@ -21,13 +22,6 @@
 
 namespace boost { namespace spirit { namespace karma
 {
- enum debug_handler_state
- {
- pre_generate
- , successful_generate
- , failed_generate
- };
-
     template <
         typename OutputIterator, typename Context, typename Delimiter
       , typename Properties, typename F>

Added: trunk/boost/spirit/home/karma/nonterminal/debug_handler_state.hpp
==============================================================================
--- (empty file)
+++ trunk/boost/spirit/home/karma/nonterminal/debug_handler_state.hpp 2010-04-21 20:40:52 EDT (Wed, 21 Apr 2010)
@@ -0,0 +1,23 @@
+// Copyright (c) 2001-2010 Hartmut Kaiser
+//
+// Distributed under the Boost Software License, Version 1.0. (See accompanying
+// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+
+#if !defined(BOOST_SPIRIT_KARMA_DEBUG_HANDLER_STATE_APR_21_2010_0736PM)
+#define BOOST_SPIRIT_KARMA_DEBUG_HANDLER_STATE_APR_21_2010_0736PM
+
+#if defined(_MSC_VER)
+#pragma once
+#endif
+
+namespace boost { namespace spirit { namespace karma
+{
+ enum debug_handler_state
+ {
+ pre_generate
+ , successful_generate
+ , failed_generate
+ };
+}}}
+
+#endif

Modified: trunk/boost/spirit/home/karma/nonterminal/simple_trace.hpp
==============================================================================
--- trunk/boost/spirit/home/karma/nonterminal/simple_trace.hpp (original)
+++ trunk/boost/spirit/home/karma/nonterminal/simple_trace.hpp 2010-04-21 20:40:52 EDT (Wed, 21 Apr 2010)
@@ -12,6 +12,7 @@
 #endif
 
 #include <boost/spirit/home/support/unused.hpp>
+#include <boost/spirit/home/karma/nonterminal/debug_handler_state.hpp>
 #include <boost/fusion/include/out.hpp>
 #include <iostream>
 

Modified: trunk/boost/spirit/home/qi/nonterminal/debug_handler.hpp
==============================================================================
--- trunk/boost/spirit/home/qi/nonterminal/debug_handler.hpp (original)
+++ trunk/boost/spirit/home/qi/nonterminal/debug_handler.hpp 2010-04-21 20:40:52 EDT (Wed, 21 Apr 2010)
@@ -13,6 +13,7 @@
 
 #include <boost/spirit/home/support/unused.hpp>
 #include <boost/spirit/home/qi/nonterminal/rule.hpp>
+#include <boost/spirit/home/qi/nonterminal/debug_handler_state.hpp>
 #include <boost/spirit/home/qi/operator/expect.hpp>
 #include <boost/function.hpp>
 #include <boost/fusion/include/at.hpp>
@@ -22,13 +23,6 @@
 
 namespace boost { namespace spirit { namespace qi
 {
- enum debug_handler_state
- {
- pre_parse
- , successful_parse
- , failed_parse
- };
-
     template <
         typename Iterator, typename Context
       , typename Skipper, typename F>

Added: trunk/boost/spirit/home/qi/nonterminal/debug_handler_state.hpp
==============================================================================
--- (empty file)
+++ trunk/boost/spirit/home/qi/nonterminal/debug_handler_state.hpp 2010-04-21 20:40:52 EDT (Wed, 21 Apr 2010)
@@ -0,0 +1,24 @@
+/*=============================================================================
+ Copyright (c) 2001-2010 Joel de Guzman
+
+ Distributed under the Boost Software License, Version 1.0. (See accompanying
+ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+==============================================================================*/
+#if !defined(BOOST_SPIRIT_DEBUG_HANDLER_STATE_APR_21_2010_0733PM)
+#define BOOST_SPIRIT_DEBUG_HANDLER_STATE_APR_21_2010_0733PM
+
+#if defined(_MSC_VER)
+#pragma once
+#endif
+
+namespace boost { namespace spirit { namespace qi
+{
+ enum debug_handler_state
+ {
+ pre_parse
+ , successful_parse
+ , failed_parse
+ };
+}}}
+
+#endif

Modified: trunk/boost/spirit/home/qi/nonterminal/simple_trace.hpp
==============================================================================
--- trunk/boost/spirit/home/qi/nonterminal/simple_trace.hpp (original)
+++ trunk/boost/spirit/home/qi/nonterminal/simple_trace.hpp 2010-04-21 20:40:52 EDT (Wed, 21 Apr 2010)
@@ -13,6 +13,7 @@
 #endif
 
 #include <boost/spirit/home/support/unused.hpp>
+#include <boost/spirit/home/qi/nonterminal/debug_handler_state.hpp>
 #include <boost/fusion/include/out.hpp>
 #include <iostream>
 #include <boost/mpl/if.hpp>


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk