From owner-freebsd-current@FreeBSD.ORG Tue Jun 3 05:22:03 2008 Return-Path: Delivered-To: current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C93F21065671 for ; Tue, 3 Jun 2008 05:22:03 +0000 (UTC) (envelope-from dds@aueb.gr) Received: from mx-out.forthnet.gr (mx-out.forthnet.gr [193.92.150.104]) by mx1.freebsd.org (Postfix) with ESMTP id 47FFD8FC13 for ; Tue, 3 Jun 2008 05:22:01 +0000 (UTC) (envelope-from dds@aueb.gr) Received: from mx-av-04.forthnet.gr (mx-av.forthnet.gr [193.92.150.27]) by mx-out-05.forthnet.gr (8.14.3/8.14.3) with ESMTP id m535Lvd5011247; Tue, 3 Jun 2008 08:21:57 +0300 Received: from MX-IN-01.forthnet.gr (mx-in-01.forthnet.gr [193.92.150.23]) by mx-av-04.forthnet.gr (8.14.3/8.14.3) with ESMTP id m535Lvop009500; Tue, 3 Jun 2008 08:21:57 +0300 Received: from [192.168.136.18] (adsl125-213.kln.forthnet.gr [77.49.244.213]) by MX-IN-01.forthnet.gr (8.14.3/8.14.3) with ESMTP id m535Lr5J003887; Tue, 3 Jun 2008 08:21:55 +0300 Authentication-Results: MX-IN-01.forthnet.gr smtp.mail=dds@aueb.gr; spf=neutral Authentication-Results: MX-IN-01.forthnet.gr header.from=dds@aueb.gr; sender-id=neutral In-Reply-To: <4844A129.8040901@elischer.org> References: <4844A129.8040901@elischer.org> Mime-Version: 1.0 (Apple Message framework v753) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Diomidis Spinellis Date: Tue, 3 Jun 2008 08:21:51 +0300 To: Julian Elischer X-Mailer: Apple Mail (2.753) X-Mailman-Approved-At: Tue, 03 Jun 2008 05:39:42 +0000 Cc: FreeBSD Current Subject: Re: seemingly off topic but not really X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jun 2008 05:22:03 -0000 On Jun 3, 2008, at 4:40 AM, Julian Elischer wrote: > Does anyone know of a program that knows C syntax, and can rename a > variable across a set of files without screwing up the comments etc.? > > I vaguely remember seeing such a program once... > CScout will do what you want . It can follow cpp macros so it will even rename structure members that are only related by being used by the same macro. It can also process together multiple configurations or modules. I've recently run it over the FreeBSD kernel, and it can handle all the C extensions we're using. Write to me if you need any help. Diomidis Spinellis