summaryrefslogtreecommitdiffstats
path: root/generic/tkTextWind.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2018-10-16 19:40:17 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2018-10-16 19:40:17 (GMT)
commit9dd1ecf775ca98d0b14666163def8d3571c4e71c (patch)
tree8866e3133f28abc632a3bf6833bceef8dd1bda25 /generic/tkTextWind.c
parentff5fec869e2ab1a3ff81745d9ae24f66e90e96fb (diff)
downloadtk-9dd1ecf775ca98d0b14666163def8d3571c4e71c.zip
tk-9dd1ecf775ca98d0b14666163def8d3571c4e71c.tar.gz
tk-9dd1ecf775ca98d0b14666163def8d3571c4e71c.tar.bz2
Change char *recordPtr to void *recordPtr in Tk_SetOptions() and friends. This is 100% upwards compatible, and equivalent to TIP #494 done in Tcl. With this, a ton of (char *) type casts can be eliminated
Diffstat (limited to 'generic/tkTextWind.c')
-rw-r--r--generic/tkTextWind.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tkTextWind.c b/generic/tkTextWind.c
index d6f848f..79ed1a1 100644
--- a/generic/tkTextWind.c
+++ b/generic/tkTextWind.c
@@ -191,7 +191,7 @@ TkTextWindowCmd(
ewPtr->body.ew.tkwin = NULL;
}
- objPtr = Tk_GetOptionValue(interp, (char *) &ewPtr->body.ew,
+ objPtr = Tk_GetOptionValue(interp, &ewPtr->body.ew,
ewPtr->body.ew.optionTable, objv[4], textPtr->tkwin);
if (objPtr == NULL) {
return TCL_ERROR;
@@ -233,7 +233,7 @@ TkTextWindowCmd(
ewPtr->body.ew.tkwin = NULL;
}
- objPtr = Tk_GetOptionInfo(interp, (char *) &ewPtr->body.ew,
+ objPtr = Tk_GetOptionInfo(interp, &ewPtr->body.ew,
ewPtr->body.ew.optionTable, (objc == 5) ? objv[4] : NULL,
textPtr->tkwin);
if (objPtr == NULL) {
@@ -403,7 +403,7 @@ EmbWinConfigure(
}
oldWindow = ewPtr->body.ew.tkwin;
- if (Tk_SetOptions(textPtr->interp, (char *) &ewPtr->body.ew,
+ if (Tk_SetOptions(textPtr->interp, &ewPtr->body.ew,
ewPtr->body.ew.optionTable, objc, objv, textPtr->tkwin, NULL,
NULL) != TCL_OK) {
return TCL_ERROR;