[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/cygnal ACT/Change_Log.txt ACT/Handle.hpp ...
From: |
Eric Hughes |
Subject: |
[Gnash-commit] gnash/cygnal ACT/Change_Log.txt ACT/Handle.hpp ... |
Date: |
Sat, 21 Jul 2007 17:51:21 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Eric Hughes <eh9> 07/07/21 17:51:21
Modified files:
cygnal/ACT : Change_Log.txt Handle.hpp
cygnal/ACT/test_support: Action_Tracing.hpp Simple_Actions.hpp
Supplied_Service.hpp
cygnal/ACT/unit_tests: Test_ACT.cpp Test_Scheduler.cpp
Test_Scheduling_Queue.cpp
cygnal/unit_tests: Permutation.hpp Random_Permutation.hpp
Added files:
cygnal/unit_tests: Change_Log.txt cygnal_test.hpp
Log message:
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/cygnal/ACT/Change_Log.txt?cvsroot=gnash&r1=1.3&r2=1.4
http://cvs.savannah.gnu.org/viewcvs/gnash/cygnal/ACT/Handle.hpp?cvsroot=gnash&r1=1.4&r2=1.5
http://cvs.savannah.gnu.org/viewcvs/gnash/cygnal/ACT/test_support/Action_Tracing.hpp?cvsroot=gnash&r1=1.3&r2=1.4
http://cvs.savannah.gnu.org/viewcvs/gnash/cygnal/ACT/test_support/Simple_Actions.hpp?cvsroot=gnash&r1=1.3&r2=1.4
http://cvs.savannah.gnu.org/viewcvs/gnash/cygnal/ACT/test_support/Supplied_Service.hpp?cvsroot=gnash&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/gnash/cygnal/ACT/unit_tests/Test_ACT.cpp?cvsroot=gnash&r1=1.3&r2=1.4
http://cvs.savannah.gnu.org/viewcvs/gnash/cygnal/ACT/unit_tests/Test_Scheduler.cpp?cvsroot=gnash&r1=1.4&r2=1.5
http://cvs.savannah.gnu.org/viewcvs/gnash/cygnal/ACT/unit_tests/Test_Scheduling_Queue.cpp?cvsroot=gnash&r1=1.4&r2=1.5
http://cvs.savannah.gnu.org/viewcvs/gnash/cygnal/unit_tests/Permutation.hpp?cvsroot=gnash&r1=1.3&r2=1.4
http://cvs.savannah.gnu.org/viewcvs/gnash/cygnal/unit_tests/Random_Permutation.hpp?cvsroot=gnash&r1=1.2&r2=1.3
http://cvs.savannah.gnu.org/viewcvs/gnash/cygnal/unit_tests/Change_Log.txt?cvsroot=gnash&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/gnash/cygnal/unit_tests/cygnal_test.hpp?cvsroot=gnash&rev=1.1
Patches:
Index: ACT/Change_Log.txt
===================================================================
RCS file: /sources/gnash/gnash/cygnal/ACT/Change_Log.txt,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- ACT/Change_Log.txt 19 Jul 2007 18:29:34 -0000 1.3
+++ ACT/Change_Log.txt 21 Jul 2007 17:51:20 -0000 1.4
@@ -1,6 +1,12 @@
Change Log for GNU Cygnal, Module ACT
=====================================
+2007-07-21 Eric Hughes <address@hidden>
+ * Handle.hpp: Changed operator declarations in Handled from references
to values.
+ * test_support/Supplied_Service.hpp: Changed auto_ptr to shared_ptr to
enable implicit copy constructor.
+ * unit_tests/Test_{Scheduler,ACT,Scheduling_Queue}.cpp: Changed test
inclusions to use new header that suppresses spurious MSVC warnings.
+ * unit_tests/Test_Scheduler.cpp: Added typedef test aspect for Handled
that refers to access-to-owner base class. It required explicit namespace
qualification.
+
2007-07-19 Eric Hughes <address@hidden>
* Handle.hpp: Added forwarding typedefs in Vector_with_Handle_Index.
* Pause_Demon.cpp: Added important portability note.
Index: ACT/Handle.hpp
===================================================================
RCS file: /sources/gnash/gnash/cygnal/ACT/Handle.hpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- ACT/Handle.hpp 19 Jul 2007 18:29:34 -0000 1.4
+++ ACT/Handle.hpp 21 Jul 2007 17:51:21 -0000 1.5
@@ -61,12 +61,12 @@
explicit Handle( T x )
: the_index( x ) {}
- inline bool operator<( Handle & x ) { return the_index <
x.the_index ; }
- inline bool operator<=( Handle & x ) { return the_index <=
x.the_index ; }
- inline bool operator==( Handle & x ) { return the_index ==
x.the_index ; }
- inline bool operator>=( Handle & x ) { return the_index >=
x.the_index ; }
- inline bool operator>( Handle & x ) { return the_index >
x.the_index ; }
- inline bool operator!=( Handle & x ) { return the_index !=
x.the_index ; }
+ inline bool operator<( Handle x ) { return the_index <
x.the_index ; }
+ inline bool operator<=( Handle x ) { return the_index <=
x.the_index ; }
+ inline bool operator==( Handle x ) { return the_index ==
x.the_index ; }
+ inline bool operator>=( Handle x ) { return the_index >=
x.the_index ; }
+ inline bool operator>( Handle x ) { return the_index >
x.the_index ; }
+ inline bool operator!=( Handle x ) { return the_index !=
x.the_index ; }
/// Addition is not Handle-to-Handle, but Handle-to-integer,
because Handle is ordinal.
inline Handle operator+( unsigned int n ) { return Handle(
the_index + n ) ; }
Index: ACT/test_support/Action_Tracing.hpp
===================================================================
RCS file: /sources/gnash/gnash/cygnal/ACT/test_support/Action_Tracing.hpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
Index: ACT/test_support/Simple_Actions.hpp
===================================================================
RCS file: /sources/gnash/gnash/cygnal/ACT/test_support/Simple_Actions.hpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
Index: ACT/test_support/Supplied_Service.hpp
===================================================================
RCS file: /sources/gnash/gnash/cygnal/ACT/test_support/Supplied_Service.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- ACT/test_support/Supplied_Service.hpp 10 Jul 2007 14:09:09 -0000
1.1
+++ ACT/test_support/Supplied_Service.hpp 21 Jul 2007 17:51:21 -0000
1.2
@@ -79,7 +79,7 @@
public aspect::Aspect_Has_Access_To_Owner< Service<
Supplied_Service_Aspect > >
{
/// Tracking
- std::auto_ptr< tracking_function > tracker ;
+ shared_ptr< tracking_function > tracker ;
public:
Supplied_Service_Aspect( tracking_function * t )
Index: ACT/unit_tests/Test_ACT.cpp
===================================================================
RCS file: /sources/gnash/gnash/cygnal/ACT/unit_tests/Test_ACT.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- ACT/unit_tests/Test_ACT.cpp 10 Jul 2007 14:09:09 -0000 1.3
+++ ACT/unit_tests/Test_ACT.cpp 21 Jul 2007 17:51:21 -0000 1.4
@@ -21,8 +21,7 @@
/// \file Test_ACT.cpp
/// \brief Tests of the simple actions, exercising the basic ACT model.
-#include <boost/test/auto_unit_test.hpp>
-#include <boost/test/test_tools.hpp>
+#include "unit_tests/cygnal_test.hpp"
#include "../ACT.hpp"
#include "ACT/test_support/Simple_Actions.hpp"
Index: ACT/unit_tests/Test_Scheduler.cpp
===================================================================
RCS file: /sources/gnash/gnash/cygnal/ACT/unit_tests/Test_Scheduler.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- ACT/unit_tests/Test_Scheduler.cpp 10 Jul 2007 14:09:09 -0000 1.4
+++ ACT/unit_tests/Test_Scheduler.cpp 21 Jul 2007 17:51:21 -0000 1.5
@@ -21,8 +21,7 @@
/// \file Test_Scheduler.cpp
/// \brief Tests of the Scheduler
-#include <boost/test/auto_unit_test.hpp>
-#include <boost/test/test_tools.hpp>
+#include "unit_tests/cygnal_test.hpp"
#include "ACT/Scheduler.hpp"
#include "ACT/test_support/Simple_Actions.hpp"
@@ -94,11 +93,16 @@
: public Null_Aspect_Handled< T >,
public aspect::Aspect_Has_Access_To_Owner< Handled< T,
test_aspect > >
{
- // The explicit namespace qualification distinguishes the
generic declaration from this specialization.
+ /// The explicit namespace qualification distinguishes the
generic declaration from this specialization.
typedef Handled< test, ACT_Test::test_aspect > owner_type ;
+ ///
+ typedef aspect::Aspect_Has_Access_To_Owner< Handled< T,
ACT_Test::test_aspect > > access_base_type ;
+
public:
- std::string result() const { return owner() ->
our_registry.aspect.result() ; }
+ std::string result() const {
+ return access_base_type::owner() ->
our_registry.aspect.result() ;
+ }
} ;
//---------------
Index: ACT/unit_tests/Test_Scheduling_Queue.cpp
===================================================================
RCS file: /sources/gnash/gnash/cygnal/ACT/unit_tests/Test_Scheduling_Queue.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- ACT/unit_tests/Test_Scheduling_Queue.cpp 10 Jul 2007 14:09:09 -0000
1.4
+++ ACT/unit_tests/Test_Scheduling_Queue.cpp 21 Jul 2007 17:51:21 -0000
1.5
@@ -21,8 +21,8 @@
/// \file Test_Scheduling_Queue.cpp
/// \brief Tests of the Scheduling Queue
-#include <boost/test/auto_unit_test.hpp>
-#include <boost/test/test_tools.hpp>
+#include "unit_tests/cygnal_test.hpp"
+
#include "unit_tests/Test_Support.hpp"
#include "unit_tests/Permutation.hpp"
#include "unit_tests/Random_Permutation.hpp"
Index: unit_tests/Permutation.hpp
===================================================================
RCS file: /sources/gnash/gnash/cygnal/unit_tests/Permutation.hpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
Index: unit_tests/Random_Permutation.hpp
===================================================================
RCS file: /sources/gnash/gnash/cygnal/unit_tests/Random_Permutation.hpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- unit_tests/Random_Permutation.hpp 1 Jul 2007 10:53:56 -0000 1.2
+++ unit_tests/Random_Permutation.hpp 21 Jul 2007 17:51:21 -0000 1.3
@@ -130,3 +130,4 @@
#endif // end of inclusion protection
\ No newline at end of file
+
Index: unit_tests/Change_Log.txt
===================================================================
RCS file: unit_tests/Change_Log.txt
diff -N unit_tests/Change_Log.txt
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ unit_tests/Change_Log.txt 21 Jul 2007 17:51:21 -0000 1.1
@@ -0,0 +1,5 @@
+Change Log for GNU Cygnal, Module ACT
+=====================================
+
+2007-07-21 Eric Hughes <address@hidden>
+ * cygnal_test.hpp: New file with all ordinary inclusions. Includes
MSVC warning suppression.
\ No newline at end of file
Index: unit_tests/cygnal_test.hpp
===================================================================
RCS file: unit_tests/cygnal_test.hpp
diff -N unit_tests/cygnal_test.hpp
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ unit_tests/cygnal_test.hpp 21 Jul 2007 17:51:21 -0000 1.1
@@ -0,0 +1,42 @@
+//
+// Copyright (C) 2007 Free Software Foundation, Inc.
+//
+// This file is part of GNU Cygnal.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+//
+
+/// \file cygnal_test.hpp
+/// \brief All the generic inclusions for unit test in one place, plus error
suppression for MSVC.
+
+#pragma once
+#ifndef __cygnal_test_hpp__
+#define __cygnal_test_hpp__
+
+#ifdef _MSC_VER
+#pragma warning( push )
+#pragma warning( disable: 4180 4224 )
+#endif
+
+#include <boost/test/auto_unit_test.hpp>
+#include <boost/test/test_tools.hpp>
+#include <boost/function.hpp>
+
+#ifdef _MSC_VER
+#pragma warning( pop )
+#endif
+
+
+#endif // end of inclusion protection
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] gnash/cygnal ACT/Change_Log.txt ACT/Handle.hpp ...,
Eric Hughes <=