In C (and Nesc) declarations must be at the top of a code block,
right after an opening brace:

    {
        Data_t* newData;
        ...
    }

Perhaps you are trying to write Java instead?
MS


CHEN WEIMING wrote:
>    Data_t* newData = call DataPool.get();
>    newData->seqNum = 5;
>  
> for codes like this, why I always get error:
>     syntax error before '*'
>     'newData' undeclared
>  
>  
> thanks very much.
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to