Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/enum.cfa

    r6d2b3dc r062467b  
    11#include "enum.hfa"
    22#include "fstream.hfa"
    3 #include <string.h>
    43
    54#pragma GCC visibility push(default)
     
    1110        int args = fmt( is, "%255s", val );
    1211        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 stream
    18         } // for
     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 stream
     17        // } // for
    1918        return is;
    2019}
Note: See TracChangeset for help on using the changeset viewer.