Boost logo

Boost-Commit :

From: lists.drrngrvy_at_[hidden]
Date: 2008-03-31 23:24:31


Author: drrngrvy
Date: 2008-03-31 23:24:30 EDT (Mon, 31 Mar 2008)
New Revision: 43978
URL: http://svn.boost.org/trac/boost/changeset/43978

Log:
Cosmetic updates.
Text files modified:
   sandbox/SOC/2007/cgi/trunk/libs/cgi/example/acgi/cookie_game/main.cpp | 4 ----
   sandbox/SOC/2007/cgi/trunk/libs/cgi/example/cgi/Jamfile.v2 | 10 ----------
   sandbox/SOC/2007/cgi/trunk/libs/cgi/example/cgi/echo/Jamfile.v2 | 4 ++--
   sandbox/SOC/2007/cgi/trunk/libs/cgi/example/fcgi/hello_world/main.cpp | 3 ++-
   4 files changed, 4 insertions(+), 17 deletions(-)

Modified: sandbox/SOC/2007/cgi/trunk/libs/cgi/example/acgi/cookie_game/main.cpp
==============================================================================
--- sandbox/SOC/2007/cgi/trunk/libs/cgi/example/acgi/cookie_game/main.cpp (original)
+++ sandbox/SOC/2007/cgi/trunk/libs/cgi/example/acgi/cookie_game/main.cpp 2008-03-31 23:24:30 EDT (Mon, 31 Mar 2008)
@@ -1,6 +1,5 @@
 #include <boost/cgi/acgi.hpp>
 #include <boost/cgi/response.hpp>
-#include <iostream>
 
 #define SCRIPT_NAME "acgi_cookie_game"
 
@@ -88,9 +87,6 @@
       << "Hello there, Universe.<p />"
       << "What's your name?<br />";
 
- std::cerr<< std::endl << "name = " << req.POST("name") << std::endl;
- std::cerr.flush();
-
   resp<< "<form method='POST'>"
          "<input name='name' type='text' value='" << req[form_data]["name"] << "'>"
          "</input>"

Modified: sandbox/SOC/2007/cgi/trunk/libs/cgi/example/cgi/Jamfile.v2
==============================================================================
--- sandbox/SOC/2007/cgi/trunk/libs/cgi/example/cgi/Jamfile.v2 (original)
+++ sandbox/SOC/2007/cgi/trunk/libs/cgi/example/cgi/Jamfile.v2 2008-03-31 23:24:30 EDT (Mon, 31 Mar 2008)
@@ -4,19 +4,9 @@
 # (See accompanying file LICENSE_1_0.txt or copy
 # at http://www.boost.org/LICENSE_1_0.txt)
 
-project boost/cgi/example/cgi
- ;
-
 # By default, just build the examples
 build-project hello_world ;
 build-project echo ;
-#install stage
-# :
-# hello_world
-# echo
-# :
-# <location>$(bin-dir)
-# ;
 
 # If the user explicitly passes "install" on the command line, build the
 # CGI examples and copy them to $(cgi-bin)

Modified: sandbox/SOC/2007/cgi/trunk/libs/cgi/example/cgi/echo/Jamfile.v2
==============================================================================
--- sandbox/SOC/2007/cgi/trunk/libs/cgi/example/cgi/echo/Jamfile.v2 (original)
+++ sandbox/SOC/2007/cgi/trunk/libs/cgi/example/cgi/echo/Jamfile.v2 2008-03-31 23:24:30 EDT (Mon, 31 Mar 2008)
@@ -15,10 +15,10 @@
 
 # Our install rule (builds binaries and copies them to <location>)
 install install
- : cgi_echo
  :
+ cgi_echo
  :
- <location>$(LOCATION)
+ <location>$(cgi-bin)
  ;
 
 # Only install example if you use `bjam install' or equivalent

Modified: sandbox/SOC/2007/cgi/trunk/libs/cgi/example/fcgi/hello_world/main.cpp
==============================================================================
--- sandbox/SOC/2007/cgi/trunk/libs/cgi/example/fcgi/hello_world/main.cpp (original)
+++ sandbox/SOC/2007/cgi/trunk/libs/cgi/example/fcgi/hello_world/main.cpp 2008-03-31 23:24:30 EDT (Mon, 31 Mar 2008)
@@ -25,7 +25,8 @@
   acceptor a(s); // This is used to accept requests from the server.
   request req(s); // Our request.
 
- for (int i(50); i != 0; --i) // Handle 50 requests then exit.
+ for (;;) // Handle requests until something goes wrong
+ // (an exception will be thrown).
   {
     a.accept(req);
     response resp; // A response object to make our lives easier.


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