From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "grischka" Newsgroups: gmane.emacs.help Subject: Refactoring with CEDET Date: Sat, 3 May 2008 12:17:48 +0200 Message-ID: <001901c8ad07$1c740140$ea0a90d4@j4f3n1> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1209809983 25417 80.91.229.12 (3 May 2008 10:19:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 3 May 2008 10:19:43 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat May 03 12:20:18 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JsEqn-00022X-3Q for geh-help-gnu-emacs@m.gmane.org; Sat, 03 May 2008 12:20:17 +0200 Original-Received: from localhost ([127.0.0.1]:59886 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JsEq5-0003mb-Jl for geh-help-gnu-emacs@m.gmane.org; Sat, 03 May 2008 06:19:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JsEpd-0003kI-Rv for help-gnu-emacs@gnu.org; Sat, 03 May 2008 06:19:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JsEpb-0003fq-Bc for help-gnu-emacs@gnu.org; Sat, 03 May 2008 06:19:04 -0400 Original-Received: from [199.232.76.173] (port=35933 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JsEpb-0003fS-1z for help-gnu-emacs@gnu.org; Sat, 03 May 2008 06:19:03 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1JsEpa-0005Wb-IH for help-gnu-emacs@gnu.org; Sat, 03 May 2008 06:19:02 -0400 Original-Received: (qmail invoked by alias); 03 May 2008 10:19:00 -0000 Original-Received: from dialin-212-144-010-234.pools.arcor-ip.net (EHLO j4f3n1) [212.144.10.234] by mail.gmx.net (mp009) with SMTP; 03 May 2008 12:19:00 +0200 X-Authenticated: #18588216 X-Provags-ID: V01U2FsdGVkX1/d8LAcA1LdtMb1idyQY9C1XyTI8ShG+qlTEKOeIh s6LdqaAykKX2XI X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Y-GMX-Trusted: 0 X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:53736 Archived-At: Hi, I have some code where I want to convert a bunch of (~100) global variables into members of a structure. That means: - find all functions that use these variables - patch their declarations to take the struct* as additional parameter int func(int x) ==> int func(State *s, int x) - insert the struct* as one more argument into calls to these functions func(n); ==> func(s, n); - prefix all occurrences of the variables with the struct pointer var ==> s->var Is it possible to do this (semi-?) automatically with CEDET? Thanks, --- grischka