aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/vac/glob.c
diff options
context:
space:
mode:
authorDan Cross <cross@gajendra.net>2020-01-10 14:44:21 +0000
committerDan Cross <cross@gajendra.net>2020-01-10 14:54:30 +0000
commitfa325e9b42b0bdfb48857d1958d9fb7ceac55151 (patch)
tree81d26256d152435135bcb1ae43121979a49f5f2b /src/cmd/vac/glob.c
parent77a0a5b5194d4441c86de097f2aae297cb75e2c2 (diff)
downloadplan9port-fa325e9b42b0bdfb48857d1958d9fb7ceac55151.tar.gz
plan9port-fa325e9b42b0bdfb48857d1958d9fb7ceac55151.tar.bz2
plan9port-fa325e9b42b0bdfb48857d1958d9fb7ceac55151.zip
Trivial changes: whitespace and modes.
Remote whitespace at the ends of lines. Remove blank lines from the ends of files. Change modes on source files so that they are not executable. Signed-off-by: Dan Cross <cross@gajendra.net>
Diffstat (limited to 'src/cmd/vac/glob.c')
-rw-r--r--src/cmd/vac/glob.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/cmd/vac/glob.c b/src/cmd/vac/glob.c
index 863eb848..69602ad7 100644
--- a/src/cmd/vac/glob.c
+++ b/src/cmd/vac/glob.c
@@ -89,7 +89,7 @@ glob2regexp(char *glob)
*w++ = ')';
*w++ = '$';
*w = 0;
-
+
re = regcomp(s);
if(re == nil){
syntax:
@@ -130,7 +130,7 @@ loadexcludefile(char *file)
case '#':
continue;
}
-
+
inc = 0;
if(strncmp(p, "include ", 8) == 0){
inc = 1;
@@ -157,7 +157,7 @@ void
excludepattern(char *p)
{
Reprog *re;
-
+
if((re = glob2regexp(p)) == nil)
sysfatal("bad glob pattern %s", p);
@@ -171,10 +171,9 @@ int
includefile(char *file)
{
Pattern *p, *ep;
-
+
for(p=pattern, ep=p+npattern; p<ep; p++)
if(regexec(p->re, file, nil, 0))
return p->include;
return 1;
}
-