Changeset 8339225


Ignore:
Timestamp:
Dec 21, 2020, 4:40:51 PM (9 months ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
arm-eh, jacob/cs343-translation, master, new-ast-unique-expr
Children:
7efb322
Parents:
3d19ae6 (diff), 6f84007 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/parseargs.cfa

    r3d19ae6 r8339225  
    185185}
    186186
     187bool parse_truefalse(const char *, bool & ) {
     188        if(strcmp(arg, "true") == 0) {
     189                value = true;
     190                return true;
     191        }
     192
     193        if(strcmp(arg, "false") == 0) {
     194                value = false;
     195                return true;
     196        }
     197
     198        return false;
     199}
     200
    187201bool parse_settrue (const char *, bool & value ) {
    188202        value = true;
  • libcfa/src/parseargs.hfa

    r3d19ae6 r8339225  
    3737void print_args_usage(int argc, char * argv[], cfa_option options[], size_t opt_count, const char * usage, bool error)  __attribute__ ((noreturn));
    3838
    39 bool parse_yesno   (const char *, bool & );
    40 bool parse_settrue (const char *, bool & );
    41 bool parse_setfalse(const char *, bool & );
     39bool parse_yesno    (const char *, bool & );
     40bool parse_truefalse(const char *, bool & );
     41bool parse_settrue  (const char *, bool & );
     42bool parse_setfalse (const char *, bool & );
    4243
    4344bool parse(const char *, const char * & );
Note: See TracChangeset for help on using the changeset viewer.