Changes in src/Parser/DeclarationNode.cc [e496303:572547c]
- File:
-
- 1 edited
-
src/Parser/DeclarationNode.cc (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/DeclarationNode.cc
re496303 r572547c 10 10 // Created On : Sat May 16 12:34:05 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Mar 14 14:45:52201713 // Update Count : 97 312 // Last Modified On : Tue Mar 14 22:42:54 2017 13 // Update Count : 974 14 14 // 15 15 … … 118 118 void DeclarationNode::print_StorageClass( std::ostream & output, StorageClasses storageClasses ) { 119 119 if ( storageClasses.val != 0 ) { // storage classes ? 120 for ( unsigned int i = 0; i < DeclarationNode::N oStorageClass; i += 1 ) {120 for ( unsigned int i = 0; i < DeclarationNode::NumStorageClass; i += 1 ) { 121 121 if ( storageClasses[i] ) { 122 122 output << DeclarationNode::storageClassNames[i] << ' '; … … 128 128 void DeclarationNode::print_FuncSpec( std::ostream & output, DeclarationNode::FuncSpecifiers funcSpec ) { 129 129 if ( funcSpec.val != 0 ) { // function specifiers ? 130 for ( unsigned int i = 0; i < DeclarationNode::N oFuncSpecifier; i += 1 ) {130 for ( unsigned int i = 0; i < DeclarationNode::NumFuncSpecifier; i += 1 ) { 131 131 if ( funcSpec[i] ) { 132 132 output << DeclarationNode::funcSpecifierNames[i] << ' '; … … 460 460 461 461 if ( (qsrc.val & qdst.val) != 0 ) { // duplicates ? 462 for ( unsigned int i = 0; i < N oTypeQualifier; i += 1 ) { // find duplicates462 for ( unsigned int i = 0; i < NumTypeQualifier; i += 1 ) { // find duplicates 463 463 if ( qsrc[i] && qdst[i] ) { 464 464 appendError( error, string( "duplicate " ) + DeclarationNode::typeQualifierNames[i] ); … … 470 470 void DeclarationNode::checkSpecifiers( DeclarationNode * src ) { 471 471 if ( (funcSpecs.val & src->funcSpecs.val) != 0 ) { // duplicates ? 472 for ( unsigned int i = 0; i < N oFuncSpecifier; i += 1 ) { // find duplicates472 for ( unsigned int i = 0; i < NumFuncSpecifier; i += 1 ) { // find duplicates 473 473 if ( funcSpecs[i] && src->funcSpecs[i] ) { 474 474 appendError( error, string( "duplicate " ) + DeclarationNode::funcSpecifierNames[i] ); … … 479 479 if ( storageClasses.val != 0 && src->storageClasses.val != 0 ) { // any reason to check ? 480 480 if ( (storageClasses.val & src->storageClasses.val ) != 0 ) { // duplicates ? 481 for ( unsigned int i = 0; i < N oStorageClass; i += 1 ) { // find duplicates481 for ( unsigned int i = 0; i < NumStorageClass; i += 1 ) { // find duplicates 482 482 if ( storageClasses[i] && src->storageClasses[i] ) { 483 483 appendError( error, string( "duplicate " ) + storageClassNames[i] );
Note:
See TracChangeset
for help on using the changeset viewer.