Changeset d411769c
- Timestamp:
 - Dec 21, 2020, 4:36:45 PM (5 years ago)
 - Branches:
 - ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
 - Children:
 - 6f84007
 - Parents:
 - 7b1f6d4
 - Location:
 - libcfa/src
 - Files:
 - 
      
- 2 edited
 
- 
          
  parseargs.cfa (modified) (1 diff)
 - 
          
  parseargs.hfa (modified) (1 diff)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
libcfa/src/parseargs.cfa
r7b1f6d4 rd411769c 185 185 } 186 186 187 bool 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 187 201 bool parse_settrue (const char *, bool & value ) { 188 202 value = true;  - 
      
libcfa/src/parseargs.hfa
r7b1f6d4 rd411769c 37 37 void print_args_usage(int argc, char * argv[], cfa_option options[], size_t opt_count, const char * usage, bool error) __attribute__ ((noreturn)); 38 38 39 bool parse_yesno (const char *, bool & ); 40 bool parse_settrue (const char *, bool & ); 41 bool parse_setfalse(const char *, bool & ); 39 bool parse_yesno (const char *, bool & ); 40 bool parse_truefalse(const char *, bool & ); 41 bool parse_settrue (const char *, bool & ); 42 bool parse_setfalse (const char *, bool & ); 42 43 43 44 bool parse(const char *, const char * & );  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.