|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r73298 - trunk/tools/quickbook/src
From: dnljms_at_[hidden]
Date: 2011-07-22 04:35:05
Author: danieljames
Date: 2011-07-22 04:35:04 EDT (Fri, 22 Jul 2011)
New Revision: 73298
URL: http://svn.boost.org/trac/boost/changeset/73298
Log:
Quickbook: Fix for gcc release mode.
Fixes what might be an optimization bug in gcc.
Text files modified:
trunk/tools/quickbook/src/block_element_grammar.cpp | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
Modified: trunk/tools/quickbook/src/block_element_grammar.cpp
==============================================================================
--- trunk/tools/quickbook/src/block_element_grammar.cpp (original)
+++ trunk/tools/quickbook/src/block_element_grammar.cpp 2011-07-22 04:35:04 EDT (Fri, 22 Jul 2011)
@@ -34,7 +34,8 @@
xinclude, include,
template_, template_id, template_formal_arg,
template_body, identifier, import,
- element_id, element_id_1_5, element_id_1_6;
+ element_id, element_id_1_5, element_id_1_6,
+ same_line;
};
void quickbook_grammar::impl::init_block_elements()
@@ -208,10 +209,12 @@
("table", element_info(element_info::nested_block, &local.table, block_tags::table))
;
+ local.same_line = (cl::eps_p(*cl::blank_p >> cl::eol_p) | space);
+
local.table =
- (cl::eps_p(*cl::blank_p >> cl::eol_p) | space)
+ local.same_line
>> local.element_id_1_5
- >> (cl::eps_p(*cl::blank_p >> cl::eol_p) | space)
+ >> local.same_line
>> (*(cl::anychar_p - eol)) [actions.values.entry(ph::arg1, ph::arg2, table_tags::title)]
>> (+eol)
>> *local.table_row
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