Tcl Source Code

Check-in [190272213a]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:New routine TclStringReplace() serves as a common implementation for both compiled and direct eval paths of [string replace]. One routine to debug, optimize, convert to new data structures, etc. This routine will also make a good core engine for [string insert]. With this refactoring done, the value of the INST_STR_REPLACE instruction is no longer clear. Until now, the value of compiling to it was that it routed you through the "better" of the two implementations. An instruction that does nothing different from what invocation to the direct eval fallback would do does not have obvious value.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | core-8-branch
Files: files | file ages | folders
SHA3-256: 190272213adb7b0f44c4248013a8cea1609c29c36b7ffac9367a7381fd044d75
User & Date: dgp 2018-03-14 15:17:27.607
Context
2018-03-14
17:20
unused variable fix check-in: 67e1ea3939 user: dgp tags: core-8-branch
16:17
merge 8.7 check-in: 961ccb69d2 user: dgp tags: trunk
15:17
New routine TclStringReplace() serves as a common implementation for both compiled and direct eval p... check-in: 190272213a user: dgp tags: core-8-branch
05:41
merge mark check-in: 97dd207476 user: dgp tags: core-8-branch
Changes
Unified Diff Side-by-Side Diff Patch
Changes to generic/tclCmdMZ.c.
Changes to generic/tclExecute.c.
Changes to generic/tclInt.h.
Changes to generic/tclStringObj.c.