Sujet : Re: diff and patch
De : m.n.summerfield (at) *nospam* gmail.com (Mark Summerfield)
Groupes : comp.lang.tclDate : 17. Jun 2025, 19:43:13
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <102sd01$2igrd$1@dont-email.me>
References : 1 2
User-Agent : Pan/0.149 (Bellevue; 4c157ba)
On Tue, 17 Jun 2025 12:13:59 GMT, Arjen wrote:
Mark Summerfield <m.n.summerfield@gmail.com> posted:
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 patch functionality (but not the diff) is provided by the textutil
package,
if I understand it correctly.
An example would be really helpful. I find the rcs docs difficult to
understand. I made some process with the LCS stuff but even so didn't get
far.