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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Error and Warning Messages(245) "default" not in switch (Parser)A label has been encountered called default but it is not enclosed by a switch statement. Adefault label is only legal inside the body of a switch statement.If there is a switch statement before this default label, there may be one too many closingbraces in the switch code which would prematurely terminate the switch statement. See examplefor Error Message ’case’ not in switch on page 252.(246) "case" not in switch (Parser)A case label has been encountered, but there is no enclosing switch statement. A case label mayonly appear inside the body of a switch statement.If there is a switch statement before this case label, there may be one too many closing bracesin the switch code which would prematurely terminate the switch statement, e.g.:switch(input) {case ’0’:count++;break;case ’1’:if(count>MAX)count= 0;} /* woops -- this shouldn’t be here */break;case ’2’: /* error flagged here */(247) duplicate label * (Parser)The same name is used for a label more than once in this function. Note that the scope of labels isthe entire function, not just the block that encloses a label, e.g.:start:if(a > 256)goto end;start: /* error flagged here */if(a == 0)goto start; /* which start label do I jump to? */252

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

Saved successfully!

Ooh no, something went wrong!