diff options
author | nijtmans <nijtmans> | 2010-05-11 12:12:49 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2010-05-11 12:12:49 (GMT) |
commit | ede9fc2f74a2e9aa5084e18c93d903e81f0f3303 (patch) | |
tree | 1a71cc0e56c633acfe0fb2e4a5af9d1ea1bce8bd /unix/tkUnixSend.c | |
parent | 44d12a1d5aa9b0103f0c3bea1ed81b59d4d383d1 (diff) | |
download | tk-ede9fc2f74a2e9aa5084e18c93d903e81f0f3303.zip tk-ede9fc2f74a2e9aa5084e18c93d903e81f0f3303.tar.gz tk-ede9fc2f74a2e9aa5084e18c93d903e81f0f3303.tar.bz2 |
Consistent use of variable names in RestrictEvent
API documentation and implementation: Use 'prev'
in stead of 'old', and 'arg' in stead of
'clientData' everywhere, just as in tkEvent.c.
Diffstat (limited to 'unix/tkUnixSend.c')
-rw-r--r-- | unix/tkUnixSend.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/unix/tkUnixSend.c b/unix/tkUnixSend.c index 108d109..515be11 100644 --- a/unix/tkUnixSend.c +++ b/unix/tkUnixSend.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: tkUnixSend.c,v 1.26 2009/12/20 23:26:53 dkf Exp $ + * RCS: @(#) $Id: tkUnixSend.c,v 1.27 2010/05/11 12:12:50 nijtmans Exp $ */ #include "tkUnixInt.h" @@ -220,8 +220,7 @@ static NameRegistry * RegOpen(Tcl_Interp *interp, TkDisplay *dispPtr, int lock); static void SendEventProc(ClientData clientData, XEvent *eventPtr); static int SendInit(Tcl_Interp *interp, TkDisplay *dispPtr); -static Tk_RestrictAction SendRestrictProc(ClientData clientData, - XEvent *eventPtr); +static Tk_RestrictProc SendRestrictProc; static int ServerSecure(TkDisplay *dispPtr); static void UpdateCommWindow(TkDisplay *dispPtr); static int ValidateName(TkDisplay *dispPtr, const char *name, @@ -946,7 +945,7 @@ Tk_SendCmd( const char *destName; int result, c, async, i, firstArg; size_t length; - Tk_RestrictProc *prevRestrictProc; + Tk_RestrictProc *prevProc; ClientData prevArg; TkDisplay *dispPtr; Tcl_Time timeout; @@ -1138,7 +1137,7 @@ Tk_SendCmd( * other events in the application. */ - prevRestrictProc = Tk_RestrictEvents(SendRestrictProc, NULL, &prevArg); + prevProc = Tk_RestrictEvents(SendRestrictProc, NULL, &prevArg); Tcl_GetTime(&timeout); timeout.sec += 2; while (!pending.gotResponse) { @@ -1169,7 +1168,7 @@ Tk_SendCmd( } } } - (void) Tk_RestrictEvents(prevRestrictProc, prevArg, &prevArg); + Tk_RestrictEvents(prevProc, prevArg, &prevArg); /* * Unregister the information about the pending command and return the |