summaryrefslogtreecommitdiffstats
path: root/generic/tkTextBTree.c
diff options
context:
space:
mode:
authorvincentdarley <vincentdarley>2003-05-19 13:04:21 (GMT)
committervincentdarley <vincentdarley>2003-05-19 13:04:21 (GMT)
commit558e68b50f8336bba678288ea4ff835ec5fe2dfe (patch)
treeff3118e296016bb30e790c80a6e787ef78969042 /generic/tkTextBTree.c
parent616f05be70114b4ddcbc9153909a57bb8104384d (diff)
downloadtk-558e68b50f8336bba678288ea4ff835ec5fe2dfe.zip
tk-558e68b50f8336bba678288ea4ff835ec5fe2dfe.tar.gz
tk-558e68b50f8336bba678288ea4ff835ec5fe2dfe.tar.bz2
tip 113 implementation
Diffstat (limited to 'generic/tkTextBTree.c')
-rw-r--r--generic/tkTextBTree.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/generic/tkTextBTree.c b/generic/tkTextBTree.c
index 4f8ac7d..762d5f3 100644
--- a/generic/tkTextBTree.c
+++ b/generic/tkTextBTree.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkTextBTree.c,v 1.6 2002/08/05 04:30:40 dgp Exp $
+ * RCS: @(#) $Id: tkTextBTree.c,v 1.7 2003/05/19 13:04:23 vincentdarley Exp $
*/
#include "tkInt.h"
@@ -2223,7 +2223,7 @@ TkBTreePrevTag(searchPtr)
int
TkBTreeCharTagged(indexPtr, tagPtr)
- TkTextIndex *indexPtr; /* Indicates a character position at
+ CONST TkTextIndex *indexPtr; /* Indicates a character position at
* which to check for a tag. */
TkTextTag *tagPtr; /* Tag of interest. */
{
@@ -2335,7 +2335,7 @@ TkBTreeCharTagged(indexPtr, tagPtr)
/* ARGSUSED */
TkTextTag **
TkBTreeGetTags(indexPtr, numTagsPtr)
- TkTextIndex *indexPtr; /* Indicates a particular position in
+ CONST TkTextIndex *indexPtr;/* Indicates a particular position in
* the B-tree. */
int *numTagsPtr; /* Store number of tags found at this
* location. */
@@ -2452,7 +2452,7 @@ TkBTreeGetTags(indexPtr, numTagsPtr)
int
TkTextIsElided(textPtr, indexPtr)
TkText *textPtr; /* Overall information about text widget. */
- TkTextIndex *indexPtr; /* The character in the text for which
+ CONST TkTextIndex *indexPtr;/* The character in the text for which
* display information is wanted. */
{
#define LOTSA_TAGS 1000
@@ -2466,7 +2466,7 @@ TkTextIsElided(textPtr, indexPtr)
register Node *nodePtr;
register TkTextLine *siblingLinePtr;
register TkTextSegment *segPtr;
- register TkTextTag *tagPtr;
+ register TkTextTag *tagPtr = NULL;
register int i, index;
/* almost always avoid malloc, so stay out of system calls */