Changes in libcfa/src/enum.cfa [6d2b3dc:062467b]
- File:
-
- 1 edited
-
libcfa/src/enum.cfa (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/enum.cfa
r6d2b3dc r062467b 1 1 #include "enum.hfa" 2 2 #include "fstream.hfa" 3 #include <string.h>4 3 5 4 #pragma GCC visibility push(default) … … 11 10 int args = fmt( is, "%255s", val ); 12 11 if ( ! eof( is ) && args != 1 ) throwResume ExceptionInst( missing_data ); 13 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 stream18 } // for12 // 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 stream 17 // } // for 19 18 return is; 20 19 }
Note:
See TracChangeset
for help on using the changeset viewer.