[net.general] C Indentation and Commentation Survey

owen@uw-june (Owen D. Beckley) (02/27/85)

[... I Know What I Like (In Your Wardrobe) ...]


    
    Vote for your favorite block indentation and "end" comments!
    ------------------------------------------------------------

    I'm planning to modify one of the several c modes for emacs to
    indent and add "end" comments the way I like them.  However, I'm 
    also interested in what you think.

    Please vote for one numbered statement and one lettered statement.
    
    Please respond by mail; do not post to the net!
    I will post a summary to the net.



Block indentation:

1)	if (a = b) {
	    statement1;
	    statement2;
	}
	
	
2)	if (a = b) {
	    statement1;
	    statement2;
	    }

	
3)	if (a = b)
	{
	    statement1;
	    statement2;
	}

	
4)	if (a = b) 
	    {
	    statement1;
	    statement2;
	    }

	
5)	if (a = b) 
	    {
		statement1;
		statement2;
	    }


6)      other, please specify




"End" comments:

A)	if (a = b) 
	    {
	    statement1;
	    statement2;
	    } /* if */


B)	if (a = b) 
	    {
	    statement1;
	    statement2;
	    } /* end if */ 


C)	none

D)      other, please specify

-----------------------------------------------------------------------------

        "And I'm hovering like a fly, waiting for the windshield
        on the freeway."

                Peter Gabriel from "The Lamb Lies Down On Broadway"


  Owen Beckley                                              |\
  University of Washington Computer Science                 | \
  owen@{uw-june.arpa|washington.arpa}                      /|  \
  {ihnp4|decvax}!uw-beaver!uw-june!owen                   /_|___\
                                                          \_____/