SW500010 Microchip Technology, SW500010 Datasheet - Page 372

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
(276) type specifier required for prototyped argument
A type specifier is required for a prototyped argument. It is not acceptable to just have an identifier.
(277) can’t mix prototyped and non-prototyped arguments
A function declaration can only have all prototyped arguments (i.e. with types inside the parentheses)
or all K&R style args (i.e. only names inside the parentheses and the argument types in a declaration
list before the start of the function body), e.g.:
(278) argument "*" redeclared
The specified argument is declared more than once in the same argument list, e.g.
(279) initialization of function arguments is illegal
A function argument can’t have an initialiser in a declaration. The initialisation of the argument
happens when the function is called and a value is provided for the argument by the calling function,
e.g.:
372
/ * K&R-style non-prototyped function definition * /
int kandr(a, b, ...)
{
int plus(int a, b)
int b;
{
}
/ * can’t have two parameters called “a” * /
int calc(int a, int a)
/ * oops -- a is initialized when proc is called * /
extern int proc(int a = 9);
int a, b;
return a + b;
/ * oops -- a is prototyped, b is not * /
Error and Warning Messages
(Parser)
(Parser)
(Parser)
(Parser)

Related parts for SW500010