summaryrefslogtreecommitdiffstats
path: root/generic/tclBasic.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2012-02-15 20:43:08 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2012-02-15 20:43:08 (GMT)
commit182448a5403990b1f583b5f9cf6cf6d8e2b7c8de (patch)
tree0c8ee86e4a1dfdbe9ad52a7e66349e03ea8ad569 /generic/tclBasic.c
parentef8842098dc6103ef6fc6fc7deb1b7e5395e85a2 (diff)
downloadtcl-182448a5403990b1f583b5f9cf6cf6d8e2b7c8de.zip
tcl-182448a5403990b1f583b5f9cf6cf6d8e2b7c8de.tar.gz
tcl-182448a5403990b1f583b5f9cf6cf6d8e2b7c8de.tar.bz2
* generic/tclCompCmds.c (TclCompileLreplaceCmd): Added a compilation
strategy for [lreplace] that tackles the cases which are equivalent to a static [lrange].
Diffstat (limited to 'generic/tclBasic.c')
-rw-r--r--generic/tclBasic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c
index d67153c..c07fa70 100644
--- a/generic/tclBasic.c
+++ b/generic/tclBasic.c
@@ -232,7 +232,7 @@ static const CmdInfo builtInCmds[] = {
{"llength", Tcl_LlengthObjCmd, TclCompileLlengthCmd, NULL, 1},
{"lrange", Tcl_LrangeObjCmd, TclCompileLrangeCmd, NULL, 1},
{"lrepeat", Tcl_LrepeatObjCmd, NULL, NULL, 1},
- {"lreplace", Tcl_LreplaceObjCmd, NULL, NULL, 1},
+ {"lreplace", Tcl_LreplaceObjCmd, TclCompileLreplaceCmd, NULL, 1},
{"lreverse", Tcl_LreverseObjCmd, NULL, NULL, 1},
{"lsearch", Tcl_LsearchObjCmd, NULL, NULL, 1},
{"lset", Tcl_LsetObjCmd, TclCompileLsetCmd, NULL, 1},