Style requirements by Mark

  1. int i,j;
  2. int i=1,j=2;
  3. x = 2;
  4. x = a[2];
  5. x = 3 + a[3 * (i+2)];
  6. x = func( a, b, c = func2() );
  7. /*
     * This shall be a comment...
     */
  8. for( a = 0, i = x; i != NULL && a < 2; a++, i = i->next )
  9. if ( ( a = f() ) == NULL )
    {
       x;
    }
    else
    {
       y;
    }
  10. if ( ( a = f() ) == NULL )
       x;
    else
       y;
  11. if ( a )
       x;
    else if ( b )
    {
       y;
    }
    else if ( c )
       z;
    else
       w;
  12. if ( ( one_long_term )
    && ( aonther_long_term... ) )
  13. do
    {
       x;
    } while( a );
  14. while( a )
    {
       x;
    }
  15. 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 */
    }
  16. /*
     * comments
     */
    int func()
    {
    }