[BACK]Return to style CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / share / misc

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/share/misc/style between version 1.8 and 1.9

version 1.8, 1998/09/01 06:51:09 version 1.9, 1999/01/20 23:13:54
Line 188  main(argc, argv)
Line 188  main(argc, argv)
         /*          /*
          * Unary operators don't require spaces, binary operators do. Don't           * Unary operators don't require spaces, binary operators do. Don't
          * use parenthesis unless they're required for precedence, or the           * use parenthesis unless they're required for precedence, or the
          * statement is really confusing without them.           * statement is really confusing without them, such as:
            * a = b->c[0] + ~d == (e || f) || g && h ? i : j >> 1;
          */           */
         a = b->c[0] + ~d == (e || f) || g && h ? i : j >> 1;          a = ((b->c[0] + ~d == (e || f)) || (g && h)) ? i : (j >> 1);
         k = !(l & FLAGS);          k = !(l & FLAGS);
   
         /*          /*
Line 258  function(a1, a2, fl, a4)
Line 259  function(a1, a2, fl, a4)
  *   *
  * ANSI function braces look like regular function braces.   * ANSI function braces look like regular function braces.
  */   */
   void
 function(int a1, int a2)  function(int a1, int a2)
 {  {
         ...          ...

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

CVSweb <webmaster@jp.NetBSD.org>