Date: Sat, 27 Dec 1997 06:48:37 +0100 (CET) From: Mikael Karpberg <karpen@ocean.campus.luth.se> To: hoek@hwcn.org (Tim Vanderhoek) Cc: current@FreeBSD.ORG Subject: Re: Bruce vandalism again Message-ID: <199712270548.GAA00259@ocean.campus.luth.se> In-Reply-To: <Pine.GSO.3.96.971226232310.23218A-100000@james.freenet.hamilton.on.ca> from Tim Vanderhoek at "Dec 26, 97 11:34:06 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
According to Tim Vanderhoek: > On Sat, 27 Dec 1997, Mikael Karpberg wrote: > > > Really, that's so much hard work anyway. Ok, I'm not for making it harder, > > doesn't a cdiff program (or option to diff) seem more sane? One that parses > > the c code, and ignores inserted/removed empty lines, tabs, spaces, and > > comments (possibly changeable with an option so you could get the comment > > Well, diff --ignore-space-change would be a pretty good start > (tabs, spaces, and empty lines :). Removing comments would be a > pretty trivial lex program, or there are also a couple of > infamous perl regexps which match C comments. To further reduce > noise, both bits of code to be diffed could be run through indent > first, converting them to a mutually unacceptable but consistent > style. This then could all be bundled up into one program > `cdiff'. :) Well, one important (in this case) thing that wont do is see a K&R and ANSI function head as equal, which would be a nice functionality for Bruce's diffing. :-) /Mikael
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199712270548.GAA00259>