diff options
Diffstat (limited to 'Tests/TestDriver/testArgs.h')
-rw-r--r-- | Tests/TestDriver/testArgs.h | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/Tests/TestDriver/testArgs.h b/Tests/TestDriver/testArgs.h index 0489366..0f1b879 100644 --- a/Tests/TestDriver/testArgs.h +++ b/Tests/TestDriver/testArgs.h @@ -1,20 +1,16 @@ -void testProccessArgs(int* ac, char***av) +void testProccessArgs(int* ac, char*** av) { char** argv = *av; - if(*ac < 2) - { + if (*ac < 2) { return; - } - if(strcmp(argv[1], "--with-threads") == 0) - { + } + if (strcmp(argv[1], "--with-threads") == 0) { printf("number of threads is %s\n", argv[2]); - *av +=2; - *ac -=2; - } - else if (strcmp(argv[1], "--without-threads") == 0) - { + *av += 2; + *ac -= 2; + } else if (strcmp(argv[1], "--without-threads") == 0) { printf("no threads\n"); *av += 1; *ac -= 1; - } + } } |