Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r78088 - trunk/boost/context/detail
From: oliver.kowalke_at_[hidden]
Date: 2012-04-20 04:39:00


Author: olli
Date: 2012-04-20 04:38:57 EDT (Fri, 20 Apr 2012)
New Revision: 78088
URL: http://svn.boost.org/trac/boost/changeset/78088

Log:
context: add default ctor to fcontext_t

Text files modified:
   trunk/boost/context/detail/fcontext_arm.hpp | 15 +++++++++++++++
   trunk/boost/context/detail/fcontext_i386.hpp | 17 +++++++++++++++++
   trunk/boost/context/detail/fcontext_i386_win.hpp | 17 +++++++++++++++++
   trunk/boost/context/detail/fcontext_mips.hpp | 15 +++++++++++++++
   trunk/boost/context/detail/fcontext_ppc.hpp | 15 +++++++++++++++
   trunk/boost/context/detail/fcontext_x86_64.hpp | 15 +++++++++++++++
   trunk/boost/context/detail/fcontext_x86_64_win.hpp | 12 ++++++++++++
   7 files changed, 106 insertions(+), 0 deletions(-)

Modified: trunk/boost/context/detail/fcontext_arm.hpp
==============================================================================
--- trunk/boost/context/detail/fcontext_arm.hpp (original)
+++ trunk/boost/context/detail/fcontext_arm.hpp 2012-04-20 04:38:57 EDT (Fri, 20 Apr 2012)
@@ -27,11 +27,19 @@
 {
     void * base;
     void * limit;
+
+ stack_t() :
+ base( 0), limit( 0)
+ {}
 };
 
 struct fp_t
 {
     boost::uint32_t fc_freg[16];
+
+ fp_t() :
+ fc_reg()
+ {}
 };
 
 struct fcontext_t
@@ -40,6 +48,13 @@
     stack_t fc_stack;
     fcontext_t * fc_link;
     fp_t fc_fp;
+
+ fcontext_t() :
+ fc_greg(),
+ fc_stack(),
+ fc_link( 0),
+ fc_fp()
+ {}
 };
 
 }

Modified: trunk/boost/context/detail/fcontext_i386.hpp
==============================================================================
--- trunk/boost/context/detail/fcontext_i386.hpp (original)
+++ trunk/boost/context/detail/fcontext_i386.hpp 2012-04-20 04:38:57 EDT (Fri, 20 Apr 2012)
@@ -7,6 +7,8 @@
 #ifndef BOOST_CTX_DETAIL_FCONTEXT_I386H
 #define BOOST_CTX_DETAIL_FCONTEXT_I386H
 
+#include <cstddef>
+
 #include <boost/config.hpp>
 #include <boost/cstdint.hpp>
 
@@ -27,11 +29,19 @@
 {
     void * base;
     void * limit;
+
+ stack_t() :
+ base( 0), limit( 0)
+ {}
 };
 
 struct fp_t
 {
     boost::uint32_t fc_freg[2];
+
+ fp_t() :
+ fc_freg()
+ {}
 };
 
 struct fcontext_t
@@ -40,6 +50,13 @@
     stack_t fc_stack;
     fcontext_t * fc_link;
     fp_t fc_fp;
+
+ fcontext_t() :
+ fc_greg(),
+ fc_stack(),
+ fc_link( 0),
+ fc_fp()
+ {}
 };
 
 }

Modified: trunk/boost/context/detail/fcontext_i386_win.hpp
==============================================================================
--- trunk/boost/context/detail/fcontext_i386_win.hpp (original)
+++ trunk/boost/context/detail/fcontext_i386_win.hpp 2012-04-20 04:38:57 EDT (Fri, 20 Apr 2012)
@@ -27,11 +27,19 @@
 {
     void * base;
     void * limit;
+
+ stack_t() :
+ base( 0), limit( 0)
+ {}
 };
 
 struct fp_t
 {
     boost::uint32_t fc_freg[2];
+
+ fp_t() :
+ fc_reg()
+ {}
 };
 
 struct fcontext_t
