SW500010 Microchip Technology, SW500010 Datasheet - Page 365

HI-TECH C PRO FOR PIC10/12/16

SW500010

Manufacturer Part Number
SW500010
Description
HI-TECH C PRO FOR PIC10/12/16
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC10/12/16r
Datasheets

Specifications of SW500010

Supported Families
PIC10, PIC12, PIC16
Core Architecture
PIC
Software Edition
Professional
Kit Contents
Software And Docs
Mcu Supported Families
PIC10/12/16
Tool Type
Compiler
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
PIC10, PIC12, PIC14, PIC16, PIC16E
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
019P
778-1006
778-1006
Error and Warning Messages
(245) "default" case not in switch
A label has been encountered called default but it is not enclosed by a switch statement. A
default label is only legal inside the body of a switch statement.
ing braces in the switch code which would prematurely terminate the switch statement. See
example for Error Message ’case’ not in switch on page 365.
(246) case label not in switch
A case label has been encountered, but there is no enclosing switch statement. A case label
may only appear inside the body of a switch statement.
in the switch code which would prematurely terminate the switch statement, e.g.:
(247) duplicate label "*"
The same name is used for a label more than once in this function. Note that the scope of labels is
the entire function, not just the block that encloses a label, e.g.:
If there is a switch statement before this default label, there may be one too many clos-
If there is a switch statement before this case label, there may be one too many closing braces
switch(input) {
start:
start:
b = 10;
break;
case ’0’:
case ’1’:
case ’2’:
if(a > 256)
if(a == 0)
count++;
break;
if(count>MAX)
}
break;
goto end;
goto start;
count= 0;
/ * oops -- this shouldn’t be here * /
/ * error flagged here * /
/ * error flagged here * /
/ * which start label do I jump to? * /
(Parser)
(Parser)
(Parser)
365

Related parts for SW500010