From owner-freebsd-current Fri Dec 26 21:50:29 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id VAA05786 for current-outgoing; Fri, 26 Dec 1997 21:50:29 -0800 (PST) (envelope-from owner-freebsd-current) Received: from ocean.campus.luth.se (ocean.campus.luth.se [130.240.194.116]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id VAA05777 for ; Fri, 26 Dec 1997 21:50:11 -0800 (PST) (envelope-from karpen@ocean.campus.luth.se) Received: (from karpen@localhost) by ocean.campus.luth.se (8.8.8/8.8.8) id GAA00259; Sat, 27 Dec 1997 06:48:37 +0100 (CET) (envelope-from karpen) From: Mikael Karpberg Message-Id: <199712270548.GAA00259@ocean.campus.luth.se> Subject: Re: Bruce vandalism again In-Reply-To: from Tim Vanderhoek at "Dec 26, 97 11:34:06 pm" To: hoek@hwcn.org (Tim Vanderhoek) Date: Sat, 27 Dec 1997 06:48:37 +0100 (CET) Cc: current@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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