[BACK]Return to opt_badp.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / tests / usr.bin / indent

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

Diff for /src/tests/usr.bin/indent/opt_badp.c between version 1.8 and 1.9

version 1.8, 2022/04/24 08:52:44 version 1.9, 2022/04/24 09:04:12
Line 7 
Line 7 
  * in a function. It produces a blank line even if there are no declarations.   * in a function. It produces a blank line even if there are no declarations.
  */   */
   
 #indent input  //indent input
 void  void
 empty(void)  empty(void)
 {  {
 }  }
 #indent end  //indent end
   
 #indent run-equals-input -badp  //indent run-equals-input -badp
   
 #indent run-equals-input -nbadp  //indent run-equals-input -nbadp
   
   
 #indent input  //indent input
 void  void
 blank(void)  blank(void)
 {  {
   
 }  }
 #indent end  //indent end
   
 #indent run-equals-input -badp  //indent run-equals-input -badp
   
 #indent run-equals-input -nbadp  //indent run-equals-input -nbadp
   
   
 #indent input  //indent input
 void  void
 declaration(void)  declaration(void)
 {  {
         int             decl;          int             decl;
 }  }
 #indent end  //indent end
   
 #indent run-equals-input -badp  //indent run-equals-input -badp
   
 #indent run-equals-input -nbadp  //indent run-equals-input -nbadp
   
   
 #indent input  //indent input
 void  void
 statement(void)  statement(void)
 {  {
         stmt();          stmt();
 }  }
 #indent end  //indent end
   
 #indent run -badp  //indent run -badp
 void  void
 statement(void)  statement(void)
 {  {
   
         stmt();          stmt();
 }  }
 #indent end  //indent end
   
 #indent run-equals-input -nbadp  //indent run-equals-input -nbadp
   
   
 #indent input  //indent input
 void  void
 declaration_statement(void)  declaration_statement(void)
 {  {
         int             decl;          int             decl;
         stmt();          stmt();
 }  }
 #indent end  //indent end
   
 #indent run -badp  //indent run -badp
 void  void
 declaration_statement(void)  declaration_statement(void)
 {  {
Line 82  declaration_statement(void)
Line 82  declaration_statement(void)
         /* $ FIXME: missing empty line */          /* $ FIXME: missing empty line */
         stmt();          stmt();
 }  }
 #indent end  //indent end
   
 #indent run-equals-input -nbadp  //indent run-equals-input -nbadp
   
   
 #indent input  //indent input
 static void  static void
 declaration_blank_statement(void)  declaration_blank_statement(void)
 {  {
Line 95  declaration_blank_statement(void)
Line 95  declaration_blank_statement(void)
   
         stmt();          stmt();
 }  }
 #indent end  //indent end
   
 #indent run-equals-input -badp  //indent run-equals-input -badp
   
 #indent run-equals-input -nbadp  //indent run-equals-input -nbadp
   
   
 #indent input  //indent input
 static void  static void
 declaration_blank_blank_statement(void)  declaration_blank_blank_statement(void)
 {  {
Line 112  declaration_blank_blank_statement(void)
Line 112  declaration_blank_blank_statement(void)
   
         stmt();          stmt();
 }  }
 #indent end  //indent end
   
 #indent run-equals-input -badp  //indent run-equals-input -badp
   
 #indent run-equals-input -nbadp  //indent run-equals-input -nbadp

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

CVSweb <webmaster@jp.NetBSD.org>