[Tinyos-host-mote-wg] Re: [Tinyos-2.0wg] Tasks, enums
David Gay
dgay42 at gmail.com
Wed Oct 5 09:26:30 PDT 2005
On 10/5/05, David Gay <dgay42 at gmail.com> wrote:
> On 10/4/05, Cory Sharp <cory at moteiv.com> wrote:
> > Has anyone seen the problem of forward declaring a TinyOS 2.x task
> > causing subsequent enum declarations to cause nesC to die with the
> > error "provides/uses must be followed by a command, event or
> > interface"?
> >
> > That is, this code in a module implementation block reports
> > "provides/uses must be followed by a command, event or interface":
> >
> > task void mytask();
> > enum { MY_CONSTANT = 0 };
> >
> > But just swap those lines and it compiles cleanly
> >
> > enum { MY_CONSTANT = 0 };
> > task void mytask();
> >
> > Thoughts?
>
> It's a bug related to the task->interface rewrite. I'll look into it
> this morning.
Fixed in CVS. The only real workaround for those who don't want to
recompile from CVS is to make sure all enums are before any task...
David
_______________________________________________
Tinyos-2.0wg mailing list
Tinyos-2.0wg at Mail.Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-2.0wg
More information about the Tinyos-host-mote-wg
mailing list