Spinroot

A forum for Spin users

You are not logged in.

#1 2011-07-06 11:08:34

João Martins
Member
Registered: 2011-05-18
Posts: 4

unsigned array

Does SPIN allow the declaration of an array whose elements have the type unsigned? Without declaring an auxiliary type, such as:
                                                                                                                                   
                     typedef TypeName { unsigned ElemName: 10;}
                     TypeName ArrayName[11];

Offline

#2 2011-07-08 19:05:52

spinroot
forum
Registered: 2010-11-18
Posts: 691
Website

Re: unsigned array

Hi, good observation. No currently the parser forbids the use of an array of unsigned elements, with bitfield,
but you found a good way around this restriction.

Offline

Board footer

Powered by FluxBB