summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-01-28 10:51:59 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-01-28 10:51:59 (GMT)
commit8f4c0692e4059e188dd75f711b271b138dce960d (patch)
treebaf8197ac33a73a29386552c85d79d9b2754bea5 /generic
parent1afa51024761f8a37f8ff96e38256537ab1bf6d4 (diff)
downloadtk-8f4c0692e4059e188dd75f711b271b138dce960d.zip
tk-8f4c0692e4059e188dd75f711b271b138dce960d.tar.gz
tk-8f4c0692e4059e188dd75f711b271b138dce960d.tar.bz2
Don't use "bool" as variable name. Possible conflict with "bool" type.
Diffstat (limited to 'generic')
-rw-r--r--generic/tkEntry.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tkEntry.c b/generic/tkEntry.c
index 4fa13fb..5dff50e 100644
--- a/generic/tkEntry.c
+++ b/generic/tkEntry.c
@@ -3223,7 +3223,7 @@ EntryValidate(
* string). */
{
register Tcl_Interp *interp = entryPtr->interp;
- int code, bool;
+ int code, isOK;
code = Tcl_EvalEx(interp, cmd, -1, TCL_EVAL_GLOBAL | TCL_EVAL_DIRECT);
@@ -3245,7 +3245,7 @@ EntryValidate(
*/
if (Tcl_GetBooleanFromObj(interp, Tcl_GetObjResult(interp),
- &bool) != TCL_OK) {
+ &isOK) != TCL_OK) {
Tcl_AddErrorInfo(interp,
"\n (invalid boolean result from validation command)");
Tcl_BackgroundException(interp, TCL_ERROR);
@@ -3254,7 +3254,7 @@ EntryValidate(
}
Tcl_ResetResult(interp);
- return (bool ? TCL_OK : TCL_BREAK);
+ return (isOK ? TCL_OK : TCL_BREAK);
}
/*