Ignore:
Timestamp:
Dec 22, 2020, 9:16:13 AM (4 years ago)
Author:
caparsons <caparson@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
797a193
Parents:
0285efe (diff), 3f8baf4 (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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/parseargs.cfa

    r0285efe rfe97de26  
    185185}
    186186
     187bool parse_truefalse(const char * arg, bool & value) {
     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;
Note: See TracChangeset for help on using the changeset viewer.