summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-02-02 15:06:48 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-02-02 15:06:48 (GMT)
commit1453df7a69c6f0900422a24d1d6b4f66f4540907 (patch)
treedd027abccdb1634110172d3da5a9f607b5e87654 /generic
parent8f813a4ff086f23a9c18c5ebc7aea9e74731573b (diff)
downloadtk-1453df7a69c6f0900422a24d1d6b4f66f4540907.zip
tk-1453df7a69c6f0900422a24d1d6b4f66f4540907.tar.gz
tk-1453df7a69c6f0900422a24d1d6b4f66f4540907.tar.bz2
Change textPtr parameter of TkTextGetTabs to a "const"
Diffstat (limited to 'generic')
-rw-r--r--generic/tkText.c2
-rw-r--r--generic/tkText.h2
-rw-r--r--generic/tkTextDisp.c12
3 files changed, 8 insertions, 8 deletions
diff --git a/generic/tkText.c b/generic/tkText.c
index 4b31ec4..867e878 100644
--- a/generic/tkText.c
+++ b/generic/tkText.c
@@ -4496,7 +4496,7 @@ TextSearchFoundMatch(
TkTextTabArray *
TkTextGetTabs(
Tcl_Interp *interp, /* Used for error reporting. */
- TkText *textPtr, /* Information about the text widget. */
+ const TkText *textPtr, /* Information about the text widget. */
Tcl_Obj *stringPtr) /* Description of the tab stops. See the text
* manual entry for details. */
{
diff --git a/generic/tkText.h b/generic/tkText.h
index 6cdc640..070ea45 100644
--- a/generic/tkText.h
+++ b/generic/tkText.h
@@ -1081,7 +1081,7 @@ MODULE_SCOPE int TkTextSharedGetObjIndex(Tcl_Interp *interp,
MODULE_SCOPE const TkTextIndex *TkTextGetIndexFromObj(Tcl_Interp *interp,
TkText *textPtr, Tcl_Obj *objPtr);
MODULE_SCOPE TkTextTabArray *TkTextGetTabs(Tcl_Interp *interp,
- TkText *textPtr, Tcl_Obj *stringPtr);
+ const TkText *textPtr, Tcl_Obj *stringPtr);
MODULE_SCOPE void TkTextFindDisplayLineEnd(TkText *textPtr,
TkTextIndex *indexPtr, int end, int *xOffset);
MODULE_SCOPE void TkTextIndexBackChars(const TkText *textPtr,
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c
index c5c7009..2b6a1fe 100644
--- a/generic/tkTextDisp.c
+++ b/generic/tkTextDisp.c
@@ -577,8 +577,8 @@ static DLine * FindDLine(TkText *textPtr, DLine *dlPtr,
static void FreeDLines(TkText *textPtr, DLine *firstPtr,
DLine *lastPtr, int action);
static void FreeStyle(TkText *textPtr, TextStyle *stylePtr);
-static TextStyle * GetStyle(TkText *textPtr, const TkTextIndex *indexPtr);
-static void GetXView(Tcl_Interp *interp, TkText *textPtr,
+static TextStyle * GetStyle(const TkText *textPtr, const TkTextIndex *indexPtr);
+static void GetXView(Tcl_Interp *interp, const TkText *textPtr,
int report);
static void GetYView(Tcl_Interp *interp, TkText *textPtr,
int report);
@@ -621,7 +621,7 @@ static int TextGetScrollInfoObj(Tcl_Interp *interp,
static void AsyncUpdateLineMetrics(void *clientData);
static void GenerateWidgetViewSyncEvent(TkText *textPtr, Bool InSync);
static void AsyncUpdateYScrollbar(void *clientData);
-static int IsStartOfNotMergedLine(TkText *textPtr,
+static int IsStartOfNotMergedLine(const TkText *textPtr,
const TkTextIndex *indexPtr);
/*
@@ -766,7 +766,7 @@ TkTextFreeDInfo(
static TextStyle *
GetStyle(
- TkText *textPtr, /* Overall information about text widget. */
+ const TkText *textPtr, /* Overall information about text widget. */
const TkTextIndex *indexPtr)/* The character in the text for which display
* information is wanted. */
{
@@ -6496,7 +6496,7 @@ GetXView(
Tcl_Interp *interp, /* If "report" is FALSE, string describing
* visible range gets stored in the interp's
* result. */
- TkText *textPtr, /* Information about text widget. */
+ const TkText *textPtr, /* Information about text widget. */
int report) /* Non-zero means report info to scrollbar if
* it has changed. */
{
@@ -7005,7 +7005,7 @@ FindDLine(
static int
IsStartOfNotMergedLine(
- TkText *textPtr, /* Widget record for text widget. */
+ const TkText *textPtr, /* Widget record for text widget. */
const TkTextIndex *indexPtr) /* Index to check. */
{
TkTextIndex indexPtr2;