unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "grischka" <grishka@gmx.de>
To: <eric@siege-engine.com>
Cc: help-gnu-emacs@gnu.org
Subject: Refactoring with CEDET
Date: Sat, 3 May 2008 12:17:48 +0200	[thread overview]
Message-ID: <001901c8ad07$1c740140$ea0a90d4@j4f3n1> (raw)

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





             reply	other threads:[~2008-05-03 10:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-03 10:17 grischka [this message]
2008-05-03 12:02 ` Refactoring with CEDET Eric M. Ludlam
     [not found] ` <mailman.11141.1209818894.18990.help-gnu-emacs@gnu.org>
2008-05-06  2:45   ` rustom

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='001901c8ad07$1c740140$ea0a90d4@j4f3n1' \
    --to=grishka@gmx.de \
    --cc=eric@siege-engine.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).