|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r58415 - trunk/boost/spirit/home/lex/lexer/lexertl
From: hartmut.kaiser_at_[hidden]
Date: 2009-12-16 09:56:05
Author: hkaiser
Date: 2009-12-16 09:56:05 EST (Wed, 16 Dec 2009)
New Revision: 58415
URL: http://svn.boost.org/trac/boost/changeset/58415
Log:
Spirit: fixing gcc problems in static lexer generation
Text files modified:
trunk/boost/spirit/home/lex/lexer/lexertl/generate_static.hpp | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
Modified: trunk/boost/spirit/home/lex/lexer/lexertl/generate_static.hpp
==============================================================================
--- trunk/boost/spirit/home/lex/lexer/lexertl/generate_static.hpp (original)
+++ trunk/boost/spirit/home/lex/lexer/lexertl/generate_static.hpp 2009-12-16 09:56:05 EST (Wed, 16 Dec 2009)
@@ -622,6 +622,9 @@
os_ << " Iterator end_token_ = start_token_;\n";
os_ << '\n';
+ os_ << " " << ((lookups_ == 256) ? "char" : "wchar_t")
+ << " ch_ = 0;\n\n";
+
if (dfas_ > 1)
{
os_ << " switch (start_state_)\n";
@@ -637,12 +640,9 @@
os_ << " default:\n";
os_ << " goto end;\n";
os_ << " break;\n";
- os_ << " }\n\n";
+ os_ << " }\n";
}
- os_ << " " << ((lookups_ == 256) ? "char" : "wchar_t")
- << " ch_ = 0;\n";
-
bool need_state0_0_label = need_label0_0(sm_);
for (std::size_t dfa_ = 0; dfa_ < dfas_; ++dfa_)
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