Changeset 24ebddac for libcfa/src
- Timestamp:
- Sep 2, 2021, 2:03:12 PM (3 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, pthread-emulation, qualifiedEnum
- Children:
- 761e146
- Parents:
- b0f225f
- Location:
- libcfa/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/parseconfig.cfa
rb0f225f r24ebddac 119 119 120 120 // Parse configuration from a file formatted in tabular (CS 343) style 121 [ * KVPairs ] parse_tabular_config_format( [] const char config_file, size_t num_entries ) {121 KVPairs * parse_tabular_config_format( const char config_file[], size_t num_entries ) { 122 122 // TODO: Change this to a unique_ptr when we fully support returning them (move semantics) 123 123 * KVPairs kv_pairs = new( num_entries ); -
libcfa/src/parseconfig.hfa
rb0f225f r24ebddac 86 86 87 87 88 [ * KVPairs ] parse_tabular_config_format( [] const char config_file, size_t num_entries );88 KVPairs * parse_tabular_config_format( const char config_file[], size_t num_entries ); 89 89 90 90 [ void ] parse_config( … … 92 92 [] config_entry entries, 93 93 size_t num_entries, 94 KVPairs * (*parser)(const char [], size_t) 94 KVPairs * (*parser)(const char [], size_t) = parse_tabular_config_format 95 95 ); 96 96
Note: See TracChangeset
for help on using the changeset viewer.