Mark Summerfield <
[email protected]> wrote:
I want these functions:
proc diff {old new} -> # diff data "ddata"
proc patch {old ddata} -> # new
where old and new are strings.
I thought the Tcllib's rcs module could do this but I can't figure it out.
Is this possible using the rcs module or using the struct::list module's
LCS functions?
The core of the diff algorithm is LCS. You want the LCS functions from struct::list.
But, you don't get a "diff" from the LCS procs, you get the LCS data,
you then have to convert that into a "diff" format of your choice.
You likely want to look at the various "diff in tcl" pages on the wiki.
A starting point:
https://wiki.tcl-lang.org/page/diff+in+Tcl
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)