$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r78131 - trunk/libs/context/doc
From: oliver.kowalke_at_[hidden]
Date: 2012-04-22 06:28:16
Author: olli
Date: 2012-04-22 06:28:16 EDT (Sun, 22 Apr 2012)
New Revision: 78131
URL: http://svn.boost.org/trac/boost/changeset/78131
Log:
context: documentation updated regarding to make_fcontext() changes
Text files modified: 
   trunk/libs/context/doc/fcontext.qbk |    11 +++++------                             
   1 files changed, 5 insertions(+), 6 deletions(-)
Modified: trunk/libs/context/doc/fcontext.qbk
==============================================================================
--- trunk/libs/context/doc/fcontext.qbk	(original)
+++ trunk/libs/context/doc/fcontext.qbk	2012-04-22 06:28:16 EDT (Sun, 22 Apr 2012)
@@ -41,8 +41,7 @@
                                 static_cast< char * >( fc.fc_stack.base) - stack.size();
 
                         // context fc used f() as context function
-            // 3 is the argument with which f() will be called
-			make_fcontext( & fc, f, 3);
+			make_fcontext( & fc, f);
 
 __fcontext__ requires a pointer to the top of the stack (__fc_base__) as well
 as a pointer to the lower bound of the stack (__fc_limit__).
@@ -62,7 +61,7 @@
         void f1( intptr_t)
         {
                 std::cout << "f1: entered" << std::endl;
-                std::cout << "f1: call jump_fcontext( & fc1, & fc2)" << std::endl;
+                std::cout << "f1: call jump_fcontext( & fc1, & fc2, 0)" << std::endl;
                 ctx::jump_fcontext( & fc1, & fc2, 0);
                 std::cout << "f1: return" << std::endl;
                 ctx::jump_fcontext( & fc1, & fcm, 0);
@@ -71,7 +70,7 @@
         void f2( intptr_t)
         {
                 std::cout << "f2: entered" << std::endl;
-                std::cout << "f2: call jump_fcontext( & fc2, & fc1)" << std::endl;
+                std::cout << "f2: call jump_fcontext( & fc2, & fc1, 0)" << std::endl;
                 ctx::jump_fcontext( & fc2, & fc1, 0);
                 BOOST_ASSERT( false && ! "f2: never returns");
         }
@@ -83,7 +82,7 @@
                 fc1.fc_stack.base = alloc1.allocate(ctx::minimum_stacksize());
                 fc1.fc_stack.limit =
                     static_cast< char * >( fc1.fc_stack.base) - ctx::minimum_stacksize();
-                ctx::make_fcontext( & fc1, f1, 0);
+                ctx::make_fcontext( & fc1, f1);
 
                 fc2.fc_stack.base = alloc2.allocate(ctx::minimum_stacksize());
                 fc2.fc_stack.limit =
@@ -202,7 +201,7 @@
         };
 
         intptr_t jump_fcontext( fcontext_t * ofc, fcontext_t const* nfc, intptr_t vp);
-        void make_fcontext( fcontext_t * fc, void(* fn)(void*), intptr_t p);
+        void make_fcontext( fcontext_t * fc, void(* fn)(intptr_t) );
 
 [heading `base`]
 [variablelist