You can put a global outside the module block and then its name doesn't get
munged.

On Mon, Oct 17, 2011 at 9:45 AM, Michael Schippling <[email protected]>wrote:

> I was never able to get the names to resolve...
> Instead I have an interface method that passes
> a pointer to the "global" around to everyone else.
> Do you have a good trick to avoid that?
>
> thx
> MS
>
> Manjunath Doddavenkatappa wrote:
> > I used use a separate component that allocates global variables. I am not
> > sure whether there is more appropriate way...
> >
> > Manjunath D
> >
> >
> ################################################################################################################
> >
> ***************************************************************************************************************
> >
> > On Mon, 17 Oct 2011, wasif masood wrote:
> >
> >> Hi all,
> >>
> >> I am wondering is it possible to define a global variable in nesC which
> is
> >> to be visible to all components in the project? If not, what are other
> good
> >> approaches against that?
> >>
> >> BR,
> >> Wasif Masood
> >>
> > _______________________________________________
> > Tinyos-help mailing list
> > [email protected]
> > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



-- 
Eric B. Decker
Senior (over 50 :-) Researcher
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to