Boost logo

Boost-Commit :

From: joel_at_[hidden]
Date: 2008-04-18 17:09:11


Author: djowel
Date: 2008-04-18 17:09:11 EDT (Fri, 18 Apr 2008)
New Revision: 44560
URL: http://svn.boost.org/trac/boost/changeset/44560

Log:
fixed rule accepting any type of skipper but doing nothing
Text files modified:
   trunk/boost/spirit/home/qi/debug/detail/debug_handler.hpp | 30 +++++++++++++++---------------
   1 files changed, 15 insertions(+), 15 deletions(-)

Modified: trunk/boost/spirit/home/qi/debug/detail/debug_handler.hpp
==============================================================================
--- trunk/boost/spirit/home/qi/debug/detail/debug_handler.hpp (original)
+++ trunk/boost/spirit/home/qi/debug/detail/debug_handler.hpp 2008-04-18 17:09:11 EDT (Fri, 18 Apr 2008)
@@ -26,8 +26,8 @@
 
     struct trace_level
     {
- trace_level(int &level)
- : level(level)
+ trace_level(int &level)
+ : level(level)
         {
             ++level;
         }
@@ -35,27 +35,27 @@
         {
             --level;
         }
-
+
         int& level;
     };
-
+
     ///////////////////////////////////////////////////////////////////////////
     template <
         typename Iterator, typename Context, typename Skipper,
         typename PreParseF, typename PostParseF
>
- struct debug_handler
+ struct debug_handler
       : qi::detail::virtual_component_base<Iterator, Context, Skipper>
     {
- typedef
- qi::detail::virtual_component_base<Iterator, Context, Skipper>
+ typedef
+ qi::detail::virtual_component_base<Iterator, Context, Skipper>
         base_type;
         typedef intrusive_ptr<base_type> pointer_type;
         typedef typename base_type::skipper_type skipper_type;
 
         debug_handler(pointer_type subject, std::string const& name,
                 bool trace, PreParseF preF, PostParseF postF)
- : subject(subject), name(name), trace(trace),
+ : subject(subject), name(name), trace(trace),
             preF(preF), postF(postF)
         {
         }
@@ -67,21 +67,21 @@
           , Context& context
           , Skipper_ const& skipper)
         {
- // execute embedded parser if tracing is disabled or if the
+ // execute embedded parser if tracing is disabled or if the
             // pre-parse hook returns true
             bool r = false;
- if (!trace || preF(name, subject, get_trace_level(), first, last))
+ if (!trace || preF(name, subject, get_trace_level(), first, last))
             {
                 {
                     trace_level level(get_trace_level());
-
+
                     // do the actual parsing
                     Iterator i = first;
                     r = subject->parse(i, last, context, skipper);
                     if (r)
                         first = i;
                 }
-
+
                 // the post-parse hook gets executed only if tracing is enabled
                 if (trace)
                     postF(r, name, subject, get_trace_level(), first, last);
@@ -104,7 +104,7 @@
             Iterator& first
           , Iterator const& last
           , Context& context
- , unused_type)
+ , accept_unused_only)
         {
             return parse_main(first, last, context, unused);
         }
@@ -115,8 +115,8 @@
         PreParseF preF;
         PostParseF postF;
     };
-
-}
+
+}
 }}}}
 
 #endif


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