Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed some names since "depth" wasn't really the right term.
[rsync/rsync.git]
/
lib
/
wildmatch.c
diff --git
a/lib/wildmatch.c
b/lib/wildmatch.c
index
1d3f92f
..
bda50b8
100644
(file)
--- a/
lib/wildmatch.c
+++ b/
lib/wildmatch.c
@@
-19,8
+19,8
@@
#define ABORT_ALL -1
#define ABORT_TO_STARSTAR -2
#define ABORT_ALL -1
#define ABORT_TO_STARSTAR -2
-#ifdef WILD_TEST_
DEPTH
-int wildmatch_
depth
;
+#ifdef WILD_TEST_
ITERATIONS
+int wildmatch_
iteration_count
;
#endif
static int domatch(const char *p, const char *text)
#endif
static int domatch(const char *p, const char *text)
@@
-28,8
+28,8
@@
static int domatch(const char *p, const char *text)
int matched, special;
char ch, prev;
int matched, special;
char ch, prev;
-#ifdef WILD_TEST_
DEPTH
- wildmatch_
depth
++;
+#ifdef WILD_TEST_
ITERATIONS
+ wildmatch_
iteration_count
++;
#endif
for ( ; (ch = *p) != '\0'; text++, p++) {
#endif
for ( ; (ch = *p) != '\0'; text++, p++) {
@@
-108,8
+108,8
@@
static int domatch(const char *p, const char *text)
int wildmatch(const char *p, const char *text)
{
int wildmatch(const char *p, const char *text)
{
-#ifdef WILD_TEST_
DEPTH
- wildmatch_
depth
= 0;
+#ifdef WILD_TEST_
ITERATIONS
+ wildmatch_
iteration_count
= 0;
#endif
return domatch(p, text) == TRUE;
}
#endif
return domatch(p, text) == TRUE;
}