Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r50031 - in sandbox/compile-in-place: . Boost_1_35_0/boost/wave
From: doomster_at_[hidden]
Date: 2008-11-29 17:41:31


Author: eckhardt
Date: 2008-11-29 17:41:31 EST (Sat, 29 Nov 2008)
New Revision: 50031
URL: http://svn.boost.org/trac/boost/changeset/50031

Log:
- Add include file and example for in-place compiled Wave library.

Added:
   sandbox/compile-in-place/Boost_1_35_0/boost/wave/compile_in_place.cpp (contents, props changed)
   sandbox/compile-in-place/test-wave.cpp (contents, props changed)

Added: sandbox/compile-in-place/Boost_1_35_0/boost/wave/compile_in_place.cpp
==============================================================================
--- (empty file)
+++ sandbox/compile-in-place/Boost_1_35_0/boost/wave/compile_in_place.cpp 2008-11-29 17:41:31 EST (Sat, 29 Nov 2008)
@@ -0,0 +1,42 @@
+/* compile in-place support for Boost.Wave
+
+Copyright 2008 Ulrich Eckhardt
+
+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)
+*/
+// $Id$
+
+// This file must not be included more than once. Note that this 'once' is
+// not per translation unit but per binary! Never include this in a header!
+#ifdef BOOST_WAVE_COMPILE_IN_PLACE_CPP_INCLUDED
+# error "this file should only be included once per binary"
+#endif
+
+#define BOOST_WAVE_COMPILE_IN_PLACE_CPP_INCLUDED
+
+
+#include <boost/../libs/wave/src/instantiate_cpp_exprgrammar.cpp>
+#include <boost/../libs/wave/src/instantiate_cpp_grammar.cpp>
+#include <boost/../libs/wave/src/instantiate_cpp_literalgrs.cpp>
+#include <boost/../libs/wave/src/instantiate_defined_grammar.cpp>
+#include <boost/../libs/wave/src/instantiate_predef_macros.cpp>
+#include <boost/../libs/wave/src/instantiate_re2c_lexer.cpp>
+#include <boost/../libs/wave/src/instantiate_re2c_lexer_str.cpp>
+#include <boost/../libs/wave/src/token_ids.cpp>
+#include <boost/../libs/wave/src/wave_config_constant.cpp>
+#include <boost/../libs/wave/src/cpplexer/re2clex/aq.cpp>
+#include <boost/../libs/wave/src/cpplexer/re2clex/cpp_re.cpp>
+
+/*Boost_1_35_0/libs/wave/src/cpplexer:
+#include <boost/../libs/wave/src/.cpp>
+re2clex
+
+Boost_1_35_0/libs/wave/src/cpplexer/re2clex:
+aq.cpp
+cpp.re
+cpp_re.cpp
+cpp_re.inc
+strict_cpp.re
+strict_cpp_re.inc
+*/

Added: sandbox/compile-in-place/test-wave.cpp
==============================================================================
--- (empty file)
+++ sandbox/compile-in-place/test-wave.cpp 2008-11-29 17:41:31 EST (Sat, 29 Nov 2008)
@@ -0,0 +1,19 @@
+/* example to demonstrate compile-in-place for Boost.Wave
+
+Compile with
+ $CXX -I path/to/boost_X_YY_Z test-wave.cpp -l $THREADLIBS
+
+Notes:
+
+ - The thread libs are e.g. "pthread" for Linux.
+
+$Id$
+*/
+
+// just include the sourcecode for one of the examples
+#include <boost/../libs/wave/samples/quick_start/quick_start.cpp>
+
+#include <boost/wave/compile_in_place.cpp>
+#include <boost/filesystem/compile_in_place.cpp>
+#include <boost/thread/compile_in_place.cpp>
+#include <boost/system/compile_in_place.cpp>


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