Changeset 247d4ac for libcfa


Ignore:
Timestamp:
Aug 31, 2021, 1:49:10 AM (3 years ago)
Author:
Jacob Prud'homme <jafprudhomme@…>
Branches:
ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, pthread-emulation, qualifiedEnum
Children:
1764a63
Parents:
5993b6a
git-author:
Jacob Prud'homme <jafprudhomme@…> (08/10/21 17:00:53)
git-committer:
Jacob Prud'homme <jafprudhomme@…> (08/31/21 01:49:10)
Message:

Removed error for unknown config format

Since we're using an enum, we can only use the options we explicitly provided

Location:
libcfa/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/parseconfig.cfa

    r5993b6a r247d4ac  
    1313void ?{}( Parse_Failure & this ) with ( this ) {
    1414        virtual_table = &Parse_Failure_vt;
    15 }
    16 
    17 static vtable(Unknown_Config_Format) Unknown_Config_Format_vt;
    18 
    19 void ?{}( Unknown_Config_Format & this ) with ( this ) {
    20         virtual_table = &Unknown_Config_Format_vt;
    2115}
    2216
     
    115109                case TABULAR_CONFIG:
    116110                        kv_pairs = parse_tabular_config_format( config_file, num_entries );
    117                 default:
    118                         serr | "Error: config file format " | format | " is not supported";
    119                         throw (Unknown_Config_Format){};
    120111        }
    121112
  • libcfa/src/parseconfig.hfa

    r5993b6a r247d4ac  
    6060void ?{}( Parse_Failure & this );
    6161
    62 exception Unknown_Config_Format {};
    63 
    64 void ?{}( Unknown_Config_Format & this );
    65 
    6662exception Validation_Failure {};
    6763
Note: See TracChangeset for help on using the changeset viewer.