public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04d031d
)
Adapted to search for description files in either
author
ceriel
<none@none>
Fri, 13 Feb 1987 13:39:30 +0000
(13:39 +0000)
committer
ceriel
<none@none>
Fri, 13 Feb 1987 13:39:30 +0000
(13:39 +0000)
~em/lib/descr/<file> or ~em/lib/<file>/descr
util/ack/mktables.c
patch
|
blob
|
history
diff --git
a/util/ack/mktables.c
b/util/ack/mktables.c
index
9adb9f4
..
bbdaed2
100644
(file)
--- a/
util/ack/mktables.c
+++ b/
util/ack/mktables.c
@@
-68,8
+68,15
@@
stop(filled) {
}
FILE *do_open(file) char *file ; {
+ FILE *fd;
+
strcpy(tail,file) ;
- return fopen(dname,"r") ;
+ strcat(tail,"/");
+ strcat(tail,"descr");
+ if ((fd = fopen(dname,"r")) != NULL) return fd;
+ strcpy(tail,"descr/");
+ strcat(tail,file);
+ return fopen(dname,"r");
}
readm() {