VSS Package Index  Abraxas VSS Home Table of Contents

Abraxas Software, Inc.


CodeCheck Voting System Standards Test Suite - v425c.c

v425c.c(1): /*
425 c. Names shall be unique within an application. Names shall differ by more than
a single character. All single-character names are forbidden except those for
variables used as loop indexes. In large systems where subsystems tend to be
developed independently, duplicate names may be used where the scope of
the name is unique within the application. Names should always be unique
where modules are shared; 
v425c.c(8): */
v425c.c(9): 
v425c.c(10): 
v425c.c(11): int d = 0;  /* not allowed unless used in as a loop index	*/
v425c.c(12): 



Function Name: v4()

v425c.c(13): v4() {
v425c.c(14): 
v425c.c(15): 	int i;
v425c.c(16): 
v425c.c(17): 	int dog;
v425c.c(18): 
v425c.c(19): 	for ( ;; i ) {} // ok
v425c.c(20): 
v425c.c(21): 	i++;	// bad
v425c.c(22): 
v425c.c(23): 	dog++;	// good
v425c.c(24): }
v425c.c(25): 



Function Name: v4a()

v425c.c(26): v4a() {
v425c.c(27): 
v425c.c(28): //For example: 
v425c.c(29): 
v425c.c(30): 	int i = 0; 
v425c.c(31): 	i = getImportantValue(); 
v425c.c(32): 
v425c.c(33): 	switch(i){	//not allowed 
v425c.c(34): 		case 1:
v425c.c(35): 
v425c.c(36): 		default:
v425c.c(37): 	} 
v425c.c(38): 
v425c.c(39): }
v425c.c(40): 

VSS Package Index  Abraxas VSS Home Table of Contents

CodeCheck Copyright (c) 1988-2006 by Abraxas Software Inc. (R). All rights reserved.