Style requirements by Mark
- int i,j;
- int i=1,j=2;
- x = 2;
- x = a[2];
- x = 3 + a[3 * (i+2)];
- x = func( a, b, c = func2() );
- /*
* This shall be a comment...
*/
- for( a = 0, i = x; i != NULL && a < 2; a++, i = i->next )
- if ( ( a = f() ) == NULL )
{
x;
}
else
{
y;
}
- if ( ( a = f() ) == NULL )
x;
else
y;
- if ( a )
x;
else if ( b )
{
y;
}
else if ( c )
z;
else
w;
- if ( ( one_long_term )
&& ( aonther_long_term... ) )
- do
{
x;
} while( a );
- while( a )
{
x;
}
- switch( c )
{
case a:
x;
/* I'd add this comment: meant to fall through ! */
case c:
z;
break;
case b:
default:
y;
break; /* I guess */
}
- /*
* comments
*/
int func()
{
}