Boost logo

Boost-Commit :

From: hartmut.kaiser_at_[hidden]
Date: 2008-02-14 17:01:55


Author: hkaiser
Date: 2008-02-14 17:01:54 EST (Thu, 14 Feb 2008)
New Revision: 43262
URL: http://svn.boost.org/trac/boost/changeset/43262

Log:
Fixed a whitespace insertion glitch, where whitespace got inserted unconditionally between two operators even if one of these was a comma.
Text files modified:
   trunk/boost/wave/util/insert_whitespace_detection.hpp | 3 ++-
   trunk/libs/wave/ChangeLog | 10 ++++++----
   2 files changed, 8 insertions(+), 5 deletions(-)

Modified: trunk/boost/wave/util/insert_whitespace_detection.hpp
==============================================================================
--- trunk/boost/wave/util/insert_whitespace_detection.hpp (original)
+++ trunk/boost/wave/util/insert_whitespace_detection.hpp 2008-02-14 17:01:54 EST (Thu, 14 Feb 2008)
@@ -325,7 +325,8 @@
         }
 
     // else, handle operators separately
- if (IS_CATEGORY(current, OperatorTokenType) &&
+ if (T_COMMA != current && T_COMMA != prev &&
+ IS_CATEGORY(current, OperatorTokenType) &&
             IS_CATEGORY(prev, OperatorTokenType))
         {
             return true; // operators must be delimited always

Modified: trunk/libs/wave/ChangeLog
==============================================================================
--- trunk/libs/wave/ChangeLog (original)
+++ trunk/libs/wave/ChangeLog 2008-02-14 17:01:54 EST (Thu, 14 Feb 2008)
@@ -25,10 +25,6 @@
 CHANGELOG
 
 - Wave Version 1.4
-- Added the BOOST_WAVE_SUPPORT_THREADING allowing to explicitelz control
- whether the Wave library is built with threading support enabled. If not
- defined the build settings will be picked up from the Boost build environment
- (BOOST_HAS_THREADS).
   
 Boost V1.35.0
 - Wave Version 1.3
@@ -165,6 +161,12 @@
 - Fixed a bug in the pp hook expanding_function_like_macro(), where the seqend
   parameter was set to the first token after the closing parenthesis instead of
   pointing at it.
+- Added the BOOST_WAVE_SUPPORT_THREADING allowing to explicitely control
+ whether the Wave library is built with threading support enabled. If not
+ defined the build settings will be picked up from the Boost build environment
+ (BOOST_HAS_THREADS).
+- Fixed a whitespace insertion glitch, where whitespace got inserted
+ unconditionally between two operators even if one of these was a comma.
   
 Boost V1.34.0
 - Wave Version 1.2.4


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