summaryrefslogtreecommitdiffstats
path: root/generic/tkBind.c
diff options
context:
space:
mode:
authorgcramer <remarcg@gmx.net>2018-10-28 13:43:56 (GMT)
committergcramer <remarcg@gmx.net>2018-10-28 13:43:56 (GMT)
commit6bdb62574c767139ea6a870b202e5557b6c20991 (patch)
tree1ff91e1d0aac7f640ee4849b90499528bca40081 /generic/tkBind.c
parent41e047c1b3a07a5f0f839056b5fbc2fa9315b1e8 (diff)
downloadtk-6bdb62574c767139ea6a870b202e5557b6c20991.zip
tk-6bdb62574c767139ea6a870b202e5557b6c20991.tar.gz
tk-6bdb62574c767139ea6a870b202e5557b6c20991.tar.bz2
Only beautification.
Diffstat (limited to 'generic/tkBind.c')
-rw-r--r--generic/tkBind.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/generic/tkBind.c b/generic/tkBind.c
index 770acc7..93beab9 100644
--- a/generic/tkBind.c
+++ b/generic/tkBind.c
@@ -246,6 +246,9 @@ typedef struct {
/*
* The following structure defines a pattern, which is matched against X
* events as part of the process of converting X events into Tcl commands.
+ *
+ * For technical reasons we do not use 'union Detail', although this would be possible,
+ * instead 'info' and 'name' are both included.
*/
typedef struct {
@@ -325,14 +328,6 @@ typedef struct PatSeq {
#define NEARBY_MS 500
/*
- * Constants for access to appropriate slot container.
- */
-
-#define PRESS 0 /* for ButtonPress */
-#define RELEASE 1 /* for ButtonRelease */
-#define PRESSED 2 /* for MotionNotify */
-
-/*
* Constant for any (non-zero) button.
*/
@@ -2114,7 +2109,7 @@ Tk_BindEvent(
bindPtr->eventInfo[KeyPress].countDetailed = 0;
bindPtr->eventInfo[KeyRelease].countAny = 0;
bindPtr->eventInfo[KeyRelease].countDetailed = 0;
- // fallthru
+ /* fallthru */
case MotionNotify:
if (eventPtr->xmotion.time) {
bindInfoPtr->lastCurrentTime = CurrentTimeInMilliSecs();
@@ -2541,7 +2536,7 @@ VirtPatIsBound(
if (physModMask == 0
|| virtModMask == physModMask
|| (virtModMask & physModMask) != physModMask) {
- return false; // we cannot surpass this match
+ return false; /* we cannot surpass this match */
}
}
}