@@ -42,6 +50,15 @@
     void * fc_excpt_lst;
     void * fc_local_storage;
     fp_t fc_fp;
+
+ fcontext_t() :
+ fc_greg(),
+ fc_stack(),
+ fc_link( 0),
+ fc_except_lst( 0),
+ fc_local_storage( 0),
+ fc_fp()
+ {}
 };
 
 }

Modified: trunk/boost/context/detail/fcontext_mips.hpp
==============================================================================
--- trunk/boost/context/detail/fcontext_mips.hpp (original)
+++ trunk/boost/context/detail/fcontext_mips.hpp 2012-04-20 04:38:57 EDT (Fri, 20 Apr 2012)
@@ -29,11 +29,19 @@
 {
     void * base;
     void * limit;
+
+ stack_t() :
+ base( 0), limit( 0)
+ {}
 };
 
 struct fp_t
 {
     boost::uint64_t fc_freg[6];
+
+ fp_t() :
+ fc_reg()
+ {}
 };
 
 struct fcontext_t
@@ -42,6 +50,13 @@
     stack_t fc_stack;
     fcontext_t * fc_link;
     fp_t fc_fp;
+
+ fcontext_t() :
+ fc_greg(),
+ fc_stack(),
+ fc_link( 0),
+ fc_fp()
+ {}
 };
 
 }

Modified: trunk/boost/context/detail/fcontext_ppc.hpp
==============================================================================
--- trunk/boost/context/detail/fcontext_ppc.hpp (original)
+++ trunk/boost/context/detail/fcontext_ppc.hpp 2012-04-20 04:38:57 EDT (Fri, 20 Apr 2012)
@@ -27,11 +27,19 @@
 {
     void * base;
     void * limit;
+
+ stack_t() :
+ base( 0), limit( 0)
+ {}
 };
 
 struct fp_t
 {
     boost::uint64_t fc_freg[19];
+
+ fp_t() :
+ fc_reg()
+ {}
 };
 
 struct fcontext_t
@@ -44,6 +52,13 @@
     stack_t fc_stack;
     fcontext_t * fc_link;
     fp_t fc_fp;
+
+ fcontext_t() :
+ fc_greg(),
+ fc_stack(),
+ fc_link( 0),
+ fc_fp()
+ {}
 };
 
 }

Modified: trunk/boost/context/detail/fcontext_x86_64.hpp
==============================================================================
--- trunk/boost/context/detail/fcontext_x86_64.hpp (original)
+++ trunk/boost/context/detail/fcontext_x86_64.hpp 2012-04-20 04:38:57 EDT (Fri, 20 Apr 2012)
@@ -27,11 +27,19 @@
 {
     void * base;
     void * limit;
+
+ stack_t() :
+ base( 0), limit( 0)
+ {}
 };
 
 struct fp_t
 {
     boost::uint32_t fc_freg[2];
+
+ fp_t() :
+ fc_reg()
+ {}
 };
 
 struct fcontext_t
@@ -40,6 +48,13 @@
     stack_t fc_stack;
     fcontext_t * fc_link;
     fp_t fc_fp;
+
+ fcontext_t() :
+ fc_greg(),
+ fc_stack(),
+ fc_link( 0),
+ fc_fp()
+ {}
 };
 
 }

Modified: trunk/boost/context/detail/fcontext_x86_64_win.hpp
==============================================================================
--- trunk/boost/context/detail/fcontext_x86_64_win.hpp (original)
+++ trunk/boost/context/detail/fcontext_x86_64_win.hpp 2012-04-20 04:38:57 EDT (Fri, 20 Apr 2012)
@@ -28,6 +28,10 @@
 {
     void * base;
     void * limit;
+
+ stack_t() :
+ base( 0), limit( 0)
+ {}
 };
 
 struct fp_t
@@ -54,6 +58,14 @@
     fcontext_t * fc_link;
     void * fc_local_storage;
     fp_t fc_fp;
+
+ fcontext_t() :
+ fc_greg(),
+ fc_stack(),
+ fc_link( 0),
+ fc_local_storage( 0),
+ fc_fp()
+ {}
 };
 
 }


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