diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2008-04-28 15:10:02 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2008-04-28 15:10:02 +0000 |
commit | 5866158e01cc19c2a8fff7fffa61de5376a938d0 (patch) | |
tree | 7759638de83997a18a99299a741082b8e5b32477 /pcregrep.c | |
parent | ccea1b4ed51d39d72efa77127d0ebbc10c1ea7fe (diff) | |
download | pcre-5866158e01cc19c2a8fff7fffa61de5376a938d0.tar.gz |
Tidies for the 7.7-RC1 distribution.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@345 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcregrep.c')
-rw-r--r-- | pcregrep.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1395,27 +1395,27 @@ if ((sep = isdirectory(pathname)) != 0) int frc, nflen; sprintf(buffer, "%.512s%c%.128s", pathname, sep, nextfile); nflen = strlen(nextfile); - + if (isdirectory(buffer)) { if (exclude_dir_compiled != NULL && pcre_exec(exclude_dir_compiled, NULL, nextfile, nflen, 0, 0, NULL, 0) >= 0) continue; - + if (include_dir_compiled != NULL && pcre_exec(include_dir_compiled, NULL, nextfile, nflen, 0, 0, NULL, 0) < 0) continue; } - else - { + else + { if (exclude_compiled != NULL && pcre_exec(exclude_compiled, NULL, nextfile, nflen, 0, 0, NULL, 0) >= 0) continue; - + if (include_compiled != NULL && pcre_exec(include_compiled, NULL, nextfile, nflen, 0, 0, NULL, 0) < 0) continue; - } + } frc = grep_or_recurse(buffer, dir_recurse, FALSE); if (frc > 1) rc = frc; |