From c0c398e2232eecc3b54045bb8f0c4eeb4f485478 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 12 Apr 2004 05:41:53 +0000 Subject: Comments from Philippe. --- src/CellBuffer.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/CellBuffer.h b/src/CellBuffer.h index 726ec015f..bf4a102f2 100644 --- a/src/CellBuffer.h +++ b/src/CellBuffer.h @@ -2,7 +2,7 @@ /** @file CellBuffer.h ** Manages the text of the document. **/ -// Copyright 1998-2001 by Neil Hodgson +// Copyright 1998-2004 by Neil Hodgson // The License.txt file describes the conditions under which this software may be distributed. #ifndef CELLBUFFER_H @@ -150,12 +150,14 @@ public: */ class CellBuffer { private: - char *body; - int size; - int length; - int part1len; - int gaplen; - char *part2body; + char *body; ///< The cell buffer itself. + int size; ///< Allocated size of the buffer. + int length; ///< Total length of the data. + int part1len; ///< Length of the first part. + int gaplen; ///< Length of the gap between the two parts. + char *part2body; ///< The second part of the cell buffer. + ///< Doesn't point after the gap but set so that + ///< part2body[position] is consistent with body[position]. bool readOnly; int growSize; -- cgit v1.2.3