Changeset 24ebddac for libcfa


Ignore:
Timestamp:
Sep 2, 2021, 2:03:12 PM (3 years ago)
Author:
Jacob Prud'homme <jafprudhomme@…>
Branches:
ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, pthread-emulation, qualifiedEnum
Children:
761e146
Parents:
b0f225f
Message:

Added default argument

Location:
libcfa/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/parseconfig.cfa

    rb0f225f r24ebddac  
    119119
    120120// 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 ) {
     121KVPairs * parse_tabular_config_format( const char config_file[], size_t num_entries ) {
    122122        // TODO: Change this to a unique_ptr when we fully support returning them (move semantics)
    123123        * KVPairs kv_pairs = new( num_entries );
  • libcfa/src/parseconfig.hfa

    rb0f225f r24ebddac  
    8686
    8787
    88 [ * KVPairs ] parse_tabular_config_format( [] const char config_file, size_t num_entries );
     88KVPairs * parse_tabular_config_format( const char config_file[], size_t num_entries );
    8989
    9090[ void ] parse_config(
     
    9292        [] config_entry entries,
    9393        size_t num_entries,
    94         KVPairs * (*parser)(const char [], size_t)
     94        KVPairs * (*parser)(const char [], size_t) = parse_tabular_config_format
    9595);
    9696
Note: See TracChangeset for help on using the changeset viewer.