diff options
| author | nijtmans <nijtmans> | 2008-10-16 22:34:18 (GMT) |
|---|---|---|
| committer | nijtmans <nijtmans> | 2008-10-16 22:34:18 (GMT) |
| commit | f41268c0ed86eeafeccc4b622a2edc32837fea10 (patch) | |
| tree | c92c0492d1db21f9b0c7f880eec5c0cd3ce36762 /generic/tclTimer.c | |
| parent | e2322412051ec7bb00adaec553d5c461ea4b9666 (diff) | |
| download | tcl-f41268c0ed86eeafeccc4b622a2edc32837fea10.zip tcl-f41268c0ed86eeafeccc4b622a2edc32837fea10.tar.gz tcl-f41268c0ed86eeafeccc4b622a2edc32837fea10.tar.bz2 | |
Add "const" to many internal
const tables. No functional
or API change.
Diffstat (limited to 'generic/tclTimer.c')
| -rw-r--r-- | generic/tclTimer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tclTimer.c b/generic/tclTimer.c index 704d2bb..1e1fd73 100644 --- a/generic/tclTimer.c +++ b/generic/tclTimer.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclTimer.c,v 1.34 2008/07/19 22:50:42 nijtmans Exp $ + * RCS: @(#) $Id: tclTimer.c,v 1.35 2008/10/16 22:34:19 nijtmans Exp $ */ #include "tclInt.h" @@ -786,7 +786,7 @@ Tcl_AfterObjCmd( int length; int index; char buf[16 + TCL_INTEGER_SPACE]; - static const char *afterSubCmds[] = { + static const char *const afterSubCmds[] = { "cancel", "idle", "info", NULL }; enum afterSubCmds {AFTER_CANCEL, AFTER_IDLE, AFTER_INFO}; @@ -820,7 +820,7 @@ Tcl_AfterObjCmd( || objv[1]->typePtr == &tclWideIntType #endif || objv[1]->typePtr == &tclBignumType - || ( Tcl_GetIndexFromObj(NULL, objv[1], afterSubCmds, "", 0, + || ( Tcl_GetIndexFromObj(NULL, objv[1], afterSubCmds, "", 0, &index) != TCL_OK )) { index = -1; if (Tcl_GetWideIntFromObj(NULL, objv[1], &ms) != TCL_OK) { @@ -832,7 +832,7 @@ Tcl_AfterObjCmd( } } - /* + /* * At this point, either index = -1 and ms contains the number of ms * to wait, or else index is the index of a subcommand. */ |
