diff options
author | Wayne Davison <wayned@samba.org> | 2003-07-05 19:03:42 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2003-07-05 19:03:42 +0000 |
commit | d5c973ccb7da1bc87c5caa5d5ac594bc217016f7 (patch) | |
tree | 63fef9a8da15f262284bbc0fbe8984f1c7e45efb /wildtest.c | |
parent | 37f3ce61bbc464d6c95978590469e9c71f7b535f (diff) | |
download | android_external_rsync-d5c973ccb7da1bc87c5caa5d5ac594bc217016f7.tar.gz android_external_rsync-d5c973ccb7da1bc87c5caa5d5ac594bc217016f7.tar.bz2 android_external_rsync-d5c973ccb7da1bc87c5caa5d5ac594bc217016f7.zip |
Changed some names since "depth" wasn't really the right term.
Diffstat (limited to 'wildtest.c')
-rw-r--r-- | wildtest.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -4,7 +4,7 @@ /*#define COMPARE_WITH_FNMATCH*/ -#define WILD_TEST_DEPTH +#define WILD_TEST_ITERATIONS #include "lib/wildmatch.c" #include "popt.h" @@ -18,11 +18,11 @@ typedef char bool; #define false 0 #define true 1 -int output_depth = 0; +int output_iterations = 0; static struct poptOption long_options[] = { /* longName, shortName, argInfo, argPtr, value, descrip, argDesc */ - {"depth", 'd', POPT_ARG_NONE, &output_depth, 0, 0, 0}, + {"count", 'c', POPT_ARG_NONE, &output_iterations, 0, 0, 0}, {0,0,0,0, 0, 0, 0} }; @@ -52,8 +52,8 @@ ok(int n, const char *text, const char *pattern, bool matches, bool same_as_fnma n, text, pattern, matches ^ !same_as_fnmatch); } #endif - if (output_depth) - printf("[%s] depth = %d\n", pattern, wildmatch_depth); + if (output_iterations) + printf("[%s] iterations = %d\n", pattern, wildmatch_iteration_count); } int |