diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-08-15 07:08:07 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-08-15 07:08:07 (GMT) |
| commit | 02ccd2a2ba84111c45dab93d4f3b80191e45108e (patch) | |
| tree | 6518028407edba465c523492cb32bc3dd7f72fc0 /generic/tclInterp.c | |
| parent | 831e40a351cc05df4e170c4606d090020bd80b3a (diff) | |
| parent | 6e2f02a5a6a694d1c1ad853307791acf1fd85c92 (diff) | |
| download | tcl-02ccd2a2ba84111c45dab93d4f3b80191e45108e.zip tcl-02ccd2a2ba84111c45dab93d4f3b80191e45108e.tar.gz tcl-02ccd2a2ba84111c45dab93d4f3b80191e45108e.tar.bz2 | |
Eliminate "register" keyword _everywhere_ in Tcl. This keyword is deprecated in C++ (removed in C++17, even), and essentially does nothing with most modern compilers
Diffstat (limited to 'generic/tclInterp.c')
| -rw-r--r-- | generic/tclInterp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tclInterp.c b/generic/tclInterp.c index 92c6159..3188fce 100644 --- a/generic/tclInterp.c +++ b/generic/tclInterp.c @@ -3362,7 +3362,7 @@ int Tcl_LimitExceeded( Tcl_Interp *interp) { - register Interp *iPtr = (Interp *) interp; + Interp *iPtr = (Interp *) interp; return iPtr->limit.exceeded != 0; } @@ -3393,10 +3393,10 @@ int Tcl_LimitReady( Tcl_Interp *interp) { - register Interp *iPtr = (Interp *) interp; + Interp *iPtr = (Interp *) interp; if (iPtr->limit.active != 0) { - register int ticker = ++iPtr->limit.granularityTicker; + int ticker = ++iPtr->limit.granularityTicker; if ((iPtr->limit.active & TCL_LIMIT_COMMANDS) && ((iPtr->limit.cmdGranularity == 1) || @@ -3440,7 +3440,7 @@ Tcl_LimitCheck( Tcl_Interp *interp) { Interp *iPtr = (Interp *) interp; - register int ticker = iPtr->limit.granularityTicker; + int ticker = iPtr->limit.granularityTicker; if (Tcl_InterpDeleted(interp)) { return TCL_OK; |
