[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[certi-cvs] certi test/utility/Main_SocketSHM_B.cc test/uti... [br_CERTI
From: |
certi-cvs |
Subject: |
[certi-cvs] certi test/utility/Main_SocketSHM_B.cc test/uti... [br_CERTI_SHM_NEWGEN_dev] |
Date: |
Tue, 01 Sep 2009 11:14:46 +0000 |
CVSROOT: /sources/certi
Module name: certi
Branch: br_CERTI_SHM_NEWGEN_dev
Changes by: Eric NOULARD <erk> 09/09/01 11:14:46
Modified files:
test/utility : Main_SocketSHM_B.cc Main_SocketSHM_A.cc
libCERTI : SHM.hh
Log message:
Add virtual destructors where they should be.
And use C++ builtin "bool" type and values.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/certi/test/utility/Main_SocketSHM_B.cc?cvsroot=certi&only_with_tag=br_CERTI_SHM_NEWGEN_dev&r1=1.1.2.1&r2=1.1.2.2
http://cvs.savannah.gnu.org/viewcvs/certi/test/utility/Main_SocketSHM_A.cc?cvsroot=certi&only_with_tag=br_CERTI_SHM_NEWGEN_dev&r1=1.1.2.1&r2=1.1.2.2
http://cvs.savannah.gnu.org/viewcvs/certi/libCERTI/SHM.hh?cvsroot=certi&only_with_tag=br_CERTI_SHM_NEWGEN_dev&r1=1.1.2.1&r2=1.1.2.2
Patches:
Index: test/utility/Main_SocketSHM_B.cc
===================================================================
RCS file: /sources/certi/certi/test/utility/Attic/Main_SocketSHM_B.cc,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -b -r1.1.2.1 -r1.1.2.2
--- test/utility/Main_SocketSHM_B.cc 1 Sep 2009 11:09:22 -0000 1.1.2.1
+++ test/utility/Main_SocketSHM_B.cc 1 Sep 2009 11:14:44 -0000 1.1.2.2
@@ -58,8 +58,8 @@
// Posix Socket SHM
SocketSHMPosix Socket_Posix_AB(NAME_A_TO_B,
NAME_B_TO_A,
- FALSE,
- TRUE,
+ false,
+ true,
size,
size,
NAME_FULL_AB,
@@ -72,8 +72,8 @@
NAME_B_TO_A,
KEY_A_TO_B,
KEY_B_TO_A,
- FALSE,
- TRUE,
+ false,
+ true,
size,
size,
KEY_FULL_AB,
Index: test/utility/Main_SocketSHM_A.cc
===================================================================
RCS file: /sources/certi/certi/test/utility/Attic/Main_SocketSHM_A.cc,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -b -r1.1.2.1 -r1.1.2.2
--- test/utility/Main_SocketSHM_A.cc 1 Sep 2009 11:09:22 -0000 1.1.2.1
+++ test/utility/Main_SocketSHM_A.cc 1 Sep 2009 11:14:44 -0000 1.1.2.2
@@ -64,8 +64,8 @@
// Posix Socket SHM
SocketSHMPosix Socket_Posix_AB(NAME_A_TO_B,
NAME_B_TO_A,
- TRUE,
- FALSE,
+ true,
+ false,
size,
size,
NAME_FULL_AB,
@@ -78,8 +78,8 @@
NAME_B_TO_A,
KEY_A_TO_B,
KEY_B_TO_A,
- TRUE,
- FALSE,
+ true,
+ false,
size,
size,
KEY_FULL_AB,
Index: libCERTI/SHM.hh
===================================================================
RCS file: /sources/certi/certi/libCERTI/Attic/SHM.hh,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -b -r1.1.2.1 -r1.1.2.2
--- libCERTI/SHM.hh 1 Sep 2009 11:09:21 -0000 1.1.2.1
+++ libCERTI/SHM.hh 1 Sep 2009 11:14:45 -0000 1.1.2.2
@@ -7,12 +7,12 @@
#include <string.h>
// Correctly define BOOL type
-#ifndef __bool_true_false_are_defined
-# define TRUE 1
-# define FALSE 0
-# define bool int
-# define __bool_true_false_are_defined
-#endif
+//#ifndef __bool_true_false_are_defined
+//# define TRUE 1
+//# define FALSE 0
+//# define bool int
+//# define __bool_true_false_are_defined
+//#endif
class SHM {
protected :
@@ -23,6 +23,7 @@
public :
SHM(const std::string& SHMName, const int SHMSize,const bool isCreator)
{_Name=SHMName; _Size=SHMSize; _IsCreator=isCreator; }
+ virtual ~SHM() {};
const std::string getName() const {return _Name ; } ;
inline void* GetShm(){return _Shm ; } ;
inline bool IsCreator(){return _IsCreator ; } ;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [certi-cvs] certi test/utility/Main_SocketSHM_B.cc test/uti... [br_CERTI_SHM_NEWGEN_dev],
certi-cvs <=