Changes in tests/configs/parsenums.cfa [481f882:9e042d8]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/configs/parsenums.cfa
r481f882 r9e042d8 15 15 // 16 16 17 #include <fstream.hfa> 18 19 #include "../meta/fork+exec.hfa" 20 21 // last as workaround to parser bug 17 22 #include <parseargs.hfa> 18 #include <fstream.hfa>19 20 #include "../meta/fork+exec.hfa"21 23 22 24 #if __SIZEOF_LONG__ == 4 … … 42 44 43 45 44 cfa_option options[] = { 45 { 'i', "int", "test int", i }, 46 { 'u', "unsigned", "test unsigned", u }, 47 { 'l', "unsignedlong", "test unsigned long", ul }, 48 { 'L', "unsignedlonglong", "test unsigned long long", ull }, 49 { 'd', "double", "test double", d }, 50 }; 51 int options_cnt = sizeof(options) / sizeof(cfa_option); 46 array( cfa_option, 5 ) options; 47 options[0] = (cfa_option){ 'i', "int", "test int", i }; 48 options[1] = (cfa_option){ 'u', "unsigned", "test unsigned", u }; 49 options[2] = (cfa_option){ 'l', "unsignedlong", "test unsigned long", ul }; 50 options[3] = (cfa_option){ 'L', "unsignedlonglong", "test unsigned long long", ull }; 51 options[4] = (cfa_option){ 'd', "double", "test double", d }; 52 52 53 53 char **left; 54 parse_args( options, options_cnt,"[OPTIONS]...\ntesting bool parameters", left);54 parse_args( options, "[OPTIONS]...\ntesting bool parameters", left); 55 55 56 56 sout | "int :" | i;
Note: See TracChangeset
for help on using the changeset viewer.