- Timestamp:
- Jul 3, 2024, 5:32:06 PM (6 months ago)
- Branches:
- master
- Children:
- 39cf5cc
- Parents:
- 597f284
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/enum.cfa
r597f284 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.