Re: combining workspaces
- From: "hurry" <hurrynarain@xxxxxxxxx>
- Date: 10 Mar 2006 01:11:22 -0800
@Falconer
thnx a lot.
@Heathfield
Gotcha
bye,
hurry.
CBFalconer wrote:
Richard Heathfield wrote:
hurry said:
I have two different set of codes (say A and B workspaces) I want
to call the entire B as a function inside A.I want a solution to
do this.
To my knowledge, one soltn. would b to add all files of B in A's
workspace and compile like any other fnuction but, the pblm here
is both B and A are huge piles of codes and at many places happen
have same variables ( in their declaration in header). so, for
this soltn. to work, I`ll have to change all the variables in
their headers and in .C in B's workspace ( which is a HERCULIAN
task, considering the voluminosity of the codes).
You just discovered why it's a good idea not to use file scope
objects if you can possibly avoid them - or at least to severely
constrain them to perhaps one or maybe two at most in each library.
I've been pointing this out in comp.lang.c, on and off, since 1999
or so. You shoulda listened.
However, fear not. The little old toolmaker is here. Go thou and
download and use id2id-20, and the Augean stables may become a
kitty litter box.
<http://cbfalconer.home.att.net/download/id2id-20.zip>
Of course, if you had listened to Richard you wouldn't need it. As
it is you have to listen to the cackling sounds of "we told you
so".
--
"If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
More details at: <http://cfaj.freeshell.org/google/>
Also see <http://www.safalra.com/special/googlegroupsreply/>
.
- References:
- combining workspaces
- From: hurry
- Re: combining workspaces
- From: Richard Heathfield
- Re: combining workspaces
- From: CBFalconer
- combining workspaces
- Prev by Date: Re: Some problem on macro declaration in C again
- Next by Date: Re: diff memcpy and memmove
- Previous by thread: Re: combining workspaces
- Next by thread: Re: memset
- Index(es):
Relevant Pages
|