Hi,

I had this problem too, the generated code had methodes like this:

public static boolean isSigned_nx_struct ctrl_msg 10 96()

My solution was to downgrade to perl 5,10.x, but I will try your patch.

Andras Biro

On Fri, Sep 10, 2010 at 5:52 PM, Chih-Ming Hsieh
<[email protected]> wrote:
> Hi,
>
> I have a question about the code generation of mig. I was trying the example
> TestSerial from tutorial but the code generated by mig (java) was not
> compilable. After some digging, I figured out that migdecode.pm actually did
> the wrong parsing. I have to modify this file into following version in
> order to get the correct generated code.
>
>
> hs...@pc09:/usr/lib/ncc> diff migdecode.pm.orig migdecode.pm
> 50c50
> <     for (@spec) {
> ---
>>     foreach $spec(@spec) {
> 56,57c56,57
> <       split / /, $1;
> <       ($field, $type, $offset, $bitlength) = @_;
> ---
>>       @my_field = split(' ', $spec);
>>       ($field, $type, $offset, $bitlength) = @my_field;
>
> But I don't see anyone on the mailing list having the same problem, at least
> the result from the search shows that. So does anyone know whether this
> modification is necessary or just my environment has problem?
>
> I am using following packages under OpenSuse11.3
> - nesc-1.3.1-1.fc9.i386.rpm
> - tinyos-2.1.1-3.ubuntu.noarch.rpm
> - tinyos-deputy-1.1-1.fc9.i386.rpm
> - tinyos-tools-1.4.0-3.ubuntu.i386.rpm
>
> And my perl is v5.12.1.
>
>
> Thanks in advance.
>
> Best regards,
> Jimmy Hsieh
>
> _______________________________________________
> 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

Reply via email to