diff options
| author | donal.k.fellows@manchester.ac.uk <dkf> | 2012-05-25 08:50:37 (GMT) |
|---|---|---|
| committer | donal.k.fellows@manchester.ac.uk <dkf> | 2012-05-25 08:50:37 (GMT) |
| commit | f02d8847b4db78ebcdf33676adf0cf74b84e0096 (patch) | |
| tree | f84e7b63a363eae47b283df8cd05e218145957f2 /generic/tclZlib.c | |
| parent | c6028756760a19ed5e27ee0f2a79ef35599db579 (diff) | |
| download | tcl-f02d8847b4db78ebcdf33676adf0cf74b84e0096.zip tcl-f02d8847b4db78ebcdf33676adf0cf74b84e0096.tar.gz tcl-f02d8847b4db78ebcdf33676adf0cf74b84e0096.tar.bz2 | |
Factor out constant that must be the same in multiple places. Prompted by a
conversation with Alexandre Ferrieux.
Diffstat (limited to 'generic/tclZlib.c')
| -rw-r--r-- | generic/tclZlib.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/generic/tclZlib.c b/generic/tclZlib.c index d4019fc..84a81f8 100644 --- a/generic/tclZlib.c +++ b/generic/tclZlib.c @@ -114,12 +114,6 @@ typedef struct { #define DEFAULT_BUFFER_SIZE 4096 /* - * Time to wait before delivering a timer event. - */ - -#define TRANSFORM_TIMEOUT 0 - -/* * Prototypes for private procedures defined later in this file: */ @@ -2743,7 +2737,7 @@ ZlibTransformWatch( if (!(mask & TCL_READABLE) || Tcl_DStringLength(&cd->decompressed) == 0) { ZlibTransformEventTimerKill(cd); } else if (cd->timer == NULL) { - cd->timer = Tcl_CreateTimerHandler(TRANSFORM_TIMEOUT, + cd->timer = Tcl_CreateTimerHandler(SYNTHETIC_EVENT_TIME, ZlibTransformTimerRun, cd); } } |
