11.07.2015 Views

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Error and Warning Messages(263) members cannot be functions (Parser)A member of a structure or a union may not be a function. It may be a pointer to a function, e.g.:struct {int a;int get(int); /* this should be a pointer: int (*get)(int); */} object;(264) bad bitfield type (Parser)A bitfield may only have a type of int (signed or unsigned), e.g.:struct FREG {char b0:1; /* woops -- these must be part of an int, not char */char :6;char b7:1;} freg;(265) integer constant expected (Parser)A colon appearing after a member name in a structure declaration indicates that the member is abitfield. An integral constant must appear after the colon to define the number of bits in the bitfield,e.g.:struct {unsigned first: /* woops -- should be: unsigned first; */unsigned second;} my_struct;If this was meant to be a structure with bitfields, then the following illustrates an example:struct {unsigned first : 4; /* 4 bits wide */unsigned second: 4; /* another 4 bits */} my_struct;(266) storage class illegal (Parser)A structure or union member may not be given a storage class. Its storage class is determined by thestorage class of the structure, e.g.:256

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!