public inbox for sourcenav@sourceware.org
 help / color / mirror / Atom feed
* replacing "defines"
@ 2002-02-21 13:59 Christopher Drexler
  0 siblings, 0 replies; only message in thread
From: Christopher Drexler @ 2002-02-21 13:59 UTC (permalink / raw)
  To: sourcenav

Dear mailinglist members,

I started to use SourceNavigator only a few days before and it is a great and
easy to use software. But we encountered some problems with the substituion of
'#defines'.

We have a huge sofware project here at our chair which I wanted to put
under the control of SourceNavigator. One Problem is that we use persistent
classes which require a lot of functions to be defined. This is done by
setting the macros "THIS" and "BASE", and some more, to the appropriate class
names and calling some macros within the class decleration afterwards.

e.g:
---------------------------------------------
#define THIS thisclass
#define BASE baseclass

class THIS : public BASE{

	SOME_MACRO_USING_THIS_AND_BASE;

}
---------------------------------------------

Please don't ask why we're not using macro parameters for this. There are
historical reasons (the package development started in 1989). 

This results in *many*  classes called "THIS" and in an unusable class
hierarchy. 

No my question: is it possible to give the parser a list of macro names which
are then substituted according to the definition within the files and not by
fixed value stored in a file? 

Thank you!

Best regards,
Chris Drexler

-- 
Dipl.-Inf. Christopher Drexler, Lehrst.f. Mustererkennung _    __  __ ___ 
Institut f. Informatik, Universitaet Erlangen-Nuernberg  | |  |  \/  | __|
WWW : http://www5.informatik.uni-erlangen.de/~drexler  	 | |__| |\/| | _| 
GPG : http://www.keyserver.net                           |____|_|  |_|___|

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-02-21 20:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-21 13:59 replacing "defines" Christopher Drexler

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