[Tinyos-host-mote-wg] Re: [Tinyos-2.0wg] Tasks, enums

David Gay dgay42 at gmail.com
Wed Oct 5 08:40:35 PDT 2005


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.

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