diff options
author | nijtmans <nijtmans@noemail.net> | 2008-07-24 21:54:38 (GMT) |
---|---|---|
committer | nijtmans <nijtmans@noemail.net> | 2008-07-24 21:54:38 (GMT) |
commit | 99c1f1dc71cec3e87f27d8ed4f2c918e7eef98e2 (patch) | |
tree | d6af35eba3a72d32359fa5a28abd6fe83823567d /unix/tclUnixNotfy.c | |
parent | 637c580f8f148d94744a67ee520647bc5b180866 (diff) | |
download | tcl-99c1f1dc71cec3e87f27d8ed4f2c918e7eef98e2.zip tcl-99c1f1dc71cec3e87f27d8ed4f2c918e7eef98e2.tar.gz tcl-99c1f1dc71cec3e87f27d8ed4f2c918e7eef98e2.tar.bz2 |
CONSTified 4 functions in the Notifier which all have a Tcl_Time* in it which is
supposed to be a constant, but this was not reflected in the API:
Tcl_SetTimer
Tcl_WaitForEvent
Tcl_ConditionWait
Tcl_SetMaxBlockTime
Introduced a CONST86, so extensions which have their own Notifier
(are there any?) can be modified to compile against both Tcl 8.5
and Tcl 8.6. This change complies with TIP #24
FossilOrigin-Name: 7ade6e690e5d9da6d707b6796e656ef6df6565e3
Diffstat (limited to 'unix/tclUnixNotfy.c')
-rw-r--r-- | unix/tclUnixNotfy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/unix/tclUnixNotfy.c b/unix/tclUnixNotfy.c index a763b1d..e285f03 100644 --- a/unix/tclUnixNotfy.c +++ b/unix/tclUnixNotfy.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclUnixNotfy.c,v 1.35 2008/04/16 14:29:26 das Exp $ + * RCS: @(#) $Id: tclUnixNotfy.c,v 1.36 2008/07/24 21:54:42 nijtmans Exp $ */ #include "tclInt.h" @@ -371,7 +371,7 @@ Tcl_AlertNotifier( void Tcl_SetTimer( - Tcl_Time *timePtr) /* Timeout value, may be NULL. */ + const Tcl_Time *timePtr) /* Timeout value, may be NULL. */ { if (tclNotifierHooks.setTimerProc) { tclNotifierHooks.setTimerProc(timePtr); @@ -669,7 +669,7 @@ FileHandlerEventProc( int Tcl_WaitForEvent( - Tcl_Time *timePtr) /* Maximum block time, or NULL. */ + const Tcl_Time *timePtr) /* Maximum block time, or NULL. */ { if (tclNotifierHooks.waitForEventProc) { return tclNotifierHooks.waitForEventProc(timePtr); |