summaryrefslogtreecommitdiff
path: root/comm
diff options
context:
space:
mode:
authorchatty2000-11-28 17:07:44 +0000
committerchatty2000-11-28 17:07:44 +0000
commit44d94a1a9e863dea9a2c30349fd723b3b661ded1 (patch)
tree1ff96080d6812c00a123091ede4f80b42164919b /comm
parent30f1d67e8b836760abd265f2fc0afeaba810d004 (diff)
downloadivy-league-44d94a1a9e863dea9a2c30349fd723b3b661ded1.zip
ivy-league-44d94a1a9e863dea9a2c30349fd723b3b661ded1.tar.gz
ivy-league-44d94a1a9e863dea9a2c30349fd723b3b661ded1.tar.bz2
ivy-league-44d94a1a9e863dea9a2c30349fd723b3b661ded1.tar.xz
* Removed smart pointers
* Removed global.h
Diffstat (limited to 'comm')
-rw-r--r--comm/MsgBuffer.cc8
-rw-r--r--comm/MsgBuffer.h14
2 files changed, 8 insertions, 14 deletions
diff --git a/comm/MsgBuffer.cc b/comm/MsgBuffer.cc
index f98d92c..225c764 100644
--- a/comm/MsgBuffer.cc
+++ b/comm/MsgBuffer.cc
@@ -3,10 +3,10 @@
*
* by Michel Beaudouin-Lafon
*
- * Copyright 1990-1995
+ * Copyright 1990-1997
* Laboratoire de Recherche en Informatique (LRI)
*
- * Messages, buffers
+ * Buffers for messages
*
* $Id$
* $CurLog$
@@ -43,10 +43,6 @@ When extracting data, the buffer may not contain enough bytes.
We say that a ``get error'' has occurred and the buffer remembers it until it is modified
by the functions \fun{Append} or \fun{More}, or by \fun{operator $<<$}.
-The class \typ{^{pUchMsgBuffer}} implements smart pointers to buffers.
-Smart pointers behave like pointers but they manage a reference count on the
-pointed to objects for an automatic reclaim of dynamically allocated objects.
-
\fig{FIGURES/buffer}{Some operations on a buffer.}
?*/
diff --git a/comm/MsgBuffer.h b/comm/MsgBuffer.h
index 869933b..442787e 100644
--- a/comm/MsgBuffer.h
+++ b/comm/MsgBuffer.h
@@ -3,10 +3,10 @@
*
* by Michel Beaudouin-Lafon
*
- * Copyright 1990-1995
+ * Copyright 1990-1997
* Laboratoire de Recherche en Informatique (LRI)
*
- * Messages, buffers
+ * Buffers for messages
*
* $Id$
* $CurLog$
@@ -16,18 +16,17 @@
#define Buffer_H_
#include "cplus_bugs.h"
-#include "global.h"
-#include "ccu/SmartPointer.h"
+#include "ccu/bool.h"
+#include "ccu/word.h"
#include "IOS.h"
class CcuString;
class UchMessage;
// Buffer is the buffer itself, End points after its last byte
// Start and Stop limit its content
-// UchMsgBuffer derives from CcuSmartData to be able to have smart pointers (pUchMsgBuffer)
// a buffer grows and shrinks automatically
//
-class UchMsgBuffer : public CcuSmartData, public UchIOS {
+class UchMsgBuffer : public UchIOS {
protected:
byte* Begin;
byte* Start;
@@ -102,6 +101,5 @@ public:
friend UchMsgBuffer& DbgPrint (UchMsgBuffer&, int);
};
-PointerClass (pUchMsgBuffer, UchMsgBuffer)
-
#endif /* Buffer_H_ */
+