unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Refactoring with CEDET
@ 2008-05-03 10:17 grischka
  2008-05-03 12:02 ` Eric M. Ludlam
       [not found] ` <mailman.11141.1209818894.18990.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 3+ messages in thread
From: grischka @ 2008-05-03 10:17 UTC (permalink / raw)
  To: eric; +Cc: help-gnu-emacs

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





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-05-06  2:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-03 10:17 Refactoring with CEDET grischka
2008-05-03 12:02 ` Eric M. Ludlam
     [not found] ` <mailman.11141.1209818894.18990.help-gnu-emacs@gnu.org>
2008-05-06  2:45   ` rustom

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).