Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r60996 - trunk/libs/spirit/example/scheme/test
From: joel_at_[hidden]
Date: 2010-04-02 01:08:09


Author: djowel
Date: 2010-04-02 01:08:08 EDT (Fri, 02 Apr 2010)
New Revision: 60996
URL: http://svn.boost.org/trac/boost/changeset/60996

Log:
rearrangin: moved some files to test dir
Text files modified:
   trunk/libs/spirit/example/scheme/test/sexpr_input_test.cpp | 13 ++++++++-----
   trunk/libs/spirit/example/scheme/test/sexpr_output_test.cpp | 10 +++++-----
   trunk/libs/spirit/example/scheme/test/utree_test.cpp | 10 +++++++---
   3 files changed, 20 insertions(+), 13 deletions(-)

Modified: trunk/libs/spirit/example/scheme/test/sexpr_input_test.cpp
==============================================================================
--- trunk/libs/spirit/example/scheme/test/sexpr_input_test.cpp (original)
+++ trunk/libs/spirit/example/scheme/test/sexpr_input_test.cpp 2010-04-02 01:08:08 EDT (Fri, 02 Apr 2010)
@@ -6,19 +6,22 @@
 =============================================================================*/
 #include <boost/config/warning_disable.hpp>
 
-#include "input/sexpr.hpp"
-#include "input/parse_sexpr_impl.hpp"
-#include "simple_print.hpp"
+#include "../input/sexpr.hpp"
+#include "../input/parse_sexpr_impl.hpp"
 #include <iostream>
 #include <fstream>
 
+inline std::ostream& println(std::ostream& out, scheme::utree const& val)
+{
+ out << val << std::endl;
+ return out;
+}
+
 ///////////////////////////////////////////////////////////////////////////////
 // Main program
 ///////////////////////////////////////////////////////////////////////////////
 int main(int argc, char **argv)
 {
- using ::detail::println;
-
     char const* filename;
     if (argc > 1)
     {

Modified: trunk/libs/spirit/example/scheme/test/sexpr_output_test.cpp
==============================================================================
--- trunk/libs/spirit/example/scheme/test/sexpr_output_test.cpp (original)
+++ trunk/libs/spirit/example/scheme/test/sexpr_output_test.cpp 2010-04-02 01:08:08 EDT (Fri, 02 Apr 2010)
@@ -1,6 +1,6 @@
 // Copyright (c) 2001-2010 Hartmut Kaiser
-//
-// Distributed under the Boost Software License, Version 1.0. (See accompanying
+//
+// 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)
 
 #include <boost/config/warning_disable.hpp>
@@ -11,8 +11,8 @@
 #include <fstream>
 #include <iterator>
 
-#include "input/parse_sexpr_impl.hpp"
-#include "output/generate_sexpr_impl.hpp"
+#include "../input/parse_sexpr_impl.hpp"
+#include "../output/generate_sexpr_impl.hpp"
 
 namespace client
 {
@@ -92,7 +92,7 @@
             std::cout << "success!" << std::endl;
         }
         else
- {
+ {
             std::cout << "generate error" << std::endl;
         }
     }

Modified: trunk/libs/spirit/example/scheme/test/utree_test.cpp
==============================================================================
--- trunk/libs/spirit/example/scheme/test/utree_test.cpp (original)
+++ trunk/libs/spirit/example/scheme/test/utree_test.cpp 2010-04-02 01:08:08 EDT (Fri, 02 Apr 2010)
@@ -7,14 +7,18 @@
 
 #include <boost/config/warning_disable.hpp>
 
-#include "utree.hpp"
-#include "simple_print.hpp"
+#include "../utree.hpp"
 #include <iostream>
 
+inline std::ostream& println(std::ostream& out, scheme::utree const& val)
+{
+ out << val << std::endl;
+ return out;
+}
+
 int main()
 {
     using scheme::utree;
- using ::detail::println;
 
     {
         // test the size


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