Use —std-c89 to compile in this mode.
The latest publicly available version of the standard ISO/IEC
9899 - Programming languages - C should be available at: http://www.open-std.org/jtc1/sc22/wg14/www/standards.html#9899.
Deviations from standard compliance:
struct s { ... };
struct s foo1 (struct s parms) /* invalid in SDCC although allowed in ANSI */
{
struct s rets;
...
return rets; /* is invalid in SDCC although allowed in ANSI */
}
struct s { char x } a[] = {1, 2}; /* invalid in SDCC */
struct s { char x } a[] = {{1}, {2}}; /* OK */
foo(i,j) /* this old style of function declarations */
int i,j; /* is valid in ANSI but not valid in SDCC */
{
...
}