Tweaked the exclude_struct for our improved matching code.
authorWayne Davison <wayned@samba.org>
Thu, 1 May 2003 19:33:59 +0000 (19:33 +0000)
committerWayne Davison <wayned@samba.org>
Thu, 1 May 2003 19:33:59 +0000 (19:33 +0000)
rsync.h

diff --git a/rsync.h b/rsync.h
index e3cbe57..41e65f9 100644 (file)
--- a/rsync.h
+++ b/rsync.h
@@ -421,13 +421,15 @@ struct map_struct {
        OFF_T file_size, p_offset, p_fd_offset;
 };
 
+#define MATCHFLG_WILD          0x0001 /* pattern has '*', '[', and/or '?' */
+#define MATCHFLG_WILD2         0x0002 /* pattern has '**' */
+#define MATCHFLG_WILD2_PREFIX  0x0004 /* pattern starts with '**' */
 struct exclude_struct {
        char *pattern;
-       int regular_exp;
-       int fnmatch_flags;
+       int match_flags;
        int include;
        int directory;
-       int local;
+       int slash_cnt;
 };
 
 struct stats {