[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Coding Style: Function arguments on separate lines

From: Hyrum K. Wright <hyrum_wright_at_mail.utexas.edu>
Date: 2007-07-17 15:52:01 CEST

After spending a while in various parts of our code base, I've noticed
an inconsistency between our declared coding style in HACKING, and what
we actually do. The following patch to HACKING makes it congruent with
our current practices. Comments?

-Hyrum

[[[
* www/hacking.html
   (coding-style): Emphasize our one-argument-per-line convention for
   function declarations.
]]]

Index: hacking.html
===================================================================
--- hacking.html (revision 25767)
+++ hacking.html (working copy)
@@ -380,7 +380,8 @@
 
 <pre>
    char * /* func type on own line */
- argblarg(char *arg1, int arg2) /* func name on own line */
+ argblarg(char *arg1, /* func name on own line */
+ int arg2) /* each arg on own line */
    { /* first brace on own line */
      if ((some_very_long_condition &amp;&amp; arg2) /* indent 2 cols */
          || remaining_condition) /* new line before operator */

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Jul 17 15:47:43 2007

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.