From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 1 Sep 2011 14:16:30 +0100 From: Ethan Grammatikidis To: 9fans@9fans.net Message-ID: <20110901141630.68b38b36@kolari.ethans.dre.am> In-Reply-To: <3ad045e675c92ccadaa4dcb0e5f36a38@quintile.net> References: <3ad045e675c92ccadaa4dcb0e5f36a38@quintile.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [9fans] c code differencing Topicbox-Message-UUID: 179da778-ead7-11e9-9d60-3106f5b1d025 On Wed, 31 Aug 2011 14:01:34 +0100 "Steve Simon" wrote: > What I think I need is a program which parses C and will > do diffs at the level of functions, globals , #defines and enums. This won't work at the level of functions but I've found diff -c output to be nice to use with acme. It assumes no spaces in filenames, :) I don't suppose everyone has Erik's rc patch yet. !#/bin/rc fn cd flist = `{@{cd B && du -a | awk '{print $2}'}} for(f in $flist) { if(test -e A/$f) { diff -c A/$f B/$f } if not { echo B/$f': new file' } echo }