Changes in libcfa/src/enum.cfa [062467b:6d2b3dc]
- File:
-
- 1 edited
-
libcfa/src/enum.cfa (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/enum.cfa
r062467b r6d2b3dc 1 1 #include "enum.hfa" 2 2 #include "fstream.hfa" 3 #include <string.h> 3 4 4 5 #pragma GCC visibility push(default) … … 10 11 int args = fmt( is, "%255s", val ); 11 12 if ( ! eof( is ) && args != 1 ) throwResume ExceptionInst( missing_data ); 12 //for ( s; E ) {13 // if ( val == label( s )) { e = s; break; }14 //} else {15 //fprintf( stderr, "invalid enumeration constant\n" );16 //abort(); // cannot use abort stream17 //} // for13 for ( s; E ) { 14 if ( strcmp(val, label( s )) == 0 ) { e = s; break; } 15 } else { 16 fprintf( stderr, "invalid enumeration constant\n" ); 17 abort(); // cannot use abort stream 18 } // for 18 19 return is; 19 20 }
Note:
See TracChangeset
for help on using the changeset viewer.