Changeset e07187d


Ignore:
Timestamp:
May 10, 2022, 12:29:36 PM (2 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, master, pthread-emulation, qualifiedEnum
Children:
5c231c1
Parents:
65c9208
Message:

Change parseargs yes/no parsing to support YyNn?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/parseargs.cfa

    r65c9208 re07187d  
    208208        }
    209209
     210        if(strcmp(arg, "Y") == 0) {
     211                value = true;
     212                return true;
     213        }
     214
     215        if(strcmp(arg, "y") == 0) {
     216                value = true;
     217                return true;
     218        }
     219
    210220        if(strcmp(arg, "no") == 0) {
     221                value = false;
     222                return true;
     223        }
     224
     225        if(strcmp(arg, "N") == 0) {
     226                value = false;
     227                return true;
     228        }
     229
     230        if(strcmp(arg, "n") == 0) {
    211231                value = false;
    212232                return true;
Note: See TracChangeset for help on using the changeset viewer.